diff options
author | andrew hendry <andrew.hendry@gmail.com> | 2010-04-19 09:30:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-22 19:12:50 -0400 |
commit | 4d99503e0b28edf654ca1918229a317a3f738f08 (patch) | |
tree | 6b2078bf2347d1686d156219ca64988d8c7cd5ba /drivers/net/wan/lapbether.c | |
parent | 7eeeacf0b5b8c0a0badced506388c02b9422d508 (diff) |
X25: Use identifiers for lapbether device to x25 interface
Change magic numbers to identifiers for X25 interface.
Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
-rw-r--r-- | drivers/net/wan/lapbether.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index 98e2f99903d7..4d4dc38c7290 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c | |||
@@ -139,7 +139,7 @@ static int lapbeth_data_indication(struct net_device *dev, struct sk_buff *skb) | |||
139 | return NET_RX_DROP; | 139 | return NET_RX_DROP; |
140 | 140 | ||
141 | ptr = skb->data; | 141 | ptr = skb->data; |
142 | *ptr = 0x00; | 142 | *ptr = X25_IFACE_DATA; |
143 | 143 | ||
144 | skb->protocol = x25_type_trans(skb, dev); | 144 | skb->protocol = x25_type_trans(skb, dev); |
145 | return netif_rx(skb); | 145 | return netif_rx(skb); |
@@ -161,14 +161,14 @@ static netdev_tx_t lapbeth_xmit(struct sk_buff *skb, | |||
161 | goto drop; | 161 | goto drop; |
162 | 162 | ||
163 | switch (skb->data[0]) { | 163 | switch (skb->data[0]) { |
164 | case 0x00: | 164 | case X25_IFACE_DATA: |
165 | break; | 165 | break; |
166 | case 0x01: | 166 | case X25_IFACE_CONNECT: |
167 | if ((err = lapb_connect_request(dev)) != LAPB_OK) | 167 | if ((err = lapb_connect_request(dev)) != LAPB_OK) |
168 | printk(KERN_ERR "lapbeth: lapb_connect_request " | 168 | printk(KERN_ERR "lapbeth: lapb_connect_request " |
169 | "error: %d\n", err); | 169 | "error: %d\n", err); |
170 | goto drop; | 170 | goto drop; |
171 | case 0x02: | 171 | case X25_IFACE_DISCONNECT: |
172 | if ((err = lapb_disconnect_request(dev)) != LAPB_OK) | 172 | if ((err = lapb_disconnect_request(dev)) != LAPB_OK) |
173 | printk(KERN_ERR "lapbeth: lapb_disconnect_request " | 173 | printk(KERN_ERR "lapbeth: lapb_disconnect_request " |
174 | "err: %d\n", err); | 174 | "err: %d\n", err); |
@@ -225,7 +225,7 @@ static void lapbeth_connected(struct net_device *dev, int reason) | |||
225 | } | 225 | } |
226 | 226 | ||
227 | ptr = skb_put(skb, 1); | 227 | ptr = skb_put(skb, 1); |
228 | *ptr = 0x01; | 228 | *ptr = X25_IFACE_CONNECT; |
229 | 229 | ||
230 | skb->protocol = x25_type_trans(skb, dev); | 230 | skb->protocol = x25_type_trans(skb, dev); |
231 | netif_rx(skb); | 231 | netif_rx(skb); |
@@ -242,7 +242,7 @@ static void lapbeth_disconnected(struct net_device *dev, int reason) | |||
242 | } | 242 | } |
243 | 243 | ||
244 | ptr = skb_put(skb, 1); | 244 | ptr = skb_put(skb, 1); |
245 | *ptr = 0x02; | 245 | *ptr = X25_IFACE_DISCONNECT; |
246 | 246 | ||
247 | skb->protocol = x25_type_trans(skb, dev); | 247 | skb->protocol = x25_type_trans(skb, dev); |
248 | netif_rx(skb); | 248 | netif_rx(skb); |