• Home
  • Raw
  • Download

Lines Matching refs:nlh

84 	struct nlmsghdr  *nlh;  in inet_sk_diag_fill()  local
93 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill()
95 if (!nlh) in inet_sk_diag_fill()
98 r = nlmsg_data(nlh); in inet_sk_diag_fill()
211 return nlmsg_end(skb, nlh); in inet_sk_diag_fill()
214 nlmsg_cancel(skb, nlh); in inet_sk_diag_fill()
237 struct nlmsghdr *nlh; in inet_twsk_diag_fill() local
239 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_twsk_diag_fill()
241 if (!nlh) in inet_twsk_diag_fill()
244 r = nlmsg_data(nlh); in inet_twsk_diag_fill()
283 return nlmsg_end(skb, nlh); in inet_twsk_diag_fill()
349 const struct nlmsghdr *nlh, in inet_diag_dump_one_icsk() argument
372 nlh->nlmsg_seq, 0, nlh, in inet_diag_dump_one_icsk()
397 const struct nlmsghdr *nlh, in inet_diag_cmd_exact() argument
407 err = handler->dump_one(in_skb, nlh, req); in inet_diag_cmd_exact()
738 cb->nlh->nlmsg_seq, NLM_F_MULTI, cb->nlh, in inet_csk_diag_dump()
775 cb->nlh->nlmsg_seq, NLM_F_MULTI, cb->nlh); in inet_twsk_diag_dump()
817 struct nlmsghdr *nlh; in inet_diag_fill_req() local
820 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_diag_fill_req()
822 if (!nlh) in inet_diag_fill_req()
825 r = nlmsg_data(nlh); in inet_diag_fill_req()
860 return nlmsg_end(skb, nlh); in inet_diag_fill_req()
920 cb->nlh->nlmsg_seq, cb->nlh); in inet_diag_dump_reqs()
1120 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump()
1121 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump()
1123 return __inet_diag_dump(skb, cb, nlmsg_data(cb->nlh), bc); in inet_diag_dump()
1140 struct inet_diag_req *rc = nlmsg_data(cb->nlh); in inet_diag_dump_compat()
1146 req.sdiag_protocol = inet_diag_type2proto(cb->nlh->nlmsg_type); in inet_diag_dump_compat()
1151 if (nlmsg_attrlen(cb->nlh, hdrlen)) in inet_diag_dump_compat()
1152 bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); in inet_diag_dump_compat()
1158 const struct nlmsghdr *nlh) in inet_diag_get_exact_compat() argument
1160 struct inet_diag_req *rc = nlmsg_data(nlh); in inet_diag_get_exact_compat()
1164 req.sdiag_protocol = inet_diag_type2proto(nlh->nlmsg_type); in inet_diag_get_exact_compat()
1169 return inet_diag_cmd_exact(SOCK_DIAG_BY_FAMILY, in_skb, nlh, &req); in inet_diag_get_exact_compat()
1172 static int inet_diag_rcv_msg_compat(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_diag_rcv_msg_compat() argument
1177 if (nlh->nlmsg_type >= INET_DIAG_GETSOCK_MAX || in inet_diag_rcv_msg_compat()
1178 nlmsg_len(nlh) < hdrlen) in inet_diag_rcv_msg_compat()
1181 if (nlh->nlmsg_flags & NLM_F_DUMP) { in inet_diag_rcv_msg_compat()
1182 if (nlmsg_attrlen(nlh, hdrlen)) { in inet_diag_rcv_msg_compat()
1186 attr = nlmsg_find_attr(nlh, hdrlen, in inet_diag_rcv_msg_compat()
1196 return netlink_dump_start(net->diag_nlsk, skb, nlh, &c); in inet_diag_rcv_msg_compat()
1200 return inet_diag_get_exact_compat(skb, nlh); in inet_diag_rcv_msg_compat()