Lines Matching refs:nlh
50 struct nlmsghdr nlh; \
53 .nlh = { \
1932 static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r,
2045 static int inet_show_sock(struct nlmsghdr *nlh, struct filter *f, int protocol)
2048 struct inet_diag_msg *r = NLMSG_DATA(nlh);
2052 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
2111 tcp_show_info(nlh, r, tb);
2122 struct nlmsghdr nlh;
2137 req.nlh.nlmsg_len = sizeof(req);
2139 req.nlh.nlmsg_type = TCPDIAG_GETSOCK;
2141 req.nlh.nlmsg_type = DCCPDIAG_GETSOCK;
2142 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST;
2143 req.nlh.nlmsg_pid = 0;
2144 req.nlh.nlmsg_seq = MAGIC_SEQ;
2169 req.nlh.nlmsg_len += RTA_LENGTH(bclen);
2228 req.nlh.nlmsg_len += RTA_LENGTH(bclen);
2260 req.nlh.nlmsg_type = SOCK_DESTROY;
2261 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
2262 req.nlh.nlmsg_seq = ++rth->seq;
2267 return rtnl_talk(rth, &req.nlh, NULL, 0);
2710 static int unix_show_sock(const struct sockaddr_nl *addr, struct nlmsghdr *nlh,
2714 struct unix_diag_msg *r = NLMSG_DATA(nlh);
2720 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
2803 return handle_netlink_request(f, &req.nlh, sizeof(req), unix_show_sock);
2957 struct nlmsghdr *nlh, void *arg)
2960 struct packet_diag_msg *r = NLMSG_DATA(nlh);
2969 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
3089 return handle_netlink_request(f, &req.nlh, sizeof(req), packet_show_sock);
3245 struct nlmsghdr *nlh, void *arg)
3248 struct netlink_diag_msg *r = NLMSG_DATA(nlh);
3254 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
3290 return handle_netlink_request(f, &req.nlh, sizeof(req), netlink_show_sock);
3333 struct nlmsghdr *nlh, void *arg)
3335 struct sock_diag_msg *r = NLMSG_DATA(nlh);
3341 return show_one_inet_sock(addr, nlh, &inet_arg);
3343 return unix_show_sock(addr, nlh, arg);
3345 return packet_show_sock(addr, nlh, arg);
3347 return netlink_show_sock(addr, nlh, arg);