Merge "better document ifc_{add,del}_address return code"
This commit is contained in:
commit
32e7325c44
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