kern/127528: [icmp]: icmp socket receives icmp replies not owned
by the process.
Bruce M. Simpson
bms at FreeBSD.org
Sun Sep 21 22:20:04 UTC 2008
The following reply was made to PR kern/127528; it has been noted by GNATS.
From: "Bruce M. Simpson" <bms at FreeBSD.org>
To: remko at FreeBSD.org
Cc: freebsd-net at FreeBSD.org, freebsd-bugs at FreeBSD.org
Subject: Re: kern/127528: [icmp]: icmp socket receives icmp replies not owned
by the process.
Date: Sun, 21 Sep 2008 23:12:30 +0100
remko at FreeBSD.org wrote:
> Old Synopsis: icmp socket receives icmp replies not owned by the process.
> New Synopsis: [icmp]: icmp socket receives icmp replies not owned by the process.
>
This PR is bogus because:
ICMP has no concept of datagrams being "owned" by a process. There is no
field in the ICMP protocol which differentiates ICMP "sessions" on a
per-process basis, and this is because ICMP has no concept of "sessions"
-- ICMP messages are directed at IP endpoints.
The networking stack will only selectively dispatch ICMP traffic based
on two conditions:
1. ip_proto number (raw sockets may selectively bind to a protocol) and
2. multicast group membership (not applicable in this instance).
> It also shows that both echo requests have different identifiers in
the id field which should keep the icmp streams seperated.
There is absolutely no requirement for the kernel code to look at the ID
field, beyond reporting it to consumers of the SOCK_RAW interface.
This PR can be closed, the submitter should consult the pfSense maintainers.
thanks
BMS
_______________________________________________
freebsd-net at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
More information about the freebsd-net
mailing list