--- agent/mibgroup/mibII/interfaces.c.orig Fri Dec 1 14:17:21 2000 +++ agent/mibgroup/mibII/interfaces.c Thu Jan 18 00:04:42 2001 @@ -129,7 +129,7 @@ #if HAVE_SYS_SYSCTL_H #include -#ifdef freebsd3 +#if defined(freebsd3) || defined(freebsd4) || defined(freebsd5) # define USE_SYSCTL_IFLIST #else # if defined(CTL_NET) && !defined(freebsd2) @@ -1842,10 +1842,18 @@ physaddrbuf = 0; } ifm = (struct if_msghdr *)rtm; +#if defined(freebsd3) || defined(freebsd4) || defined(freebsd5) + if (physaddrs != 0) physaddrs[naddrs] = (void*)(ifm + 1); + naddrs++; +#endif ilen -= ifm->ifm_msglen; cp += ifm->ifm_msglen; rtm = (struct rt_msghdr *)cp; while (ilen > 0 && rtm->rtm_type == RTM_NEWADDR) { +#if defined(freebsd3) || defined(freebsd4) || defined(freebsd5) + ilen -= rtm->rtm_msglen; + cp += rtm->rtm_msglen; +#else int is_alias = 0; ifam = (struct ifa_msghdr *)rtm; ilen -= sizeof(*ifam); @@ -1868,6 +1876,7 @@ } sa = (struct sockaddr *)cp; } +#endif rtm = (struct rt_msghdr *)cp; } } @@ -1982,7 +1991,7 @@ if (ifmd.ifmd_data.ifi_lastchange.tv_sec == 0 && ifmd.ifmd_data.ifi_lastchange.tv_usec == 0) { long_return = 0; - else if (ifmd.ifmd_data.ifi_lastchange.tv_sec < starttime.tv_sec) + } else if (ifmd.ifmd_data.ifi_lastchange.tv_sec < starttime.tv_sec) { long_return = 0; } else { long_return = (u_long) cinnamon FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/security/libpreludedb
Commit message (Expand)AuthorAgeFilesLines
* - Fix build with new site_perlaz2013-06-131-1/+1
* Chase security/libgcrypt updateehaupt2013-05-041-1/+1
* - Convert USE_ICONV=yes to USES=iconvmva2013-04-281-2/+1
* - Convert USE_GETTEXT to USES (part 3)ak2013-04-251-1/+1
* Style: tab -> space.eadler2013-03-291-1/+1
* - Add UPDATING entry for gnutls updatenovel2013-02-061-0/+1
* Update Prelude-IDS ports to 1.0.1 releasepawel2012-12-162-16/+25
* Restore option descriptions to what the maintainer actually put in the PRdougb2012-10-081-0/+5
* Convert to OptionsNGeadler2012-10-071-17/+12
* Fix master_sitebapt2011-08-031-2/+1
* -remove MD5ohauer2011-07-031