From nobody@FreeBSD.org  Wed Sep  2 20:23:30 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 93F0E1065679
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Sep 2009 20:23:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 831958FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Sep 2009 20:23:30 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n82KNUHI046151
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 2 Sep 2009 20:23:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n82KNTOX046150;
	Wed, 2 Sep 2009 20:23:29 GMT
	(envelope-from nobody)
Message-Id: <200909022023.n82KNTOX046150@www.freebsd.org>
From: Chris Smowton <cs448@cam.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: BPF and raw-IP man pages missing important corner cases
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138485
>Category:       docs
>Synopsis:       bpf(4) and ip(4) man pages missing important corner cases
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 02 20:30:08 UTC 2009
>Closed-Date:    
>Last-Modified:  Wed Sep 02 20:55:24 UTC 2009
>Originator:     Chris Smowton
>Release:        Any
>Organization:
N/A
>Environment:
N/A
>Description:
Both the man pages concerning raw-IP and Berkeley Packet Filter are missing details of the following important corner cases: how should the kernel behave when faced with a packet which could be handled by more than one handler?

In the raw-IP case, what if there exists a raw-IP socket live on some interface, as well as a TCP socket relevant to an incoming packet? Does the IP or the TCP socket receive that packet, or both?

In the BPF case, it's mentioned that the filter program may request to "ignore" a packet, but it isn't specified whether "ignored" packets, non-"ignored" packets or both will then go on to be handled by the kernel's ordinary TCP packet handler.

Both of these things can be discovered by experimentation, but it's tedious that every person facing these questions needs to do that when a couple of lines in the docs could save them the trouble.
>How-To-Repeat:
Read the man pages :)
>Fix:
Amend the man pages :)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-doc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Sep 2 20:53:27 UTC 2009 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138485 
>Unformatted:
