bpf - Add BIOC{S,G}FEEDBACK ioctls
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 18 Apr 2018 09:39:21 +0000 (02:39 -0700)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 18 Apr 2018 10:01:22 +0000 (03:01 -0700)
commit25d01c1b8476383c05d72376b14eebd47c934708
tree38b55e791bcbd3373055e569c7d26c3195723ec6
parent17830a2b794cfa10905dac78194fa5b2ee565c8b
bpf - Add BIOC{S,G}FEEDBACK ioctls

- When set it allows reinjecting packets that were written to the bpf device
  as input to the interface when the output is successful.
- Add an alias to BIOCFEEDBACK which is the name of the
  of the 'set' ioctl in FreeBSD.

Partially-taken-from: NetBSD
Reviewed-by: sephe
Closes: #3126
sys/net/bpf.c
sys/net/bpf.h
sys/net/bpfdesc.h