OpenHIP 0.9svn1
|
Go to the source code of this file.
Classes | |
struct | sockaddr_nl |
struct | nlmsghdr |
struct | ifaddrmsg |
struct | ifinfomsg |
struct | rtattr |
struct | rtgenmsg |
Defines | |
#define | AF_NETLINK 16 |
#define | NLMSG_ALIGNTO 4 |
#define | NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) |
#define | NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) |
#define | NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) |
#define | RTM_NEWLINK 0x10 |
#define | RTM_DELLINK 0x11 |
#define | RTM_NEWADDR 0x14 |
#define | RTM_DELADDR 0x15 |
#define | RTM_GETADDR 0x16 |
#define | IFA_ADDRESS 1 |
#define | IFA_LOCAL 2 |
#define | IFA_MAX 6 |
#define | IFA_F_PERMANENT 0x80 |
#define | RTA_ALIGNTO 4 |
#define | RTA_ALIGN(len) (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1)) |
#define | RTA_OK(rta, len) |
#define | RTA_NEXT(rta, attrlen) |
#define | RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) |
#define | RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) |
#define | RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) |
#define | IFA_RTA(r) |
#define | NLMSG_NOOP 0x1 |
#define | NLMSG_ERROR 0x2 |
#define | NLMSG_DONE 0x3 |
#define | NLMSG_ALIGNTO 4 |
#define | NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) |
#define | NLMSG_NEXT(nlh, len) |
#define | NLMSG_OK(nlh, len) |
#define | NLM_F_ROOT 0x100 |
#define | NLM_F_MATCH 0x200 |
#define | NLM_F_REQUEST 0x1 |
#define AF_NETLINK 16 |
#define IFA_ADDRESS 1 |
Referenced by add_address_to_iface(), get_my_addresses(), and hip_handle_netlink().
#define IFA_F_PERMANENT 0x80 |
Referenced by netlink_send_addr(), and sendIpAddrTable().
#define IFA_LOCAL 2 |
Referenced by add_address_to_iface(), get_my_addresses(), hip_handle_netlink(), netlink_send_addr(), and sendIpAddrTable().
#define IFA_MAX 6 |
Referenced by get_my_addresses(), and hip_handle_netlink().
#define IFA_RTA | ( | r | ) |
((struct rtattr*)(((char*)(r)) + \ NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Referenced by add_address_to_iface(), get_my_addresses(), hip_handle_netlink(), netlink_send_addr(), and sendIpAddrTable().
#define NLM_F_MATCH 0x200 |
Referenced by devname_to_index(), and get_my_addresses().
#define NLM_F_REQUEST 0x1 |
#define NLM_F_ROOT 0x100 |
Referenced by devname_to_index(), and get_my_addresses().
#define NLMSG_ALIGN | ( | len | ) | (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) |
#define NLMSG_ALIGN | ( | len | ) | (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) |
#define NLMSG_ALIGNTO 4 |
#define NLMSG_ALIGNTO 4 |
#define NLMSG_DATA | ( | nlh | ) | ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) |
Referenced by devname_to_index(), get_my_addresses(), hip_handle_netlink(), netfilter_get_packet(), netlink_send_addr(), and sendIpAddrTable().
#define NLMSG_DONE 0x3 |
Referenced by devname_to_index(), get_my_addresses(), read_netlink_response(), and sendIpAddrTable().
#define NLMSG_ERROR 0x2 |
Referenced by devname_to_index(), get_my_addresses(), and read_netlink_response().
#define NLMSG_LENGTH | ( | len | ) | ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) |
Referenced by devname_to_index(), get_my_addresses(), hip_handle_netlink(), netlink_send_addr(), and sendIpAddrTable().
#define NLMSG_NEXT | ( | nlh, | |
len | |||
) |
((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ (struct nlmsghdr*)(((char*)(nlh)) + \ NLMSG_ALIGN((nlh)->nlmsg_len)))
Referenced by devname_to_index(), get_my_addresses(), hip_handle_netlink(), netfilter_queue_sendmsg(), read_netlink_response(), and sendIpAddrTable().
#define NLMSG_NOOP 0x1 |
Referenced by sendIpAddrTable().
#define NLMSG_OK | ( | nlh, | |
len | |||
) |
Referenced by devname_to_index(), get_my_addresses(), hip_handle_netlink(), netfilter_queue_sendmsg(), and read_netlink_response().
#define RTA_ALIGN | ( | len | ) | (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1)) |
#define RTA_ALIGNTO 4 |
#define RTA_DATA | ( | rta | ) | ((void*)(((char*)(rta)) + RTA_LENGTH(0))) |
Referenced by add_address_to_iface(), devname_to_index(), get_my_addresses(), and hip_handle_netlink().
#define RTA_LENGTH | ( | len | ) | (RTA_ALIGN(sizeof(struct rtattr)) + (len)) |
Referenced by add_address_to_iface(), netlink_send_addr(), and sendIpAddrTable().
#define RTA_NEXT | ( | rta, | |
attrlen | |||
) |
((attrlen) -= RTA_ALIGN((rta)->rta_len), \ (struct rtattr*)(((char*)(rta)) + \ RTA_ALIGN((rta)->rta_len)))
Referenced by add_address_to_iface(), devname_to_index(), get_my_addresses(), and hip_handle_netlink().
#define RTA_OK | ( | rta, | |
len | |||
) |
Referenced by devname_to_index(), get_my_addresses(), and hip_handle_netlink().
#define RTA_PAYLOAD | ( | rta | ) | ((int)((rta)->rta_len) - RTA_LENGTH(0)) |
Referenced by devname_to_index(), get_my_addresses(), and hip_handle_netlink().
#define RTM_DELADDR 0x15 |
Referenced by hip_handle_netlink(), and netlink_send_addr().
#define RTM_DELLINK 0x11 |
Referenced by hip_handle_netlink().
#define RTM_GETADDR 0x16 |
Referenced by get_my_addresses(), and hip_netlink().
#define RTM_NEWADDR 0x14 |
Referenced by add_address_to_iface(), hip_handle_netlink(), netlink_send_addr(), and read_netlink_response().
#define RTM_NEWLINK 0x10 |
Referenced by hip_handle_netlink().