Home
last modified time | relevance | path

Searched refs:NLMSG_ALIGN (Results 1 – 25 of 74) sorted by relevance

123

/OK3568_Linux_fs/kernel/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c46 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req()
51 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
149 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in resolve_mptcp_pm_netlink()
150 NLMSG_ALIGN(sizeof(struct genlmsghdr)) + in resolve_mptcp_pm_netlink()
166 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink()
174 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in add_addr()
175 NLMSG_ALIGN(sizeof(struct genlmsghdr)) + in add_addr()
198 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
212 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
219 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
[all …]
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
H A Drtnetlink.h350 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
593 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
728 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dnetfilter_decnet.h61 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
H A Dif_addr.h67 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
H A Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
H A Drtnetlink.h350 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
593 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
728 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dnetfilter_decnet.h61 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
H A Dif_addr.h67 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
H A Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
H A Drtnetlink.h375 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
624 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
765 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dnetfilter_decnet.h53 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
H A Dif_addr.h68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
H A Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dudpgso.c364 char data[NLMSG_ALIGN(sizeof(*nh)) + in set_route_mtu()
365 NLMSG_ALIGN(sizeof(*rt)) + in set_route_mtu()
366 NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + in set_route_mtu()
367 NLMSG_ALIGN(RTA_LENGTH(sizeof(int))) + in set_route_mtu()
368 NLMSG_ALIGN(RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)))]; in set_route_mtu()
382 off += NLMSG_ALIGN(sizeof(*nh)); in set_route_mtu()
391 off += NLMSG_ALIGN(sizeof(*rt)); in set_route_mtu()
400 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
406 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
412 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
/OK3568_Linux_fs/kernel/net/decnet/netfilter/
H A Ddn_rtmsg.c40 size = NLMSG_ALIGN(rt_skb->len) + in dnrmg_build_message()
41 NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)); in dnrmg_build_message()
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dnet.c206 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg()
245 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_qdisc_nlmsg()
284 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_filter_nlmsg()
323 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg()
/OK3568_Linux_fs/kernel/include/uapi/linux/netfilter/
H A Dnfnetlink_compat.h60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/netfilter/
H A Dnfnetlink_compat.h59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/netfilter/
H A Dnfnetlink_compat.h59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/OK3568_Linux_fs/kernel/net/phonet/
H A Dpn_netlink.c30 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in phonet_address_notify()
196 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in rtm_phonet_notify()
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dscsi_netlink.c50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()

123