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
4 skb->pkt_type = PACKET_HOST; /* Default type */
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
10 #ifdef CONFIG_NET_SCHED
13 @@ -2922,8 +2924,14 @@
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)
21 +static int set_mac_address(struct net_device *dev, void *saddrIn)
23 + struct sockaddr *saddr = saddrIn;
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;
35 + ndev->set_mac_address = set_mac_address;