[Bug 802] New: os_common_find_running_interfaces() fails on NetBSD-5

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug 802] New: os_common_find_running_interfaces() fails on NetBSD-5

by David Brownlee-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

------- 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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##

[Bug 802] os_common_find_running_interfaces() fails on NetBSD-5

by David Brownlee-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=802




--- Comment #1 from David Brownlee <abs@...>  2009-01-08 16:55:33 ---
Created an attachment (id=295)
 --> (http://bugs.exim.org/attachment.cgi?id=295)
Patch to src/os.c to use getifaddrs() if  HAVE_GETIFADDRS defined, plus
increase addrbuf to 512


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##

[Bug 802] os_common_find_running_interfaces() fails on NetBSD-5

by David Brownlee-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=802




--- Comment #2 from David Brownlee <abs@...>  2009-01-08 16:56:15 ---
Created an attachment (id=296)
 --> (http://bugs.exim.org/attachment.cgi?id=296)
patch to OS/os.h-NetBSD to define HAVE_GETIFADDRS


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##

[Bug 802] os_common_find_running_interfaces() fails on NetBSD-5

by Bugzilla from nigel@exim.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=802

Nigel Metheringham <nigel@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Nigel Metheringham <nigel@...>  2009-10-20 13:39:47 ---
CVS commit by nm4:

Improvements to local interface IP addr detection.  Fixes: bug#802

--- CVS commit summary ---
1.4  1.5  +1 -0   -  exim/exim-src/OS/os.h-NetBSD
1.6  1.7  +72 -8  -  exim/exim-src/src/os.c


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##

[Bug 802] os_common_find_running_interfaces() fails on NetBSD-5

by Bugzilla from nigel@exim.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=802




--- Comment #4 from Nigel Metheringham <nigel@...>  2009-10-20 13:45:49 ---
CVS commit by nm4:

Improvements to local interface IP addr detection.  Related: bug#802

--- CVS commit summary ---
1.577  1.578  +3 -0  -  exim/exim-doc/doc-txt/ChangeLog


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##