Skip to content

Commit c73626e

Browse files
committed
Merge pull request #12026 from Zwlin98:master
PiperOrigin-RevId: 794453770
2 parents 4363011 + 7893d4d commit c73626e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/tcpip/header/virtionet.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ func (v VirtioNetHeader) CSumOffset() uint16 {
8787
func (v VirtioNetHeader) Encode(f *VirtioNetHeaderFields) {
8888
v[flags] = uint8(f.Flags)
8989
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)
90+
binary.LittleEndian.PutUint16(v[hdrLen:], f.HdrLen)
91+
binary.LittleEndian.PutUint16(v[gsoSize:], f.GSOSize)
92+
binary.LittleEndian.PutUint16(v[csumStart:], f.CSumStart)
93+
binary.LittleEndian.PutUint16(v[csumOffset:], f.CSumOffset)
9494
}

0 commit comments

Comments
 (0)