aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/hdlc_cisco.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/wan/hdlc_cisco.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/wan/hdlc_cisco.c')
-rw-r--r--drivers/net/wan/hdlc_cisco.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wan/hdlc_cisco.c b/drivers/net/wan/hdlc_cisco.c
index f1bff98acd1f..ee7083fbea50 100644
--- a/drivers/net/wan/hdlc_cisco.c
+++ b/drivers/net/wan/hdlc_cisco.c
@@ -20,7 +20,6 @@
20#include <linux/poll.h> 20#include <linux/poll.h>
21#include <linux/rtnetlink.h> 21#include <linux/rtnetlink.h>
22#include <linux/skbuff.h> 22#include <linux/skbuff.h>
23#include <linux/slab.h>
24 23
25#undef DEBUG_HARD_HEADER 24#undef DEBUG_HARD_HEADER
26 25
@@ -141,7 +140,7 @@ static __be16 cisco_type_trans(struct sk_buff *skb, struct net_device *dev)
141 data->address != CISCO_UNICAST) 140 data->address != CISCO_UNICAST)
142 return cpu_to_be16(ETH_P_HDLC); 141 return cpu_to_be16(ETH_P_HDLC);
143 142
144 switch(data->protocol) { 143 switch (data->protocol) {
145 case cpu_to_be16(ETH_P_IP): 144 case cpu_to_be16(ETH_P_IP):
146 case cpu_to_be16(ETH_P_IPX): 145 case cpu_to_be16(ETH_P_IPX):
147 case cpu_to_be16(ETH_P_IPV6): 146 case cpu_to_be16(ETH_P_IPV6):
@@ -190,7 +189,7 @@ static int cisco_rx(struct sk_buff *skb)
190 cisco_data = (struct cisco_packet*)(skb->data + sizeof 189 cisco_data = (struct cisco_packet*)(skb->data + sizeof
191 (struct hdlc_header)); 190 (struct hdlc_header));
192 191
193 switch(ntohl (cisco_data->type)) { 192 switch (ntohl (cisco_data->type)) {
194 case CISCO_ADDR_REQ: /* Stolen from syncppp.c :-) */ 193 case CISCO_ADDR_REQ: /* Stolen from syncppp.c :-) */
195 in_dev = dev->ip_ptr; 194 in_dev = dev->ip_ptr;
196 addr = 0; 195 addr = 0;
@@ -245,8 +244,8 @@ static int cisco_rx(struct sk_buff *skb)
245 244
246 dev_kfree_skb_any(skb); 245 dev_kfree_skb_any(skb);
247 return NET_RX_SUCCESS; 246 return NET_RX_SUCCESS;
248 } /* switch(keepalive type) */ 247 } /* switch (keepalive type) */
249 } /* switch(protocol) */ 248 } /* switch (protocol) */
250 249
251 printk(KERN_INFO "%s: Unsupported protocol %x\n", dev->name, 250 printk(KERN_INFO "%s: Unsupported protocol %x\n", dev->name,
252 ntohs(data->protocol)); 251 ntohs(data->protocol));