Skip to content

Commit cf31cbc

Browse files
route: fix faulty test data
192.168.86.0 is a Class C network address, that should have a subnet mask of 255.255.0. The test data can also immediately be flag as incorrect taking structure padding rules alone.
1 parent a116280 commit cf31cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

route/address_darwin_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ var parseAddrsOnDarwinLittleEndianTests = []parseAddrsOnDarwinTest{
2929
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
3030
0x0, 0x0, 0x0, 0x0,
3131

32-
0x7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
32+
0x7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0,
3333
},
3434
[]Addr{
3535
&Inet4Addr{IP: [4]byte{192, 168, 86, 0}},
3636
&LinkAddr{Index: 4},
37-
&Inet4Addr{IP: [4]byte{255, 255, 255, 255}},
37+
&Inet4Addr{IP: [4]byte{255, 255, 255, 0}},
3838
nil,
3939
nil,
4040
nil,

0 commit comments

Comments
 (0)