From 3d440251017e0a5e603ce2a99fe25dd3108ad272 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 5 Jul 2004 19:36:26 +0000 Subject: Add gnomenettool after a repo-copy from gnomenetwork. Gnome-nettool is the netinfo piece of gnome-network broken out into its own distribution. Gnome-nettool is a MacOS X-like Network Utility that disaplys interface information as well as front-ends many useful network tools like ping, netstat, traceroute, host, finger, and whois. --- net/gnome-nettool/files/patch-src_netstat.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net/gnome-nettool/files/patch-src_netstat.c (limited to 'net/gnome-nettool/files/patch-src_netstat.c') diff --git a/net/gnome-nettool/files/patch-src_netstat.c b/net/gnome-nettool/files/patch-src_netstat.c new file mode 100644 index 000000000000..eed0a328c47c --- /dev/null +++ b/net/gnome-nettool/files/patch-src_netstat.c @@ -0,0 +1,20 @@ +--- src/netstat.c.orig Sun Jul 4 17:57:03 2004 ++++ src/netstat.c Sun Jul 4 17:57:48 2004 +@@ -108,12 +108,17 @@ + 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 (netinfo_is_ipv6_enable ()) { + option = g_strdup ("-rn -A inet -A inet6"); + } else { + option = g_strdup ("-rn -A inet"); + } ++#endif + } + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (netinfo->protocol))) { + /* Only works for Solaris */ -- cgit v1.2.3