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:
parent
405e67b651
commit
f0d101266f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue