version 1.28, 1996/03/16 23:54:03 |
version 1.29.2.1, 1996/11/10 21:57:55 |
Line 162 udp_input(m, va_alist) |
|
Line 162 udp_input(m, va_alist) |
|
/* |
/* |
* Checksum extended UDP header and data. |
* Checksum extended UDP header and data. |
*/ |
*/ |
if (udpcksum && uh->uh_sum) { |
if (uh->uh_sum) { |
bzero(((struct ipovly *)ip)->ih_x1, |
bzero(((struct ipovly *)ip)->ih_x1, |
sizeof ((struct ipovly *)ip)->ih_x1); |
sizeof ((struct ipovly *)ip)->ih_x1); |
((struct ipovly *)ip)->ih_len = uh->uh_ulen; |
((struct ipovly *)ip)->ih_len = uh->uh_ulen; |
Line 462 udp_output(m, va_alist) |
|
Line 462 udp_output(m, va_alist) |
|
} |
} |
|
|
/* |
/* |
|
* Compute the packet length of the IP header, and |
|
* punt if the length looks bogus. |
|
*/ |
|
if ((len + sizeof(struct udpiphdr)) > IP_MAXPACKET) { |
|
error = EMSGSIZE; |
|
goto release; |
|
} |
|
|
|
/* |
* Fill in mbuf with extended UDP header |
* Fill in mbuf with extended UDP header |
* and addresses and length put into network format. |
* and addresses and length put into network format. |
*/ |
*/ |