We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4363011 + 7893d4d commit c73626eCopy full SHA for c73626e
pkg/tcpip/header/virtionet.go
@@ -87,8 +87,8 @@ func (v VirtioNetHeader) CSumOffset() uint16 {
87
func (v VirtioNetHeader) Encode(f *VirtioNetHeaderFields) {
88
v[flags] = uint8(f.Flags)
89
v[gsoType] = uint8(f.GSOType)
90
- binary.BigEndian.PutUint16(v[hdrLen:], f.HdrLen)
91
- binary.BigEndian.PutUint16(v[gsoSize:], f.GSOSize)
92
- binary.BigEndian.PutUint16(v[csumStart:], f.CSumStart)
93
- binary.BigEndian.PutUint16(v[csumOffset:], f.CSumOffset)
+ binary.LittleEndian.PutUint16(v[hdrLen:], f.HdrLen)
+ binary.LittleEndian.PutUint16(v[gsoSize:], f.GSOSize)
+ binary.LittleEndian.PutUint16(v[csumStart:], f.CSumStart)
+ binary.LittleEndian.PutUint16(v[csumOffset:], f.CSumOffset)
94
}
0 commit comments