diff options
author | Koop Mast <kwm@FreeBSD.org> | 2015-09-04 10:43:19 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2015-09-04 10:43:19 +0000 |
commit | 68184f247f97dd3f8f91d05888dbb7d399f9788e (patch) | |
tree | d3a665d7053a7402b9717a84f61a49acb4eba379 /net/gnome-nettool/files/patch-src_netstat.c | |
parent | Update uhttpmock to 0.5.0. (diff) |
Update gnome-nettool to 3.8.1.
Diffstat (limited to 'net/gnome-nettool/files/patch-src_netstat.c')
-rw-r--r-- | net/gnome-nettool/files/patch-src_netstat.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/net/gnome-nettool/files/patch-src_netstat.c b/net/gnome-nettool/files/patch-src_netstat.c index 1eec8492793a..660514d28322 100644 --- a/net/gnome-nettool/files/patch-src_netstat.c +++ b/net/gnome-nettool/files/patch-src_netstat.c @@ -1,20 +1,11 @@ ---- src/netstat.c.orig Tue Jul 6 13:55:25 2004 -+++ src/netstat.c Fri Aug 20 15:55:40 2004 -@@ -108,12 +108,17 @@ +--- src/netstat.c.orig 2012-01-03 10:38:09.000000000 +0100 ++++ src/netstat.c 2015-08-28 16:21:17.101757000 +0200 +@@ -114,7 +114,7 @@ netstat_get_active_option (Netinfo * net g_return_val_if_fail (netinfo != NULL, NULL); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (netinfo->routing))) { -+#ifdef __FreeBSD__ -+ /* XXX We only support ipv4 now */ -+ option = g_strdup ("-rn -f inet"); -+#else - /* Works for Solaris and Linux */ +-#if defined (__OpenBSD__) ++#if defined (__OpenBSD__) || defined (__FreeBSD__) if (netinfo_is_ipv6_enable ()) { - option = g_strdup ("-rn -A inet -A inet6"); + option = g_strdup ("-rn"); } else { - option = g_strdup ("-rn -A inet"); - } -+#endif - - if (netinfo->stbar_text) - g_free (netinfo->stbar_text); |