Is there a way to get and set IP address on an interface in family agnostic way?
I have found about getifaddrs. Is there something similar but for setting addresses, or I need to use ioclt?
Here is my case: I need to extend an IPv4 application managing interfaces to support IPv6 addresses also. This application uses ioctl for AF_INET. My question is what would be the best approach for me to do add/delete/status for an interface to support IPv6 also - add another ioctl layer for IPv6, or mix netlink for IPv6 with ioctl for IPv4?
Thanks!