You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Find the network interface identified by the DstName attribute.
813
-
iface, err:=nlh.LinkByName(i.DstName())
809
+
iface, err:=n.nlHandle.LinkByName(i.DstName())
814
810
iferr!=nil {
815
811
returnerr
816
812
}
817
813
818
814
// Down the interface before configuring
819
-
iferr:=nlh.LinkSetDown(iface); err!=nil {
815
+
iferr:=n.nlHandle.LinkSetDown(iface); err!=nil {
820
816
returnerr
821
817
}
822
818
823
819
// TODO(aker): Why are we doing this? This would fail if the initial interface set up failed before the "dest interface" was moved into its own namespace; see https://github.com/moby/moby/pull/46315/commits/108595c2fe852a5264b78e96f9e63cda284990a6#r1331253578
824
-
err=nlh.LinkSetName(iface, i.SrcName())
820
+
err=n.nlHandle.LinkSetName(iface, i.SrcName())
825
821
iferr!=nil {
826
822
log.G(context.TODO()).Debugf("LinkSetName failed for interface %s: %v", i.SrcName(), err)
// Move the network interface to caller namespace.
837
833
// TODO(aker): What's this really doing? There are no calls to LinkDel in this package: is this code really used? (Interface.Remove() has 3 callers); see https://github.com/moby/moby/pull/46315/commits/108595c2fe852a5264b78e96f9e63cda284990a6#r1331265335
0 commit comments