Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2008 23:12:30 +0100
From:      "Bruce M. Simpson" <bms@FreeBSD.org>
To:        remko@FreeBSD.org
Cc:        freebsd-net@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: kern/127528: [icmp]: icmp socket receives icmp replies not	owned by the process.
Message-ID:  <48D6C6CE.3060404@FreeBSD.org>
In-Reply-To: <200809212103.m8LL3v61012961@freefall.freebsd.org>
References:  <200809212103.m8LL3v61012961@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
remko@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








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48D6C6CE.3060404>