freebsd-skq/sys/net
ru fd2f0452fd Fix the following bugs:
- In ifc_name2unit(), disallow leading zeroes in a unit.

  Exploit: ifconfig lo01 create

- In ifc_name2unit(), properly handle overflows.  Otherwise,
  either of two local panic()'s can occur, either because
  no interface with such a name could be found after it was
  successfully created, or because the code will bogusly
  assume that it's a wildcard (unit < 0 due to overflow).

  Exploit: ifconfig lo<overflowed_integer> create

- Previous revision made the following sequence trigger
  a KASSERT() failure in queue(3):

  Exploit: ifconfig lo0 destroy; ifconfig lo0 destroy

  This is because IFC_IFLIST_REMOVE() is always called
  before ifc->ifc_destroy() has been run, not accounting
  for the fact that the latter can fail and leave the
  interface operating (like is the case for "lo0").
  So we ended up calling LIST_REMOVE() twice.  We cannot
  defer IFC_IFLIST_REMOVE() until after a call to
  ifc->ifc_destroy() because the ifnet may have been
  removed and its memory has been freed, so recover from
  this by re-inserting the ifnet in the cloned interfaces
  list if ifc->ifc_destroy() indicates a failure.
2005-11-24 18:56:14 +00:00
..
bpf_compat.h
bpf_filter.c
bpf.c
bpf.h
bpfdesc.h
bridgestp.c
bsd_comp.c
ethernet.h
fddi.h - Make IFP2ENADDR() a pointer to IF_LLADDR() rather than another 2005-11-11 07:36:14 +00:00
firewire.h
if_arc.h
if_arcsubr.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_arp.h - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_atm.h
if_atmsubr.c
if_bridge.c Fix a second missed case where the refcount is not decremented. 2005-11-13 20:26:19 +00:00
if_bridgevar.h Move the cloned interface list management in to if_clone. For some drivers the 2005-11-08 20:08:34 +00:00
if_clone.c Fix the following bugs: 2005-11-24 18:56:14 +00:00
if_clone.h Move the cloned interface list management in to if_clone. For some drivers the 2005-11-08 20:08:34 +00:00
if_disc.c Force this interface to be RUNNING. 2005-11-11 11:17:57 +00:00
if_dl.h
if_ef.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_ethersubr.c Purge layer specific mbuf flags on layer crossings to avoid confusing 2005-11-18 16:23:26 +00:00
if_faith.c Move the cloned interface list management in to if_clone. For some drivers the 2005-11-08 20:08:34 +00:00
if_fddisubr.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_fwsubr.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_gif.c Move the cloned interface list management in to if_clone. For some drivers the 2005-11-08 20:08:34 +00:00
if_gif.h
if_gre.c Use sparse initializers for "struct domain" and "struct protosw", 2005-11-09 13:29:16 +00:00
if_gre.h
if_iso88025subr.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_llc.h
if_loop.c
if_media.c
if_media.h
if_mib.c Use the more appropriate ifnet_byindex() instead of ifaddr_byindex(). 2005-11-11 12:32:49 +00:00
if_mib.h
if_ppp.c Move the cloned interface list management in to if_clone. For some drivers the 2005-11-08 20:08:34 +00:00
if_ppp.h
if_pppvar.h
if_sl.c
if_slvar.h
if_sppp.h
if_spppfr.c
if_spppsubr.c
if_stf.c Use sparse initializers for "struct domain" and "struct protosw", 2005-11-09 13:29:16 +00:00
if_stf.h
if_tap.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_tap.h
if_tapvar.h
if_tun.c
if_tun.h
if_types.h
if_var.h - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if_vlan_var.h
if_vlan.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
if.h
iso88025.h - Make IFP2ENADDR() a pointer to IF_LLADDR() rather than another 2005-11-11 07:36:14 +00:00
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
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
route.h
rtsock.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h