Skip to content

Commit 01893c8

Browse files
Tetsuo Handadavem330
authored andcommitted
net: Remove MAX_SOCK_ADDR constant
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0a6efc7 commit 01893c8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

net/socket.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,6 @@ static DEFINE_PER_CPU(int, sockets_in_use);
170170
* divide and look after the messy bits.
171171
*/
172172

173-
#define MAX_SOCK_ADDR 128 /* 108 for Unix domain -
174-
16 for IP, 16 for IPX,
175-
24 for IPv6,
176-
about 80 for AX.25
177-
must be at least one bigger than
178-
the AF_UNIX size (see net/unix/af_unix.c
179-
:unix_mkname()).
180-
*/
181-
182173
/**
183174
* move_addr_to_kernel - copy a socket address into kernel space
184175
* @uaddr: Address in user space

0 commit comments

Comments
 (0)