Skip to content

Commit

Permalink
net: Remove MAX_SOCK_ADDR constant
Browse files Browse the repository at this point in the history
MAX_SOCK_ADDR is no longer used because commit 230b183 "net: Use standard
structures for generic socket address structures." replaced
"char address[MAX_SOCK_ADDR];" with "struct sockaddr_storage address;".

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tetsuo Handa authored and David S. Miller committed Jul 18, 2010
1 parent 0a6efc7 commit 01893c8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,6 @@ static DEFINE_PER_CPU(int, sockets_in_use);
* divide and look after the messy bits.
*/

#define MAX_SOCK_ADDR 128 /* 108 for Unix domain -
16 for IP, 16 for IPX,
24 for IPv6,
about 80 for AX.25
must be at least one bigger than
the AF_UNIX size (see net/unix/af_unix.c
:unix_mkname()).
*/

/**
* move_addr_to_kernel - copy a socket address into kernel space
* @uaddr: Address in user space
Expand Down

0 comments on commit 01893c8

Please sign in to comment.