[Bug 196964] net-mgmt/nagios-plugins: Fix for check_dhcp (not only) on FreeBSD 10

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 21 12:58:08 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196964

            Bug ID: 196964
           Summary: net-mgmt/nagios-plugins: Fix for check_dhcp (not only)
                    on FreeBSD 10
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: mat at FreeBSD.org
          Reporter: cejkar at fit.vutbr.cz
             Flags: maintainer-feedback?(mat at FreeBSD.org)
          Assignee: mat at FreeBSD.org

Created attachment 151948
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151948&action=edit
check_dhcp.c fix

The bug is reported here:
https://github.com/nagios-plugins/nagios-plugins/issues/70

There is a bug in getting MAC address of network interface on BSD systems,
where fourth parameter in sysctl() has to be size_t * and not int *.
Unfortunately, using gcc -O2 the bug is hidden and contrary to compiler
warning, check_dhcp seems to be working. However, when you use gcc -O0 or gcc
-O1 or clang in FreeBSD 10 on amd64, the bug is exposed:

./check_dhcp -i em0 -s 127.0.0.1
Error: Couldn't get hardware address from em0. sysctl 2 error - No such file or
directory.

Until it is fixed in upstream, please add the patch to the current
nagios-plugins 2.0.3.

Thank you very much.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer mat at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list