From 64a85d3e381b8d96f34eceff99b723ceb0c037ab Mon Sep 17 00:00:00 2001 From: Patrick Li Date: Mon, 3 Dec 2001 06:32:27 +0000 Subject: Add port net/wmnd a network monitor dockapp. PR: 31690 Submitted by: Paolo Flag Reviewed by: petef --- net/wmnd/files/patch-src::wmnd.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 net/wmnd/files/patch-src::wmnd.h (limited to 'net/wmnd/files/patch-src::wmnd.h') diff --git a/net/wmnd/files/patch-src::wmnd.h b/net/wmnd/files/patch-src::wmnd.h new file mode 100644 index 000000000000..2942e843488b --- /dev/null +++ b/net/wmnd/files/patch-src::wmnd.h @@ -0,0 +1,40 @@ +--- src/wmnd.h.orig Tue May 22 05:06:36 2001 ++++ src/wmnd.h Thu Nov 29 16:08:01 2001 +@@ -24,6 +24,37 @@ + #include + #include + ++#ifdef USE_FREEBSD_SYSCTL ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++/* internal structure used for freebsd-systcl */ ++ ++int freebsd_interface_count=0; ++ ++int get_ifmib_general(int row, struct ifmibdata *ifmd) { ++ ++ int name[6], len; ++ ++ len=sizeof(struct ifmibdata); ++ ++ name[0] = CTL_NET; ++ name[1] = PF_LINK; ++ name[2] = NETLINK_GENERIC; ++ name[3] = IFMIB_IFDATA; ++ name[4] = row; ++ name[5] = IFDATA_GENERAL; ++ ++ return sysctl(name, 6, ifmd, &len, NULL, 0); ++} ++ ++#endif ++ + /* + * Wmnd version number, do not modify line layout or sed will not find + * the main version number -- cgit v1.2.3