Date: Thu, 31 Dec 1998 03:46:46 -0800 (PST) From: N/A@FreeBSD.ORG To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/9253: received packets piling up on natd's ICMP socket Message-ID: <199812311146.DAA20292@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 9253
>Category: bin
>Synopsis: received packets piling up on natd's ICMP socket
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 31 03:50:00 PST 1998
>Last-Modified:
>Originator: Juha Nurmela
>Organization:
ACME Inc.
>Release: 3.0-CURRENT
>Environment:
FreeBSD pena.oh5nxo.ampr.org 3.0-CURRENT
FreeBSD 3.0-CURRENT #1: Sun Dec 20 02:0 8:52 EET 1998
junki@pena.oh5nxo.ampr.org:/usr/src/sys/compile/PENA i386
>Description:
natd creates an icmp socket to send packets out
and never reads anything from the socket.
The socket slowly queues all incoming packets.
>How-To-Repeat:
natd -interface ep0
ipfw divert natd ip from any to any via ep0
...time passes...
netstat -a | grep \^icmp
>Fix:
*** /usr/src/usr.sbin/natd/natd.c Thu Dec 31 13:05:55 1998
--- /usr/src/usr.sbin/natd/natd.c.old Thu Dec 31 13:04:25 1998
***************
*** 230,244 ****
routeSock = -1;
/*
* Create socket for sending ICMP messages.
- * Disable reads for the socket, otherwise it slowly fills
- * up with received icmps which we do not use.
*/
icmpSock = socket (AF_INET, SOCK_RAW, IPPROTO_ICMP);
if (icmpSock == -1)
Quit ("Unable to create ICMP socket.");
-
- shutdown(icmpSock, SHUT_RD);
-
/*
* Become a daemon unless verbose mode was requested.
*/
--- 230,239 ----
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812311146.DAA20292>
