Assigning ipv6 address using ioctl
| I'm trying to assign an IPv6 address to an interface using ioctl, but in vain. Here's the code I used:
#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stddef.h> /* offsetof */ #include <net/if.h> #include <unistd.h> #include <sys/ioctl.h> #include <linux/sockios.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 #include <netpacket/packet.h> #include <net/ethernet.h> #else #include <asm/types.h> #include <linux/if_ether.h>
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment