add p2p_input, like ether_input but for l3 tunnel interfaces.
authordlg <dlg@openbsd.org>
Sat, 20 Feb 2021 04:55:52 +0000 (04:55 +0000)
committerdlg <dlg@openbsd.org>
Sat, 20 Feb 2021 04:55:52 +0000 (04:55 +0000)
commit8434f10fbf81a15231b23373543e3c9234321166
tree2bf07c95346e764852170b24e25f7f2a952eba18
parent42c39955505ea190778ba65078be50559edcc1d9
add p2p_input, like ether_input but for l3 tunnel interfaces.

the l3 protocol input to push the packet is based on a value in
m->m_pkthdr.ph_family, which tunnel drivers should set before calling
if_vinput.

add p2p_bpf_mtap to call bpf_mtap_af also using m->m_pkthdr.ph_family.
sys/net/if.c
sys/net/if_var.h