diff options
-rw-r--r-- | common/socket.c | 3 | ||||
-rw-r--r-- | socket.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/common/socket.c b/common/socket.c index c69e68cc..182398cf 100644 --- a/common/socket.c +++ b/common/socket.c @@ -155,7 +155,7 @@ void listen_on (port, address) sockets = tmp; } -unsigned char packbuf [65536]; /* Should cover the gnarliest MTU... */ +unsigned char packbuf [4095]; /* Should cover the gnarliest MTU... */ void dispatch () { @@ -208,6 +208,7 @@ void dispatch () htons (from.sin_port)); ifrom.len = 4; memcpy (ifrom.iabuf, &from.sin_addr, ifrom.len); + do_packet (packbuf, result, from.sin_port, ifrom, l -> sock); } @@ -155,7 +155,7 @@ void listen_on (port, address) sockets = tmp; } -unsigned char packbuf [65536]; /* Should cover the gnarliest MTU... */ +unsigned char packbuf [4095]; /* Should cover the gnarliest MTU... */ void dispatch () { @@ -208,6 +208,7 @@ void dispatch () htons (from.sin_port)); ifrom.len = 4; memcpy (ifrom.iabuf, &from.sin_addr, ifrom.len); + do_packet (packbuf, result, from.sin_port, ifrom, l -> sock); } |