NetBSD/sys/net
christos fbbeedbe63 PR/27286: Tom Ivar Helbekkmo: Allow RTM_GET to work with RTA_IFA|RTA_IFP set.
Quiting Tom: The problem is the special case of an RTM_GET message
that wants interface information included in the response, and
therefore include the RTA_IFA or RTA_IFP (or both) flags in the
bitmask that says what addresses are supplied in the message.  For
the RTM_GET message, it doesn't make sense to supply addresses
other than the one you're asking about, so those two other bits
are, in that specific case, overloaded with this meaning.

There is code in sys/net/rtsock.c to handle the case, but at some
time, extra sanity checking of the received message was added, that
failed to take this possibility into account.

The patch, is needed for the Asterisk software PBX to work properly
when it has multiple interfaces active: it needs to ask the kernel
for the IP address of the interface that will be used to communicate
with a given host.
2004-10-23 19:13:22 +00:00
..
bpf_filter.c
bpf.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
bpf.h Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
bpfdesc.h back out previous change - these diffs aren't what I'd tested. 2004-05-29 14:18:33 +00:00
bridgestp.c
bsd-comp.c
dlt.h Add several new DLTs. From tcpdump.org. 2004-09-28 03:34:21 +00:00
ethertypes.h Add ETHERTYPE_PAE. 2004-07-23 05:13:15 +00:00
files.pf foundation for PF 2004-06-22 14:04:04 +00:00
if_arc.h
if_arcsubr.c
if_arp.h
if_atm.h
if_atmsubr.c
if_bridge.c Interfaces that do checksum offloading indicate the checksum status of 2004-10-06 10:01:00 +00:00
if_bridgevar.h
if_dl.h
if_eco.h
if_ecosubr.c
if_ether.h
if_ethersubr.c Rename MBUFTRACE helper function m_claim() to m_claimm(), 2004-06-24 04:15:50 +00:00
if_faith.c Fix compilation error introduced by prevoius commit. 2004-08-20 00:37:07 +00:00
if_faith.h
if_fddi.h
if_fddisubr.c
if_gif.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
if_gif.h
if_gre.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
if_gre.h
if_hippi.h
if_hippisubr.c
if_ieee1394.h
if_ieee1394subr.c Pass correct "mbuf" pointer to BPF framework. 2004-08-20 07:46:21 +00:00
if_llc.h
if_loop.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
if_media.c
if_media.h Put spaces either side of '|' for clarity ('|' looks too much like 'I' or 'l') 2004-10-16 11:11:04 +00:00
if_ppp.c I changed pppoutput to use M_PREPEND. pppoutput was duplicating 2004-07-03 18:11:33 +00:00
if_ppp.h
if_pppoe.c
if_pppoe.h
if_pppvar.h
if_sl.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
if_slvar.h
if_sppp.h
if_spppsubr.c call PFIL_IFADDR hooks where appropriate. 2004-09-18 16:04:41 +00:00
if_spppvar.h
if_stf.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
if_stf.h
if_strip.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
if_stripvar.h
if_token.h
if_tokensubr.c Onno van der Linden assigned copyright for his work on this file 2004-06-18 19:41:25 +00:00
if_tun.c Factor out the hand-crafting of mbufs from the interface files. Reviewed by 2004-08-19 20:58:23 +00:00
if_tun.h
if_types.h prepare PF-related hooks. reviewed by matt, perry, christos 2004-06-22 12:50:41 +00:00
if_vlan.c If the parent interface is not IFF_RUNNING, do not call its start function. 2004-07-08 19:09:12 +00:00
if_vlanvar.h
if.c Backout last two revision: 2004-10-07 20:06:58 +00:00
if.h
Makefile fix "includes" for pfvar.h 2004-06-22 14:29:45 +00:00
net_osdep.h
netisr_dispatch.h
netisr.h
pfil.c - rename PFIL_NEWIF to PFIL_IFNET, and handle interface detach events 2004-07-27 12:22:59 +00:00
pfil.h - rename PFIL_NEWIF to PFIL_IFNET, and handle interface detach events 2004-07-27 12:22:59 +00:00
pfkeyv2.h
ppp_defs.h
ppp_tty.c
ppp-comp.h
ppp-deflate.c
radix.c initialize max_keylen for ip_encap.c earlier 2004-08-17 07:05:34 +00:00
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c Fix problem in previous commit; we need to create a new sockaddr. 2004-09-30 00:14:05 +00:00
route.h
rtsock.c PR/27286: Tom Ivar Helbekkmo: Allow RTM_GET to work with RTA_IFA|RTA_IFP set. 2004-10-23 19:13:22 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h