Searched refs:nh (Results 1 – 4 of 4) sorted by relevance
79 struct nlmsghdr *nh; in bpf_netlink_recv() local94 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 …]
361 struct nlmsghdr *nh; in set_route_mtu() local364 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()
491 } nh; in do_tx() local526 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()
696 local nh="$2"714 run_cmd "$IP -6 ro add ${pfx} ${nh}"1119 local nh="$2"1137 run_cmd "$IP ro add ${pfx} ${nh}"