Allow snooping of the loopback medium
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 21 Sep 2016 19:58:41 +0000 (15:58 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 21 Sep 2016 21:28:01 +0000 (17:28 -0400)
commitf8382794f54344fdd4e50bb898c9cc5a7f2ef9b8
tree4c27b7993bea5981c5167201d6f67e75bed45bdf
parente222c699d57bc0728e5fa057350bf13eae2331ce
Allow snooping of the loopback medium

Snoopy either directly tries to clone a devether conversation or opens a
 #ip/ipifc/snoop file.  The only medium that supported that snoop was
pktmedium.  This commit adds support for loopback.

Incidentally, I'm not sure why devether doesn't use the ethermedium snoop.
Maybe it has something to do with setting promiscuous.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/loopbackmedium.c