Home
last modified time | relevance | path

Searched refs:nh (Results 1 – 4 of 4) sorted by relevance

/tools/lib/bpf/
Dnetlink.c79 struct nlmsghdr *nh; in bpf_netlink_recv() local
94 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, len); in bpf_netlink_recv()
95 nh = NLMSG_NEXT(nh, len)) { in bpf_netlink_recv()
96 if (nh->nlmsg_pid != nl_pid) { in bpf_netlink_recv()
100 if (nh->nlmsg_seq != seq) { in bpf_netlink_recv()
104 if (nh->nlmsg_flags & NLM_F_MULTI) in bpf_netlink_recv()
106 switch (nh->nlmsg_type) { in bpf_netlink_recv()
108 err = (struct nlmsgerr *)NLMSG_DATA(nh); in bpf_netlink_recv()
112 libbpf_nla_dump_errormsg(nh); in bpf_netlink_recv()
120 ret = _fn(nh, fn, cookie); in bpf_netlink_recv()
[all …]
/tools/testing/selftests/net/
Dudpgso.c361 struct nlmsghdr *nh; in set_route_mtu() local
364 char data[NLMSG_ALIGN(sizeof(*nh)) + in set_route_mtu()
379 nh = (void *)data; in set_route_mtu()
380 nh->nlmsg_type = RTM_NEWROUTE; in set_route_mtu()
381 nh->nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE; in set_route_mtu()
382 off += NLMSG_ALIGN(sizeof(*nh)); in set_route_mtu()
420 nh->nlmsg_len = off; in set_route_mtu()
Dmsg_zerocopy.c491 } nh; in do_tx() local
526 iov[1].iov_len = setup_iph(&nh.iph, cfg_payload_len); in do_tx()
528 iov[1].iov_len = setup_ip6h(&nh.ip6h, cfg_payload_len); in do_tx()
530 iov[1].iov_base = (void *) &nh; in do_tx()
Dfib_tests.sh696 local nh="$2"
714 run_cmd "$IP -6 ro add ${pfx} ${nh}"
1119 local nh="$2"
1137 run_cmd "$IP ro add ${pfx} ${nh}"