better document ifc_{add,del}_address return code

Test: N/A
Bug: 142764715
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8ffa7985aa2ec81959d57188755e453f0551b872
This commit is contained in:
Maciej Żenczykowski 2019-10-17 16:52:33 -07:00
parent 405e67b651
commit f0d101266f

View file

@ -362,10 +362,12 @@ int ifc_act_on_address(int action, const char *name, const char *address,
return err->error;
}
// Returns zero on success and negative errno on failure.
int ifc_add_address(const char *name, const char *address, int prefixlen) {
return ifc_act_on_address(RTM_NEWADDR, name, address, prefixlen);
}
// Returns zero on success and negative errno on failure.
int ifc_del_address(const char *name, const char * address, int prefixlen) {
return ifc_act_on_address(RTM_DELADDR, name, address, prefixlen);
}