1 ! Copyright (C) 2007 Chris Double. All Rights Reserved.
2 ! See http://factorcode.org/license.txt for BSD license.
4 ! Wrap a sniffer in a channel
5 USING: kernel channels channels.sniffer.backend
6 threads io io.sniffer.backend io.sniffer.bsd
8 IN: channels.sniffer.bsd
10 M: unix-io sniff-channel ( -- channel )
11 "/dev/bpf0" "en1" <sniffer-spec> <sniffer> <channel> [