Add flow PortWithSelectorRange
This commit is contained in:
parent
7c92d5e53e
commit
15b67423c3
2 changed files with 27 additions and 7 deletions
5
flow.go
5
flow.go
|
|
@ -73,6 +73,11 @@ type Port interface {
|
|||
WritePackets(packets [][]byte) error
|
||||
}
|
||||
|
||||
type PortWithSelectorRange interface {
|
||||
Port
|
||||
PortSelectorRange() (start uint16, count uint16)
|
||||
}
|
||||
|
||||
type Return interface {
|
||||
ReturnHeadroom() int
|
||||
ReturnPackets(packets [][]byte) [][]byte
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue