/system/core/libnl_2/ |
msg.c | 51 nlh->nlmsg_len = NLMSG_HDRLEN; 100 return (void *)((char *)nlh + NLMSG_ALIGN(nlh->nlmsg_len)); 107 int len = nlmsg_len(nlh); 122 return nlh->nlmsg_len - NLMSG_HDRLEN; 132 int nlmsg_len(const struct nlmsghdr *nlh) function 134 return nlh->nlmsg_len; 141 rem >= nlmsg_len(nlh) && 142 nlmsg_len(nlh) >= (int) sizeof(struct nlmsghdr) && 143 nlmsg_len(nlh) <= (rem);
|
/external/libnl-headers/netlink/ |
netlink-kernel.h | 32 uint32_t nlmsg_len; member in struct:nlmsghdr
|
/external/wpa_supplicant/ |
priv_netlink.h | 81 u32 nlmsg_len; member in struct:nlmsghdr
|
driver_wext.c | 108 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); 122 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)); 126 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 131 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)); 135 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 142 ret = send(drv->event_sock, &req, req.hdr.nlmsg_len, 0); 691 int attrlen, nlmsg_len, rta_len; local 696 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)) 743 int attrlen, nlmsg_len, rta_len; local 804 int attrlen, nlmsg_len, rta_len; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
priv_netlink.h | 81 u32 nlmsg_len; member in struct:nlmsghdr
|
driver_ralink.c | 754 int attrlen, nlmsg_len, rta_len; local 765 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); 767 attrlen = h->nlmsg_len - nlmsg_len; 772 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); 812 wpa_hexdump(MSG_DEBUG, "h: ", (u8 *)h, h->nlmsg_len); 817 len = h->nlmsg_len; [all...] |
driver_wext.c | 59 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); 73 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 78 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 83 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)); 87 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 94 ret = send(drv->event_sock, &req, req.hdr.nlmsg_len, 0); 655 int attrlen, nlmsg_len, rta_len; local 660 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)) 707 int attrlen, nlmsg_len, rta_len; local 768 int attrlen, nlmsg_len, rta_len; local [all...] |
/external/wpa_supplicant_8/src/ap/ |
vlan_init.c | 580 int attrlen, nlmsg_len, rta_len; local 588 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); 590 attrlen = h->nlmsg_len - nlmsg_len; 594 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); 645 len = h->nlmsg_len;
|
/external/wpa_supplicant_8/src/drivers/ |
priv_netlink.h | 60 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 62 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 64 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 65 (int) (nlh)->nlmsg_len <= (len)) 66 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) 90 u32 nlmsg_len; member in struct:nlmsghdr
|
/bionic/libc/kernel/common/linux/ |
netlink.h | 53 __u32 nlmsg_len; member in struct:nlmsghdr 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 82 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 83 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/development/ndk/platforms/android-3/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/external/iproute2/include/linux/ |
netlink.h | 40 __u32 nlmsg_len; /* Length of message including header */ member in struct:nlmsghdr 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 85 (nlh)->nlmsg_len <= (len)) 86 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
netlink.h | 42 __u32 nlmsg_len; /* Length of message including header */ member in struct:nlmsghdr 83 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 84 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 86 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 87 (nlh)->nlmsg_len <= (len)) 88 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r5/platforms/android-3/arch-arm/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-x86/usr/include/linux/ |
netlink.h | 48 __u32 nlmsg_len; member in struct:nlmsghdr 76 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 78 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/external/kernel-headers/original/linux/ |
netlink.h | 42 __u32 nlmsg_len; /* Length of message including header */ member in struct:nlmsghdr 83 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 84 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 86 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 87 (nlh)->nlmsg_len <= (len)) 88 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) 249 nlh->nlmsg_len = size;
|