Fast datapath

This commit is contained in:
David Wragg committed 2015-06-12 21:24:10 +01:00
1 parent 00b3d5bf98
commit 62de82f349
10 files changed
+764 -57

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ func NewPcap(iface *net.Interface, bufSz int) (IntraHost, error) {
return &Pcap{iface: iface, bufSz: bufSz, writeHandle: wh}, nil
}
func (p *Pcap) ConsumePackets(consumer IntraHostConsumer) error {
func (p *Pcap) ConsumeIntraHostPackets(consumer IntraHostConsumer) error {
rh, err := newPcapHandle(p.iface.Name, true, 65535, p.bufSz)
if err != nil {
return err