Lines Matching refs:nlh
13 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
107 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat() argument
115 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat() argument
155 static int __sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_rcv_msg() argument
158 struct sock_diag_req *req = nlmsg_data(nlh); in __sock_diag_rcv_msg()
161 if (nlmsg_len(nlh) < sizeof(*req)) in __sock_diag_rcv_msg()
176 err = hndl->dump(skb, nlh); in __sock_diag_rcv_msg()
182 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in sock_diag_rcv_msg() argument
186 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg()
195 ret = inet_rcv_compat(skb, nlh); in sock_diag_rcv_msg()
202 return __sock_diag_rcv_msg(skb, nlh); in sock_diag_rcv_msg()