@@ -89,11 +89,11 @@ func testLinkAddDel(t *testing.T, link Link) {
8989 if resultPrimary .SupportsScrub () && resultPrimary .PeerScrub != inputPrimary .PeerScrub {
9090 t .Fatalf ("Peer Scrub is %d, should be %d" , int (resultPrimary .PeerScrub ), int (inputPrimary .PeerScrub ))
9191 }
92- if resultPrimary .Headroom != inputPrimary .Headroom {
93- t .Fatalf ("Headroom is %d, should be %d" , resultPrimary .Headroom , inputPrimary .Headroom )
92+ if resultPrimary .DesiredHeadroom != inputPrimary .DesiredHeadroom {
93+ t .Fatalf ("DesiredHeadroom is %d, should be %d" , resultPrimary .DesiredHeadroom , inputPrimary .DesiredHeadroom )
9494 }
95- if resultPrimary .Tailroom != inputPrimary .Tailroom {
96- t .Fatalf ("Tailroom is %d, should be %d" , resultPrimary .Tailroom , inputPrimary .Tailroom )
95+ if resultPrimary .DesiredTailroom != inputPrimary .DesiredTailroom {
96+ t .Fatalf ("DesiredTailroom is %d, should be %d" , resultPrimary .DesiredTailroom , inputPrimary .DesiredTailroom )
9797 }
9898 if inputPrimary .Mode == NETKIT_MODE_L2 && inputPrimary .HardwareAddr != nil {
9999 if inputPrimary .HardwareAddr .String () != resultPrimary .HardwareAddr .String () {
@@ -131,11 +131,11 @@ func testLinkAddDel(t *testing.T, link Link) {
131131 if resultPrimary .Scrub != resultPeer .PeerScrub {
132132 t .Fatalf ("PeerScrub from peer is %d, should be %d" , int (resultPeer .PeerScrub ), int (resultPrimary .Scrub ))
133133 }
134- if resultPrimary .Headroom != resultPeer .Headroom {
135- t .Fatalf ("Headroom from peer is %d, should be %d" , resultPeer .Headroom , resultPeer . Headroom )
134+ if resultPrimary .DesiredHeadroom != resultPeer .DesiredHeadroom {
135+ t .Fatalf ("DesiredHeadroom from peer is %d, should be %d" , resultPeer .DesiredHeadroom , resultPrimary . DesiredHeadroom )
136136 }
137- if resultPrimary .Tailroom != resultPeer .Tailroom {
138- t .Fatalf ("Tailroom from peer is %d, should be %d" , resultPeer .Tailroom , resultPeer . Tailroom )
137+ if resultPrimary .DesiredTailroom != resultPeer .DesiredTailroom {
138+ t .Fatalf ("DesiredTailroom from peer is %d, should be %d" , resultPeer .DesiredTailroom , resultPrimary . DesiredTailroom )
139139 }
140140 if inputPrimary .Mode == NETKIT_MODE_L2 && inputPrimary .peerLinkAttrs .HardwareAddr != nil {
141141 if inputPrimary .peerLinkAttrs .HardwareAddr .String () != resultPeer .HardwareAddr .String () {
@@ -1285,12 +1285,12 @@ func TestLinkAddDelNetkitWithHeadroom(t *testing.T) {
12851285 Name : "foo" ,
12861286 HardwareAddr : net.HardwareAddr {0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 },
12871287 },
1288- Mode : NETKIT_MODE_L2 ,
1289- Policy : NETKIT_POLICY_FORWARD ,
1290- PeerPolicy : NETKIT_POLICY_BLACKHOLE ,
1291- Scrub : NETKIT_SCRUB_DEFAULT ,
1292- PeerScrub : NETKIT_SCRUB_NONE ,
1293- Headroom : testHeadroom ,
1288+ Mode : NETKIT_MODE_L2 ,
1289+ Policy : NETKIT_POLICY_FORWARD ,
1290+ PeerPolicy : NETKIT_POLICY_BLACKHOLE ,
1291+ Scrub : NETKIT_SCRUB_DEFAULT ,
1292+ PeerScrub : NETKIT_SCRUB_NONE ,
1293+ DesiredHeadroom : testHeadroom ,
12941294 }
12951295 peerAttr := & LinkAttrs {
12961296 Name : "bar" ,
@@ -1310,12 +1310,12 @@ func TestLinkAddDelNetkitWithTailroom(t *testing.T) {
13101310 Name : "foo" ,
13111311 HardwareAddr : net.HardwareAddr {0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 },
13121312 },
1313- Mode : NETKIT_MODE_L2 ,
1314- Policy : NETKIT_POLICY_FORWARD ,
1315- PeerPolicy : NETKIT_POLICY_BLACKHOLE ,
1316- Scrub : NETKIT_SCRUB_DEFAULT ,
1317- PeerScrub : NETKIT_SCRUB_NONE ,
1318- Tailroom : testTailroom ,
1313+ Mode : NETKIT_MODE_L2 ,
1314+ Policy : NETKIT_POLICY_FORWARD ,
1315+ PeerPolicy : NETKIT_POLICY_BLACKHOLE ,
1316+ Scrub : NETKIT_SCRUB_DEFAULT ,
1317+ PeerScrub : NETKIT_SCRUB_NONE ,
1318+ DesiredTailroom : testTailroom ,
13191319 }
13201320 peerAttr := & LinkAttrs {
13211321 Name : "bar" ,
@@ -1335,13 +1335,13 @@ func TestLinkAddDelNetkitWithHeadAndTailroom(t *testing.T) {
13351335 Name : "foo" ,
13361336 HardwareAddr : net.HardwareAddr {0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 },
13371337 },
1338- Mode : NETKIT_MODE_L2 ,
1339- Policy : NETKIT_POLICY_FORWARD ,
1340- PeerPolicy : NETKIT_POLICY_BLACKHOLE ,
1341- Scrub : NETKIT_SCRUB_DEFAULT ,
1342- PeerScrub : NETKIT_SCRUB_NONE ,
1343- Headroom : testHeadroom ,
1344- Tailroom : testTailroom ,
1338+ Mode : NETKIT_MODE_L2 ,
1339+ Policy : NETKIT_POLICY_FORWARD ,
1340+ PeerPolicy : NETKIT_POLICY_BLACKHOLE ,
1341+ Scrub : NETKIT_SCRUB_DEFAULT ,
1342+ PeerScrub : NETKIT_SCRUB_NONE ,
1343+ DesiredHeadroom : testHeadroom ,
1344+ DesiredTailroom : testTailroom ,
13451345 }
13461346 peerAttr := & LinkAttrs {
13471347 Name : "bar" ,
0 commit comments