lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1371142645.2246.6.camel@bwh-desktop.uk.level5networks.com>
Date:	Thu, 13 Jun 2013 17:57:25 +0100
From:	Ben Hutchings <bhutchings@...arflare.com>
To:	Andy Johnson <johnsonzjo@...il.com>
CC:	<netdev@...r.kernel.org>
Subject: Re: skb_is_gso() in ip_forward.c

On Wed, 2013-06-12 at 16:48 +0300, Andy Johnson wrote:
> Hi,
> 
> I would appreciate if someone can explain the following :
> 
> We have this in net/ipv4/ip_forward():
> ...
>  if (unlikely(skb->len > dst_mtu(&rt->dst) && !skb_is_gso(skb) &&
>   ...
>   icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED,
>                             htonl(dst_mtu(&rt->dst)));
>                   goto drop;
>           }
> ...
> 
> As I understand, it the traffic is GSO and the length of the skb is
> larger than the MTU, we don't send destination unreachable ICMP and
> we continue with forwarding the packet. My qustion is: why is it so ?
> is it because when working with GSO the size of skb->len is not the
> size of the packet which is sent on the wire ?

Right.

> The what does it represent when the traffic is GSO ?

Length of all data in the skb, which is the length of the headers for a
single packet plus the total length of the payload.

Ben.

> I would appreaicate if someone can elaborate on this.


-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ