[exim-dev] [Bug 802] New: os_common_find_running_interfaces(…

Góra strony
Delete this message
Reply to this message
Autor: David Brownlee
Data:  
Dla: exim-dev
Nowe tematy: [exim-dev] [Bug 802] os_common_find_running_interfaces() fails on NetBSD-5, [exim-dev] [Bug 802] os_common_find_running_interfaces() fails on NetBSD-5
Temat: [exim-dev] [Bug 802] New: os_common_find_running_interfaces() fails on NetBSD-5
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=802
           Summary: os_common_find_running_interfaces() fails on NetBSD-5
           Product: Exim
           Version: 4.69
          Platform: x86
        OS/Version: NetBSD
            Status: NEW
          Severity: bug
          Priority: high
         Component: Networking
        AssignedTo: nigel@???
        ReportedBy: abs@???
                CC: exim-dev@???



os_common_find_running_interfaces() can fail on NetBSD-5 in some cases as the
test for the data being >sizeof(addrbuf) (256) is triggered.

Increasing addrbuf to [512] works around this, but a better solution would be
to use the much cleaner getifaddrs() instead of the multiple ioctls()

Will attach a patch which increases addrbuf to [512], and adds an #ifdef
HAVE_GETIFADDRS (initially only enabled for NetBSD)


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email