summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi_dynamic_eth.c
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2008-05-23 15:26:23 +0000
committerMatthew Fredrickson <creslin@digium.com>2008-05-23 15:26:23 +0000
commit1b8e88bdec78205b1dbfaaf140aab666f0e21250 (patch)
tree9d1387e7683ba14d2142c2848b21fb690c25ee9d /drivers/dahdi/dahdi_dynamic_eth.c
parent949deedb48fd33c6d25b64a37f92026e342214fd (diff)
Remove some left over ZT references
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4341 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_dynamic_eth.c')
-rw-r--r--drivers/dahdi/dahdi_dynamic_eth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/dahdi/dahdi_dynamic_eth.c b/drivers/dahdi/dahdi_dynamic_eth.c
index a797d84..3292d1b 100644
--- a/drivers/dahdi/dahdi_dynamic_eth.c
+++ b/drivers/dahdi/dahdi_dynamic_eth.c
@@ -36,7 +36,7 @@
#include <dahdi/kernel.h>
#include <dahdi/user.h>
-#define ETH_P_ZTDETH 0xd00d
+#define ETH_P_DAHDI_DETH 0xd00d
struct ztdeth_header {
unsigned short subaddr;
@@ -170,7 +170,7 @@ static int ztdeth_transmit(void *pvt, unsigned char *msg, int msglen)
zh->subaddr = subaddr;
/* Setup protocol and such */
- skb->protocol = __constant_htons(ETH_P_ZTDETH);
+ skb->protocol = __constant_htons(ETH_P_DAHDI_DETH);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
skb_set_network_header(skb, 0);
#else
@@ -178,10 +178,10 @@ static int ztdeth_transmit(void *pvt, unsigned char *msg, int msglen)
#endif
skb->dev = dev;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
- dev_hard_header(skb, dev, ETH_P_ZTDETH, addr, dev->dev_addr, skb->len);
+ dev_hard_header(skb, dev, ETH_P_DAHDI_DETH, addr, dev->dev_addr, skb->len);
#else
if (dev->hard_header)
- dev->hard_header(skb, dev, ETH_P_ZTDETH, addr, dev->dev_addr, skb->len);
+ dev->hard_header(skb, dev, ETH_P_DAHDI_DETH, addr, dev->dev_addr, skb->len);
#endif
skb_queue_tail(&skbs, skb);
}
@@ -204,7 +204,7 @@ static int ztdeth_flush(void)
}
static struct packet_type ztdeth_ptype = {
- type: __constant_htons(ETH_P_ZTDETH), /* Protocol */
+ type: __constant_htons(ETH_P_DAHDI_DETH), /* Protocol */
dev: NULL, /* Device (NULL = wildcard) */
func: ztdeth_rcv, /* Receiver */
};