diff options
author | brian <brian@FreeBSD.org> | 1997-08-10 21:55:52 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-08-10 21:55:52 +0000 |
commit | 69210a76930cd9f8b1cd7b25f62b62feacb73c43 (patch) | |
tree | 65326d3024b1606d6fc19b37cf6da72801dc4bb1 /sbin/natd/icmp.c | |
parent | d89f54f7a31493ef7ab830f3ea3911c80ba43f2e (diff) | |
download | FreeBSD-src-69210a76930cd9f8b1cd7b25f62b62feacb73c43.zip FreeBSD-src-69210a76930cd9f8b1cd7b25f62b62feacb73c43.tar.gz |
- Buffer space problem found by Sergio Lenzi <lenzi@bsi.com.br>
fixed. Natd now waits with select(2) for buffer space
to become available if write fails.
- Packet aliasing library upgraded to 2.2.
Submitted by: Ari Suutari <suutari@iki.fi>
Diffstat (limited to 'sbin/natd/icmp.c')
-rw-r--r-- | sbin/natd/icmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/natd/icmp.c b/sbin/natd/icmp.c index 40464ff..2018f66 100644 --- a/sbin/natd/icmp.c +++ b/sbin/natd/icmp.c @@ -72,7 +72,8 @@ int SendNeedFragIcmp (int sock, struct ip* failedDgram, int mtu) /* * Calculate checksum. */ - icmp->icmp_cksum = InternetChecksum ((u_short*) icmp, icmpLen); + icmp->icmp_cksum = PacketAliasInternetChecksum ((u_short*) icmp, + icmpLen); /* * Add IP header using old IP header as template. */ |