1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libnetwork/drivers
Andy Lindeman f2ae8467e3 Avoids panic when checking for conflicts against an uninitalized network
A network is added to the `d.networks` map before it's fully initialized. That
is, it's possible for a network in `d.networks` to exist without having
`bridgeIPv4` populated yet. If multiple networks are spun up close to the same
time, a panic can occur.

Example:
```
panic(0x1a75d20, 0xc82000e090)
        /usr/local/go/src/runtime/panic.go:443 +0x4e9
net.networkNumberAndMask(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /usr/local/go/src/net/ip.go:433 +0x42
net.(*IPNet).Contains(0x0, 0xc82084dbd0, 0x4, 0x4, 0xc820010200)
        /usr/local/go/src/net/ip.go:457 +0x25
github.com/docker/libnetwork/drivers/bridge.(*networkConfiguration).conflictsWithNetworks(0xc822249360, 0xc822761380, 0x40, 0xc820866a60, 0x4, 0x4, 0x0, 0x0)
        /root/rpmbuild/BUILD/docker-engine/vendor/src/github.com/docker/libnetwork/drivers/bridge/bridge.go:334 +0x40b
```

Signed-off-by: Andy Lindeman <alindeman@salesforce.com>
2016-07-07 11:27:12 -04:00
..
bridge Avoids panic when checking for conflicts against an uninitalized network 2016-07-07 11:27:12 -04:00
host Add driver api enhancements for gossip 2016-04-18 19:55:39 -07:00
ipvlan IPvlan and macvlan driver to persist endpoints 2016-06-13 23:48:00 -07:00
macvlan Delete endpoint from network map for macvlan driver upon endpoint deletion 2016-06-14 13:50:43 -07:00
null Add driver api enhancements for gossip 2016-04-18 19:55:39 -07:00
overlay ovmanager: Error out on vxlan id alloc failure 2016-06-28 13:46:22 -07:00
remote Do not error on non discovery type messages in remote driver 2016-06-25 16:23:11 -07:00
windows Static ip support for windows 2016-04-20 15:44:32 -07:00