Skip to content

Commit

Permalink
route: fix faulty test data
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hurricanehrndz committed Feb 6, 2025
1 parent a116280 commit cf31cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions route/address_darwin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ var parseAddrsOnDarwinLittleEndianTests = []parseAddrsOnDarwinTest{
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0,

0x7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0,
},
[]Addr{
&Inet4Addr{IP: [4]byte{192, 168, 86, 0}},
&LinkAddr{Index: 4},
&Inet4Addr{IP: [4]byte{255, 255, 255, 255}},
&Inet4Addr{IP: [4]byte{255, 255, 255, 0}},
nil,
nil,
nil,
Expand Down

0 comments on commit cf31cbc

Please sign in to comment.