- Add support for attaching alternative DLTs to an interface.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 26 Jan 2005 00:37:40 +0000 (00:37 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 26 Jan 2005 00:37:40 +0000 (00:37 +0000)
commit1f8e62c9ab8d2ecdefffbdf2ef5ed3db7376c6ec
tree65983d5cc6671be4ef57143e9162fd40ba52934f
parenteef92aa10f60e8d571b7150c91286922c6311287
- Add support for attaching alternative DLTs to an interface.
  The function is named bpfattach_dlt, FreeBSD used bpfattach2.
- Change bpf_mtap to take the bpf_if directly.
- Add support for BIOCSDLT and BIOCGDLT to recieve a list of DLTs
  available on an interface.

Obtained-from: FreeBSD

- Add bpf_ptap, which takes an mbuf and a header, builds a temporary
  mbuf chain and calls bpf_mtap on that.

Inspired-by: FreeBSD's bpf_mtap2
- Use the new interface for all drivers doing this by hand before.
- Include the formerly commented out support for radio headers in wi(4)
  and wlan(4).
- Change if_loop, i4b_ipr, disc and ic to prepend a uint32_t, not an int.
28 files changed:
sys/dev/netif/ic/if_ic.c
sys/dev/netif/plip/if_plip.c
sys/dev/netif/wi/if_wi.c
sys/net/bpf.c
sys/net/bpf.h
sys/net/bpfdesc.h
sys/net/disc/if_disc.c
sys/net/ef/if_ef.c
sys/net/faith/if_faith.c
sys/net/gif/if_gif.c
sys/net/gre/if_gre.c
sys/net/i4b/driver/i4b_ipr.c
sys/net/if_ethersubr.c
sys/net/if_loop.c
sys/net/ppp/if_ppp.c
sys/net/sl/if_sl.c
sys/net/stf/if_stf.c
sys/net/tun/if_tun.c
sys/net/vlan/if_vlan.c
sys/netgraph/fec/ng_fec.c
sys/netgraph/iface/ng_iface.c
sys/netinet/ip_gre.c
sys/netproto/802_11/ieee80211.c
sys/netproto/802_11/ieee80211_input.c
sys/netproto/802_11/ieee80211_var.h
sys/netproto/802_11/wlan/ieee80211.c
sys/netproto/802_11/wlan/ieee80211_input.c
sys/netproto/802_11/wlan/ieee80211_var.h