OSDN Git Service

Avoid setting prefix length for 0.0.0.0 address
authorIrfan Sheriff <isheriff@google.com>
Sat, 3 Sep 2011 00:34:12 +0000 (17:34 -0700)
committerIrfan Sheriff <isheriff@google.com>
Sat, 3 Sep 2011 00:34:12 +0000 (17:34 -0700)
commitab374f426a0d1d8598f3eb4b0339440dcb313a1a
tree50476fb135544a7bb98a2551a38a0816f94bf867
parent11b4e9b26fe7b878992162afb39f5a8acfd143ed
Avoid setting prefix length for 0.0.0.0 address

The ioctl to set netmask fails when the interface address is 0.0.0.0.
The kernel always keeps the netmask as 0 when the address is 0.0.0.0.
Avoid making a call to prefix length when address is 0.0.0.0

Bug: 5255172
Change-Id: Id32f7823b2230fb9ac7cd45b0df1951f11338112
CommandListener.cpp