/Linux-v4.19/tools/include/uapi/linux/ |
D | netlink.h | 90 #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)))
|
D | if_link.h | 177 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/Linux-v4.19/include/uapi/linux/ |
D | netlink.h | 90 #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)))
|
D | netfilter_decnet.h | 63 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
|
D | if_addr.h | 67 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | genetlink.h | 19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
D | rtnetlink.h | 350 #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)))) 730 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
D | tipc_config.h | 372 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
|
D | if_link.h | 177 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | udpgso.c | 373 char data[NLMSG_ALIGN(sizeof(*nh)) + in set_route_mtu() 374 NLMSG_ALIGN(sizeof(*rt)) + in set_route_mtu() 375 NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + in set_route_mtu() 376 NLMSG_ALIGN(RTA_LENGTH(sizeof(int))) + in set_route_mtu() 377 NLMSG_ALIGN(RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)))]; in set_route_mtu() 391 off += NLMSG_ALIGN(sizeof(*nh)); in set_route_mtu() 400 off += NLMSG_ALIGN(sizeof(*rt)); in set_route_mtu() 409 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 415 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 421 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
|
/Linux-v4.19/net/decnet/netfilter/ |
D | dn_rtmsg.c | 42 size = NLMSG_ALIGN(rt_skb->len) + in dnrmg_build_message() 43 NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)); in dnrmg_build_message()
|
/Linux-v4.19/include/uapi/linux/netfilter/ |
D | nfnetlink_compat.h | 60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
/Linux-v4.19/drivers/scsi/ |
D | scsi_netlink.c | 64 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
|
/Linux-v4.19/include/net/ |
D | netlink.h | 297 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size() 336 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata() 346 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() 372 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next()
|
D | genetlink.h | 344 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
|
/Linux-v4.19/net/phonet/ |
D | pn_netlink.c | 43 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in phonet_address_notify() 209 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in rtm_phonet_notify()
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_user.c | 1076 return NLMSG_ALIGN(4) in xfrm_spdinfo_msgsize() 1203 return NLMSG_ALIGN(4) in xfrm_sadinfo_msgsize() 1952 return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) in xfrm_aevent_msgsize() 2429 return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) in xfrm_migrate_msgsize() 2679 return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) in xfrm_expire_msgsize() 2750 int len = NLMSG_ALIGN(sizeof(struct xfrm_usersa_flush)); in xfrm_notify_sa_flush() 2831 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa() 2900 return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) in xfrm_acquire_msgsize() 3026 return NLMSG_ALIGN(sizeof(struct xfrm_user_polexpire)) in xfrm_polexpire_msgsize() 3100 len += NLMSG_ALIGN(headlen); in xfrm_notify_policy() [all …]
|
/Linux-v4.19/drivers/infiniband/core/ |
D | netlink.c | 247 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in rdma_nl_rcv_skb()
|
D | addr.c | 163 len += NLMSG_ALIGN(sizeof(*header)); in ib_nl_ip_send_msg() 177 header = skb_put(skb, NLMSG_ALIGN(sizeof(*header))); in ib_nl_ip_send_msg()
|
/Linux-v4.19/net/netfilter/ |
D | nfnetlink.c | 469 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch() 516 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_skb_batch()
|
/Linux-v4.19/net/core/ |
D | sock_diag.c | 114 return NLMSG_ALIGN(sizeof(struct inet_diag_msg) in sock_diag_nlmsg_size()
|
/Linux-v4.19/net/bridge/ |
D | br_mdb.c | 256 return NLMSG_ALIGN(sizeof(struct br_port_msg)) in rtnl_mdb_nlmsg_size() 450 return NLMSG_ALIGN(sizeof(struct br_port_msg)) in rtnl_rtr_nlmsg_size()
|
/Linux-v4.19/tools/accounting/ |
D | getdelays.c | 141 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
|
/Linux-v4.19/net/ipv6/ |
D | addrlabel.c | 489 return NLMSG_ALIGN(sizeof(struct ifaddrlblmsg)) in ip6addrlbl_msgsize()
|
/Linux-v4.19/net/netlink/ |
D | af_netlink.c | 2161 nlh = skb_put(skb, NLMSG_ALIGN(size)); in __nlmsg_put() 2167 if (!__builtin_constant_p(size) || NLMSG_ALIGN(size) - size != 0) in __nlmsg_put() 2168 memset(nlmsg_data(nlh) + len, 0, NLMSG_ALIGN(size) - size); in __nlmsg_put() 2463 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in netlink_rcv_skb()
|