add Bridge.Interface()
This commit is contained in:
1 parent
f12ec3b295
commit
e5c256daa1
3 files changed
+17
No files matched your search
@@ -104,6 +104,10 @@ func newPcapHandle(ifName string, promisc bool, snaplen int, bufSz int) (handle
|
||||
return
|
||||
}
|
||||
|
||||
func (p *Pcap) Interface() *net.Interface {
|
||||
return p.iface
|
||||
}
|
||||
|
||||
func (p *Pcap) String() string {
|
||||
return fmt.Sprint(p.iface.Name, " (via pcap)")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user