Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
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 …]
/kernel/linux/linux-5.10/tools/include/uapi/linux/
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)))
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dnetlink.h66 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
67 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
69 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
71 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
72 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
Dnetfilter_decnet.h37 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
Dif_addr.h51 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dgenetlink.h18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
Drtnetlink.h253 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
422 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
540 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
/kernel/linux/linux-5.10/include/uapi/linux/
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)))
Dnetfilter_decnet.h53 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
Dif_addr.h68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
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))))
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dnetlink.h79 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) macro
80 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
84 …fine NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr *) (((char *) (…
Dnetfilter_decnet.h44 #define NFDN_RTMSG(r) ((unsigned char *) (r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
Dif_addr.h64 #define IFA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dgenetlink.h31 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
Drtnetlink.h285 #define RTM_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
453 #define TCA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
572 #define TA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
/kernel/linux/linux-5.10/tools/testing/selftests/net/
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()
/kernel/linux/linux-5.10/net/decnet/netfilter/
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()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
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()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/
Dnfnetlink_compat.h48 #define NFM_NFA(n) ((struct nfattr *) (((char *) (n)) + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
Dnfnetlink_compat.h60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/
Dnfnetlink_compat.h44 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_netlink.c50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
/kernel/linux/linux-5.10/net/phonet/
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()

123