Bug 10611

Summary: Incorrect RFC section reference in comment
Product: Networking Reporter: J.H.M. Dassen (Ray) (jdassen)
Component: IPV4Assignee: Stephen Hemminger (stephen)
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: master branch Subsystem:
Regression: --- Bisected commit-id:

Description J.H.M. Dassen (Ray) 2008-05-06 23:25:13 UTC
Problem Description:

RFC 1122 does not have a section 3.1.2.2. The requirement to silently
discard packets with a bad checksum is in section 3.2.1.2 instead.

Proposed patch:

diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
index 212734c..5bdb8f4 100644
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -394,7 +394,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
 	iph = skb->nh.iph;
 
 	/*
-	 *	RFC1122: 3.1.2.2 MUST silently discard any IP frame that fails the checksum.
+	 *	RFC1122: 3.2.1.2 MUST silently discard any IP frame that fails the checksum.
 	 *
 	 *	Is the datagram acceptable?
 	 *
Comment 1 Anonymous Emailer 2008-05-06 23:34:07 UTC
Reply-To: akpm@linux-foundation.org

(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Tue,  6 May 2008 23:25:14 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=10611
> 
>            Summary: Incorrect RFC section reference in comment
>            Product: Networking
>            Version: 2.5
>      KernelVersion: master branch
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: IPV4
>         AssignedTo: shemminger@linux-foundation.org
>         ReportedBy: jdassen@debian.org
> 
> 
> Problem Description:
> 
> RFC 1122 does not have a section 3.1.2.2. The requirement to silently
> discard packets with a bad checksum is in section 3.2.1.2 instead.
> 
> Proposed patch:
> 
> diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
> index 212734c..5bdb8f4 100644
> --- a/net/ipv4/ip_input.c
> +++ b/net/ipv4/ip_input.c
> @@ -394,7 +394,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev,
> struct packet_type *pt,
>         iph = skb->nh.iph;
> 
>         /*
> -        *      RFC1122: 3.1.2.2 MUST silently discard any IP frame that
> fails
> the checksum.
> +        *      RFC1122: 3.2.1.2 MUST silently discard any IP frame that
> fails
> the checksum.
>          *
>          *      Is the datagram acceptable?
>          *
> 
> 

Thanks, but we much prefer that patches be handled via email.  Can you
please resend the patch as a reply-to-all to this email, along with a
signed-off-by: as per Documentation/SubmittingPatches?