Lines Matching refs:nlh
18 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
169 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat() argument
177 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat() argument
217 static int __sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_rcv_msg() argument
220 struct sock_diag_req *req = nlmsg_data(nlh); in __sock_diag_rcv_msg()
223 if (nlmsg_len(nlh) < sizeof(*req)) in __sock_diag_rcv_msg()
238 err = hndl->dump(skb, nlh); in __sock_diag_rcv_msg()
244 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in sock_diag_rcv_msg() argument
248 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg()
257 ret = inet_rcv_compat(skb, nlh); in sock_diag_rcv_msg()
264 return __sock_diag_rcv_msg(skb, nlh); in sock_diag_rcv_msg()