Fast datapath
This commit is contained in:
1 parent
00b3d5bf98
commit
62de82f349
10 files changed
+764
-57
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user