1 # Patches for compilation with 2.6.13.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
6 skb->pkt_type = PACKET_HOST; /* Default type */
9 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
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 @@
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)
23 +static int set_mac_address(struct net_device *dev, void *saddrIn)
25 + struct sockaddr *saddr = saddrIn;
28 priv_data_t *priv = dev->priv;
29 IxEthAccMacAddr npeMacAddr;
30 @@ -2476,7 +2486,11 @@
31 ndev->poll_controller = ixp425eth_poll_controller;
34 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
35 ndev->set_mac_address = dev_set_mac_address;
37 + ndev->set_mac_address = set_mac_address;
40 memcpy(ndev->dev_addr, &default_mac_addr[priv->port_id].macAddress,
41 IX_IEEE803_MAC_ADDRESS_SIZE);