- credit rix for fixing openbsd

This commit is contained in:
paul 2004-10-22 22:52:33 +00:00
parent 06f953f7ab
commit 4ccb2c46c5
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@
(setsockopt_pktinfo) unexported
* sockopt.h: Cleanup SOCKOPT_CMSG defines a bit. Add a throwaway
define for SOPT_SIZE_CMSG_IFINDEX_IPV4 for systems which have
neither IP_RECVIF nor IP_PKTINFO (eg openbsd).
neither IP_RECVIF nor IP_PKTINFO (eg openbsd), thanks to Rivo
Nurges for highlighting problem and fix.
Fix elif that should be an else.
* command.h: Cleanup the defines a bit, add helper defines and
collapse all defines to use those. Add an attribute field to

View File

@ -3,7 +3,8 @@
* ospf_network.c: (ospf_sock_init) call neutral setsock_ifindex()
function.
* ospf_packet.c: (ospf_read) manually look up ifindex
if system could not have returned one, eg openbsd.
if system could not have returned one, eg openbsd, thanks to Rivo
Nurges for highlighting problem and fix.
Change setsockopt_pktinfo to setsockopt_ifindex.
2004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>