OSDN Git Service

Switch to ifc_add_address() for setcfg
authorErik Kline <ek@google.com>
Fri, 5 Feb 2016 09:06:15 +0000 (18:06 +0900)
committerErik Kline <ek@google.com>
Wed, 10 Feb 2016 17:58:36 +0000 (02:58 +0900)
commit397fbc056c1ae1478f0311feab3a8a44cc6a4685
tree6ce654b50013f86f10b17885b19762c7dee94903
parentdccd7e51e369cea69d0200eda6e49615a6318d8d
Switch to ifc_add_address() for setcfg

This avoids the issue where, for example, 10.0.0.1/8 is added first,
then 10.0.0.1/8 is deleted, and 10.0.0.1/24 is added.  Netlink changes
observed at the wrong time would make it seem as though IPv4 had
been lost when in fact everthing was fine.

Bug: 26991160
Change-Id: If0dad2993f818686ef8a99618e779813e9c7af90
server/CommandListener.cpp