freebsd-skq/sys/net
Christian S.J. Peron 3581cc66bb Zero the un-used portions of the struct sockaddr data before sending
it back to userspace, so it does not break bind(2) on raw sockets in jails.

Currently some processes, like traceroute(8) construct a routing request
to determine its source address based on the destination. This sockaddr
data is fed directly to bind(2). When bind calls ifa_ifwithaddr(9) to
make sure the address exists on the interface, the comparison will
fail causing bind(2) to return EADDRNOTAVAIL if the data wasnt zero'ed
before initialization.

Approved by:	bmilekic (mentor)
2004-05-10 15:07:23 +00:00
..
bpf_compat.h
bpf_filter.c
bpf.c
bpf.h
bpfdesc.h
bridge.c arpcom untangling: 2004-04-24 22:11:13 +00:00
bridge.h
bsd_comp.c
ethernet.h
fddi.h
if_arc.h
if_arcsubr.c This commit does two things: 2004-04-25 09:24:52 +00:00
if_arp.h + rename and document an unused field in struct arpcom (field is still 2004-04-18 01:15:32 +00:00
if_atm.h
if_atmsubr.c This commit does two things: 2004-04-25 09:24:52 +00:00
if_disc.c
if_dl.h
if_ef.c
if_ethersubr.c This commit does two things: 2004-04-25 09:24:52 +00:00
if_faith.c
if_fddisubr.c This commit does two things: 2004-04-25 09:24:52 +00:00
if_gif.c
if_gif.h
if_gre.c Add the comment of the previous commit to the source file directly. 2004-04-23 16:57:43 +00:00
if_gre.h
if_iso88025subr.c This commit does two things: 2004-04-25 09:24:52 +00:00
if_llc.h
if_loop.c
if_media.c
if_media.h
if_mib.c
if_mib.h
if_ppp.c First pass at softc list locking for if_ppp.c. Many parts of 2004-04-19 01:36:24 +00:00
if_ppp.h
if_pppvar.h
if_sl.c
if_slvar.h
if_sppp.h
if_spppsubr.c
if_stf.c Use an tempory struct ifnet *ifp instead of sc->sc_if to access the 2004-04-19 05:06:27 +00:00
if_stf.h
if_tap.c
if_tap.h
if_tapvar.h
if_tun.c
if_tun.h
if_types.h
if_var.h Link state change notification of ethernet media to the routing socket. 2004-05-03 13:48:35 +00:00
if_vlan_var.h
if_vlan.c Add route.h to pick up the rt_ifmsg() declaration. 2004-05-04 02:39:41 +00:00
if.c arpcom untangling: 2004-04-24 22:24:48 +00:00
if.h Link state change notification of ethernet media to the routing socket. 2004-05-03 13:48:35 +00:00
iso88025.h
net_osdep.c
net_osdep.h
netisr.c
netisr.h
pfil.c
pfil.h
pfkeyv2.h
ppp_comp.h
ppp_deflate.c
ppp_defs.h
ppp_tty.c
radix.c Readability fixes: 2004-04-21 15:27:36 +00:00
radix.h + move MKGet()/MKFree() into the only file that can use them. 2004-04-18 11:48:35 +00:00
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c fix one typo and remove one wrong line 2004-04-25 01:39:00 +00:00
route.h document the locking behaviour of the functions that access 2004-04-24 23:34:04 +00:00
rtsock.c Zero the un-used portions of the struct sockaddr data before sending 2004-05-10 15:07:23 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h