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 s/netbsd.org/NetBSD.org/g 2003-11-28 08:56:48 +00:00
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 UCB no longer requires the advertising clause. 2004-03-25 10:53:46 +00:00
if_arp.h
if_atm.h
if_atmsubr.c kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
if_bridge.c Interfaces that do checksum offloading indicate the checksum status of 2004-10-06 10:01:00 +00:00
if_bridgevar.h Add filter/no filter flag parameter to bridge_enqueue(). 2003-09-16 17:38:24 +00:00
if_dl.h
if_eco.h
if_ecosubr.c kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
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 Update my copyright to not include advertising clause. 2004-03-22 18:02:12 +00:00
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 Spell address with two d's. Inspired by similar changes in OpenBSD, 2003-11-10 08:51:51 +00:00
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 De-__P'ify. 2004-04-09 20:44:57 +00:00
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 kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
if_pppoe.h s/netbsd.org/NetBSD.org/g 2003-11-28 08:56:48 +00:00
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 Add a new ioctl SPPPGETSTATUSNCP to query the PPP phase and check wether 2003-12-26 23:39:23 +00:00
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 Spell address with two d's. Inspired by similar changes in OpenBSD, 2003-11-10 08:51:51 +00:00
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 cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
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 Constify if.c radix.c and route.c (and fix related fallout). 2004-04-21 04:17:28 +00:00
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 Initial commit of a port of the FreeBSD implementation of RFC 2385 2004-04-25 22:25:03 +00:00
ppp_defs.h Remove #else of #if __STDC__ 2004-04-26 01:41:15 +00:00
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 ANSI-fy and some additional de-__P and constification. 2004-04-21 21:03:43 +00:00
raw_cb.c
raw_cb.h
raw_usrreq.c Remove #else of #if __STDC__ 2004-04-26 01:41:15 +00:00
route.c Fix problem in previous commit; we need to create a new sockaddr. 2004-09-30 00:14:05 +00:00
route.h ANSI-fy and some additional de-__P and constification. 2004-04-21 21:03:43 +00:00
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