Merge pull request #91 from aboch/gnames

Rename setGatewayIP() in sandbox pkg
This commit is contained in:
Madhu Venugopal
2015-04-25 19:38:53 -07:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func configureInterface(iface netlink.Link, settings *Interface) error {
return nil
}
func setGatewayIP(path string, gw net.IP) error {
func programGateway(path string, gw net.IP) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
+2 -2
View File
@@ -130,7 +130,7 @@ func (n *networkNamespace) AddInterface(i *Interface) error {
}
func (n *networkNamespace) SetGateway(gw net.IP) error {
err := setGatewayIP(n.path, gw)
err := programGateway(n.path, gw)
if err == nil {
n.sinfo.Gateway = gw
}
@@ -143,7 +143,7 @@ func (n *networkNamespace) SetGatewayIPv6(gw net.IP) error {
return nil
}
err := setGatewayIP(n.path, gw)
err := programGateway(n.path, gw)
if err == nil {
n.sinfo.GatewayIPv6 = gw
}