USOCKET-UDP 2.6 * improvement: Change constant value +max-datagram-packet-size+ from 65536 to 65507. * improvement: Fixed working with USOCKET trunk (0.5). * bugfix: Handle Null HOST argument in SOCKET-CONNECT for Clozure CL.
SF & Cliki download links updated.
(This maintenance release of USOCKET-UDP is mainly for people who is using old packages which still depend on USOCKET-UDP)
On Fri, 2010-09-24 at 18:59 +0800, Chun Tian wrote:
USOCKET-UDP 2.6
- improvement: Change constant value +max-datagram-packet-size+ from 65536 to 65507.
- improvement: Fixed working with USOCKET trunk (0.5).
- bugfix: Handle Null HOST argument in SOCKET-CONNECT for Clozure CL.
Interesting, what's so special about the value 65507 ?
Hi, Stelian
The IPv4 UDP packets have a 16-bit length constraint, and IP+UDP header has 28-byte.
IP_MAXPACKET = 65535, /* netinet/ip.h */ sizeof(struct ip) = 20, /* netinet/ip.h */ size_of(struct udphdr) = 8, /* netinet/udp.h */
65535 - 20 - 8 = 65507
That's the theoretical maximum amount of data in a UDP datagram.
(But for UDP broadcast, the maximum message size is limited by the MTU size of the underlying link)
Search "UDP 65507" by Google, you can find more explanation about this.
Let me know if I understand this wrong.
--binghe
在 2010-9-24,19:02, Stelian Ionescu 写道:
On Fri, 2010-09-24 at 18:59 +0800, Chun Tian wrote:
USOCKET-UDP 2.6
- improvement: Change constant value +max-datagram-packet-size+ from 65536 to 65507.
- improvement: Fixed working with USOCKET trunk (0.5).
- bugfix: Handle Null HOST argument in SOCKET-CONNECT for Clozure CL.
Interesting, what's so special about the value 65507 ?
-- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur. http://common-lisp.net/project/iolib _______________________________________________ usocket-devel mailing list usocket-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/usocket-devel