Lines Matching full:address
32 * adds an IP address to/from an interface, returns 0 on success and <0 on failure
34 * family - address family (AF_INET, AF_INET6)
35 * address - pointer to a struct in_addr or in6_addr
37 * broadcast - broadcast address (only for AF_INET, ignored for AF_INET6)
39 int add_address(const char *ifname, int family, const void *address, int prefixlen, const void *broadcast) {
66 if(nla_put(msg, IFA_LOCAL, addr_size, address) < 0) {
72 if(nla_put(msg, IFA_ADDRESS, addr_size, address) < 0) {
156 * adds an anycast IPv6 address to an interface, returns 0 on success and <0 on failure
157 * sock - the socket to add the address to
158 * addr - the IP address to add
159 * ifname - name of interface to add the address to
174 * removes an anycast IPv6 address from the system, returns 0 on success and <0 on failure
175 * sock - the socket to remove from, must have had the address added via add_anycast_address
176 * addr - the IP address to remove