sock_diag: Fix module netlink aliases
authorPavel Emelyanov <xemul@parallels.com>
Thu, 15 Dec 2011 02:43:27 +0000 (02:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Dec 2011 18:48:27 +0000 (13:48 -0500)
commitaec8dc62f66199aef153d86e1f90d9c1d14696e3
treebdf927f62708cfa5b7a0561725ab76da8ac2ceb2
parente7c466e58eb1ff9bf49c2f3902622dc11a8c7022
sock_diag: Fix module netlink aliases

I've made a mistake when fixing the sock_/inet_diag aliases :(

1. The sock_diag layer should request the family-based alias,
   not just the IPPROTO_IP one;
2. The inet_diag layer should request for AF_INET+protocol alias,
   not just the protocol one.

Thus fix this.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock_diag.c
net/dccp/diag.c
net/ipv4/inet_diag.c
net/ipv4/tcp_diag.c
net/ipv4/udp_diag.c