]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ixp425-eth/files/2.6.13.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ixp425-eth / files / 2.6.13.patch
1 # Patches for compilation with 2.6.13.2
2 #
3 --- dir/ixp425_eth.c    2005-09-23 18:34:54.753729121 -0700
4 +++ dir/ixp425_eth.c    2005-09-23 18:37:48.908688002 -0700
5 @@ -659,7 +659,9 @@
6         skb->pkt_type = PACKET_HOST;    /* Default type */
7          skb->ip_summed = 0;
8          skb->priority = 0;
9 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
10          skb->security = 0;
11 +#endif
12  
13  /* Some packets may get incorrectly process by netfilter firewall software
14   * if CONFIG_NETFILTER is enabled and filtering is in use.  The solution is to
15 @@ -2358,8 +2362,14 @@
16  }
17  
18  /* set port MAC addr and update the dev struct if successfull */
19 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
20  int dev_set_mac_address(struct net_device *dev, struct sockaddr *saddr)
21  {
22 +#else
23 +static int set_mac_address(struct net_device *dev, void *saddrIn)
24 +{
25 +    struct sockaddr *saddr = saddrIn;
26 +#endif
27      int res;
28      priv_data_t *priv = dev->priv;
29      IxEthAccMacAddr npeMacAddr;
30 @@ -2476,7 +2486,11 @@
31      ndev->poll_controller = ixp425eth_poll_controller;
32  #endif
33  
34 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
35      ndev->set_mac_address = dev_set_mac_address;
36 +#else
37 +    ndev->set_mac_address = set_mac_address;
38 +#endif
39  
40      memcpy(ndev->dev_addr, &default_mac_addr[priv->port_id].macAddress,
41             IX_IEEE803_MAC_ADDRESS_SIZE);