Lines Matching refs:nlh
19 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
165 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat() argument
173 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat() argument
213 static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_cmd() argument
216 struct sock_diag_req *req = nlmsg_data(nlh); in __sock_diag_cmd()
219 if (nlmsg_len(nlh) < sizeof(*req)) in __sock_diag_cmd()
233 else if (nlh->nlmsg_type == SOCK_DIAG_BY_FAMILY) in __sock_diag_cmd()
234 err = hndl->dump(skb, nlh); in __sock_diag_cmd()
235 else if (nlh->nlmsg_type == SOCK_DESTROY && hndl->destroy) in __sock_diag_cmd()
236 err = hndl->destroy(skb, nlh); in __sock_diag_cmd()
244 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in sock_diag_rcv_msg() argument
249 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg()
257 ret = inet_rcv_compat(skb, nlh); in sock_diag_rcv_msg()
265 return __sock_diag_cmd(skb, nlh); in sock_diag_rcv_msg()