use external ioctl and netlink libraries

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>