Move ICMP frag-needed handling into sleeveForwarder
This commit is contained in:
1 parent
4e41f649fb
commit
17c8a16757
6 files changed
+54
-61
No files matched your search
+4
-3
@@ -41,7 +41,8 @@ type InterHostForwarder interface {
|
||||
// Forward a packet across the connection. The caller must
|
||||
// supply an EthernetDecoder specific to this thread, which
|
||||
// has already been used to decode the frame.
|
||||
Forward(src *Peer, dest *Peer, frame []byte, dec *EthernetDecoder) error
|
||||
Forward(src *Peer, dest *Peer, frame []byte, dec *EthernetDecoder,
|
||||
broadcast bool)
|
||||
|
||||
Close()
|
||||
|
||||
@@ -68,8 +69,8 @@ func (NullInterHost) MakeForwarder(*Peer, net.IP, *net.UDPAddr, uint64,
|
||||
func (NullInterHost) SetListener(InterHostForwarderListener) {
|
||||
}
|
||||
|
||||
func (NullInterHost) Forward(*Peer, *Peer, []byte, *EthernetDecoder) error {
|
||||
return nil
|
||||
func (NullInterHost) Forward(*Peer, *Peer, []byte, *EthernetDecoder,
|
||||
bool) {
|
||||
}
|
||||
|
||||
func (NullInterHost) Close() {
|
||||
|
||||
Reference in new issue
Block a user