Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
basilgello committed Jul 17, 2024
1 parent 302e563 commit 7637e09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/netstack/yggdrasil.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func (e *YggdrasilNIC) WritePackets(
list stack.PacketBufferList,
) (int, tcpip.Error) {
var i int = 0
// Trap for RST-packets generated by replyWithReset
if list.Len() < 2 {
return i, nil
}
for i, pkt := range list.AsSlice() {
vv := pkt.ToView()
n, err := vv.Read(e.writeBuf)
Expand Down

0 comments on commit 7637e09

Please sign in to comment.