]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ixp425-eth/files/ethhdr.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ixp425-eth / files / ethhdr.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- ixp425-eth-1.1-r0/ixp425_eth.c~ethhdr
7 +++ ixp425-eth-1.1-r0/ixp425_eth.c
8 @@ -1307,7 +1307,7 @@
9          * and its constants are taken from the eth_type_trans()
10          * function.
11          */
12 -       struct ethhdr *eth = skb->mac.ethernet;
13 +       struct ethhdr *eth = eth_hdr(skb);
14         unsigned short hproto = ntohs(eth->h_proto);
15         
16         if (hproto >= 1536)
17 @@ -1349,7 +1349,7 @@
18               * mode is set This costs
19               * a lookup inside the packet payload.
20               */
21 -            struct ethhdr *eth = skb->mac.ethernet;
22 +            struct ethhdr *eth = eth_hdr(skb);
23              unsigned char *hdest = eth->h_dest;
24  
25              if (memcmp(hdest, dev->dev_addr, ETH_ALEN)!=0)