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 Protect PID initializations for statistics by the bpf descriptor 2005-10-04 15:06:10 +00:00
bpf.h Introduce two new ioctl(2) commands, BIOCLOCK and BIOCSETWF. These commands 2005-08-22 19:35:48 +00:00
bpfdesc.h Instead of caching the PID which opened the bpf descriptor, continuously 2005-09-05 23:08:04 +00:00
bridgestp.c Change most of the bridge and stp funtions to static. This has highlighted 2005-10-14 10:38:12 +00:00
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 Use new (inline) functions for calls into driver. 2005-10-16 20:44:18 +00:00
if_slvar.h
if_sppp.h
if_spppfr.c
if_spppsubr.c Use monotonic time_uptime instead of 'time_second' as timebase 2005-09-19 22:27:07 +00:00
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 Use VLAN_TAG_VALUE() not only to read a dot1q tag 2005-08-31 11:36:50 +00:00
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 Big polling(4) cleanup. 2005-10-01 18:56:19 +00:00
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 - Don't pollute opt_global.h with DEVICE_POLLING and introduce 2005-10-05 10:09:17 +00:00
netisr.h
pfil.c
pfil.h
pfkeyv2.h
ppp_comp.h
ppp_deflate.c
ppp_defs.h
ppp_tty.c Use new (inline) functions for calls into driver. 2005-10-16 20:44:18 +00:00
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 Remove bogous semicolons at the end of the definitions of 2005-09-14 14:57:04 +00:00
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 Forward declare z_errmsg with static linkage since it is defined 2005-09-11 16:13:02 +00:00
zlib.h