SlugOS: packages - deprecate ctrlproxy, depends on unstaged tbd.h (samba)
[openembedded.git] / recipes / ixp425-eth / ixp400-eth-1.4 / 2.6.13.patch
1 --- ./ixp400_eth.c.orig 2005-10-02 18:55:03.998477844 -0700
2 +++ ./ixp400_eth.c      2005-10-02 19:00:43.187821684 -0700
3 @@ -848,7 +848,9 @@
4         skb->pkt_type = PACKET_HOST;    /* Default type */
5          skb->ip_summed = 0;
6          skb->priority = 0;
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
8          skb->security = 0;
9 +#endif
10  #ifdef CONFIG_NET_SCHED
11         skb->tc_index = 0;
12  #endif
13 @@ -2922,8 +2924,14 @@
14  }
15  
16  /* set port MAC addr and update the dev struct if successfull */
17 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
18  int dev_set_mac_address(struct net_device *dev, struct sockaddr *saddr)
19  {
20 +#else
21 +static int set_mac_address(struct net_device *dev, void *saddrIn)
22 +{
23 +    struct sockaddr *saddr = saddrIn;
24 +#endif
25      int res;
26      priv_data_t *priv = dev->priv;
27      IxEthAccMacAddr npeMacAddr;
28 @@ -3073,7 +3081,11 @@
29      ndev->get_stats = dev_get_stats;
30      ndev->set_multicast_list = dev_set_multicast_list;
31      ndev->flags |= IFF_MULTICAST;
32 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
33      ndev->set_mac_address = dev_set_mac_address;
34 +#else
35 +    ndev->set_mac_address = set_mac_address;
36 +#endif
37  
38      TRACE;
39