|
@@ -64,7 +64,7 @@ static inline struct sock_diag_handler *sock_diag_lock_handler(int family)
|
|
{
|
|
{
|
|
if (sock_diag_handlers[family] == NULL)
|
|
if (sock_diag_handlers[family] == NULL)
|
|
request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
|
|
request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
|
|
- NETLINK_SOCK_DIAG, IPPROTO_IP);
|
|
|
|
|
|
+ NETLINK_SOCK_DIAG, family);
|
|
|
|
|
|
mutex_lock(&sock_diag_table_mutex);
|
|
mutex_lock(&sock_diag_table_mutex);
|
|
return sock_diag_handlers[family];
|
|
return sock_diag_handlers[family];
|
|
@@ -103,7 +103,7 @@ static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
|
case DCCPDIAG_GETSOCK:
|
|
case DCCPDIAG_GETSOCK:
|
|
if (inet_rcv_compat == NULL)
|
|
if (inet_rcv_compat == NULL)
|
|
request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
|
|
request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
|
|
- NETLINK_SOCK_DIAG, IPPROTO_IP);
|
|
|
|
|
|
+ NETLINK_SOCK_DIAG, AF_INET);
|
|
|
|
|
|
mutex_lock(&sock_diag_table_mutex);
|
|
mutex_lock(&sock_diag_table_mutex);
|
|
if (inet_rcv_compat != NULL)
|
|
if (inet_rcv_compat != NULL)
|