| To: | Jeff Garzik <jgarzik@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2.6.12-rc1-mm1] net/ethernet/eth.c - eth_header |
| From: | Vicente Feito <vicente.feito@xxxxxxxxx> |
| Date: | Wed, 23 Mar 2005 18:15:32 +0000 |
| Cc: | netdev@xxxxxxxxxxx |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:organization:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=KCoBB4aMV02zJD2hBC+kNhqE9PWkHJ3P7fUeJ0VAzKETDpeRbwZqK8sHofRn+Avp/OuSw6ysGv7B8DQdPDHHoX7+oXffuCcv3jJ0q2Qb23JTk8p9351zWYNz//6x9owoo65WTbMiyn+zf38AK1ORKVZOu6erYad/kSoivQ3ocFw= |
| In-reply-to: | <4241D691.5000707@pobox.com> |
| Organization: | none |
| References: | <200503231734.59277.vicente.feito@gmail.com> <4241D691.5000707@pobox.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | KMail/1.7.1 |
On Wednesday 23 March 2005 08:50 pm, Jeff Garzik wrote:
> Vicente Feito wrote:
> > Hi,
> > Please consider applying (or droping).
> > Thank you.
> >
> > Description: This patch prevent drivers from calling eth_header with a
> > 802.3 frame using a len>1536. In such a case returns -EINVAL, which was
> > hard to choose because the ETH_HLEN is supposed to return.
> >
> > Signed-off-by: Vicente Feito <vicente.feito@xxxxxxxxx>
> >
> >
> > ------------------------------------------------------------------------
> >
> > --- linux-2.6.12-rc1-mm1/net/ethernet/eth.c.orig 2005-03-22
> > 12:49:08.000000000 +0000 +++
> > linux-2.6.12-rc1-mm1/net/ethernet/eth.c 2005-03-22 12:49:36.000000000
> > +0000 @@ -78,6 +78,8 @@ int eth_header(struct sk_buff *skb, stru
> > {
> > struct ethhdr *eth = (struct ethhdr *)skb_push(skb,ETH_HLEN);
> >
> > + if (type == ETH_P_802_3 && len >= 1536)
> > + return -EINVAL;
>
> Why? Won't this break for jumbo frames?
>
> Jeff
True, I completely forgot about it, I was having problems with a driver and I
though this would be a correct approach for size violation avoidance, but I
guess it doesn't have much sense to change len >= 1536 by the 9000 of a jumbo
packet, sorry.
Vicente
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: iptables breakage WAS(Re: dummy as IMQ replacement, jamal |
|---|---|
| Next by Date: | Re: [PATCH 2.6.12-rc1-mm1] net/ethernet/eth.c - eth_header, Jon Mason |
| Previous by Thread: | Re: [PATCH 2.6.12-rc1-mm1] net/ethernet/eth.c - eth_header, Jeff Garzik |
| Next by Thread: | Re: [PATCH 2.6.12-rc1-mm1] net/ethernet/eth.c - eth_header, Jon Mason |
| Indexes: | [Date] [Thread] [Top] [All Lists] |