Home
last modified time | relevance | path

Searched refs:rtattr (Results 1 – 22 of 22) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c171 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add()
174 struct rtattr *rta = in rtattr_add()
175 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len)); in rtattr_add()
182 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str()
185 struct rtattr *rta = rtattr_add(nh, type, strlen(s)); in rtattr_add_str()
191 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin()
196 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
210 struct rtattr *link_info, *info_data; in setup_xfrmi_external_dev()
H A Dtc_redirect.c166 struct rtattr *linkinfo, *data, *peer_info; in create_netkit()
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_diag.c124 struct rtattr rta_proto; in send_query()
159 static void parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta, in parse_rtattr_flags()
164 memset(tb, 0, sizeof(struct rtattr *) * (max + 1)); in parse_rtattr_flags()
209 static void print_subflow_info(struct rtattr *tb[]) in print_subflow_info()
268 struct rtattr *tb[INET_DIAG_MAX + 1]; in parse_nlmsg()
270 parse_rtattr_flags(tb, INET_DIAG_MAX, (struct rtattr *)(r + 1), in parse_nlmsg()
289 struct rtattr *ulpinfo[INET_ULP_INFO_MAX + 1] = { 0 }; in parse_nlmsg()
295 struct rtattr *sfinfo[MPTCP_SUBFLOW_ATTR_MAX + 1] = { 0 }; in parse_nlmsg()
H A Dpm_nl_ctl.c80 struct rtattr *attrs = (struct rtattr *)NLMSG_DATA(nh); in nl_error()
107 struct rtattr *attrs; in capture_events()
150 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in capture_events()
258 struct rtattr *attrs; in genl_parse_getfamily()
259 struct rtattr *grps; in genl_parse_getfamily()
260 struct rtattr *grp; in genl_parse_getfamily()
278 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily()
328 struct rtattr *rta; in resolve_mptcp_pm_netlink()
352 struct rtattr *rt in dsf()
[all...]
/linux/tools/testing/selftests/bpf/
H A Dnetlink_helpers.h24 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
44 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
45 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
H A Dnetlink_helpers.c316 struct rtattr *rta; in addattr_l()
346 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type) in addattr_nest()
348 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest()
354 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end()
H A Dxsk.c396 struct rtattr *rta; in xsk_set_mtu()
409 rta = (struct rtattr *)(((char *)&req) + NLMSG_ALIGN(req.nh.nlmsg_len)); in xsk_set_mtu()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c60 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr()
62 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len)); in rtattr_hdr()
69 struct rtattr *attr = rtattr_hdr(nh); in rtattr_pack()
85 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin()
88 struct rtattr *ret = rtattr_hdr(nh); in _rtattr_begin()
96 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin()
102 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
113 struct rtattr *peer_attr; in veth_pack_peerb()
144 struct rtattr *link_info, *info_data; in __add_veth()
358 struct rtattr *link_info, *info_data; in __add_vrf()
/linux/tools/testing/selftests/net/
H A Dtap.c33 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add()
36 struct rtattr *rta = in rtattr_add()
37 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len)); in rtattr_add()
44 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin()
49 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
56 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str()
60 struct rtattr *rta; in rtattr_add_str()
68 static struct rtattr *rtattr_add_any(struct nlmsghdr *nh, unsigned short type, in rtattr_add_any()
71 struct rtattr *rta = rtattr_add(nh, type, len); in rtattr_add_any()
86 struct rtattr *link_info, *info_data; in dev_create()
H A Dipsec.c211 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr()
213 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len)); in rtattr_hdr()
220 struct rtattr *attr = rtattr_hdr(nh); in rtattr_pack()
237 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin()
240 struct rtattr *ret = rtattr_hdr(nh); in _rtattr_begin()
248 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin()
254 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
265 struct rtattr *peer_attr; in veth_pack_peerb()
319 struct rtattr *link_info, *info_data; in veth_add()
1682 struct rtattr *att in xfrm_spdinfo_attrs()
[all...]
/linux/include/crypto/
H A Dalgapi.h53 struct rtattr;
82 int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
158 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb);
159 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret);
160 const char *crypto_attr_alg_name(struct rtattr *rta);
/linux/tools/include/uapi/linux/
H A Drtnetlink.h219 struct rtattr { struct
228 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
229 (rta)->rta_len >= sizeof(struct rtattr) && \
232 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
233 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
407 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
448 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
663 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
817 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dif_addr.h69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/linux/crypto/
H A Dalgboss.c24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2];
27 struct rtattr attr;
32 struct rtattr attr;
H A Dauthenc.c47 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys()
360 struct rtattr **tb) in crypto_authenc_create()
H A Dseqiv.c126 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create()
H A Dessiv.c440 static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb) in essiv_create()
/linux/tools/testing/selftests/net/af_unix/
H A Ddiag_uid.c120 struct rtattr *attr; in render_response()
126 attr = (struct rtattr *)(udr + 1); in render_response()
/linux/include/uapi/linux/
H A Dif_addr.h69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/linux/samples/bpf/
H A Dxdp_router_ipv4_user.c95 struct rtattr *rt_attr; in read_route()
123 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_route()
318 struct rtattr *rt_attr; in read_arp()
335 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_arp()
/linux/include/crypto/internal/
H A Daead.h16 struct rtattr;
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c1085 struct rtattr *rta; in ovpn_addattr()
1107 static struct rtattr *ovpn_nest_start(struct nlmsghdr *msg, size_t max_size,
1110 struct rtattr *nest = nlmsg_tail(msg); in ovpn_rt_socket()
1118 static void ovpn_nest_end(struct nlmsghdr *msg, struct rtattr *nest) in ovpn_rt_socket()
1376 struct rtattr *linkinfo, *data; in ovpn_new_iface()