aboutsummaryrefslogtreecommitdiffstats
path: root/net/802/hippi.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/802/hippi.c')
-rw-r--r--net/802/hippi.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/802/hippi.c b/net/802/hippi.c
index 579e2ddf5ebe..be0da59323b3 100644
--- a/net/802/hippi.c
+++ b/net/802/hippi.c
@@ -39,7 +39,7 @@
39#include <asm/system.h> 39#include <asm/system.h>
40 40
41/* 41/*
42 * Create the HIPPI MAC header for an arbitrary protocol layer 42 * Create the HIPPI MAC header for an arbitrary protocol layer
43 * 43 *
44 * saddr=NULL means use device source address 44 * saddr=NULL means use device source address
45 * daddr=NULL means leave destination address (eg unresolved arp) 45 * daddr=NULL means leave destination address (eg unresolved arp)
@@ -104,8 +104,8 @@ static int hippi_rebuild_header(struct sk_buff *skb)
104 /* 104 /*
105 * Only IP is currently supported 105 * Only IP is currently supported
106 */ 106 */
107 107
108 if(hip->snap.ethertype != __constant_htons(ETH_P_IP)) 108 if(hip->snap.ethertype != __constant_htons(ETH_P_IP))
109 { 109 {
110 printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype)); 110 printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype));
111 return 0; 111 return 0;
@@ -122,11 +122,11 @@ static int hippi_rebuild_header(struct sk_buff *skb)
122/* 122/*
123 * Determine the packet's protocol ID. 123 * Determine the packet's protocol ID.
124 */ 124 */
125 125
126__be16 hippi_type_trans(struct sk_buff *skb, struct net_device *dev) 126__be16 hippi_type_trans(struct sk_buff *skb, struct net_device *dev)
127{ 127{
128 struct hippi_hdr *hip; 128 struct hippi_hdr *hip;
129 129
130 hip = (struct hippi_hdr *) skb->data; 130 hip = (struct hippi_hdr *) skb->data;
131 131
132 /* 132 /*
@@ -173,10 +173,10 @@ static int hippi_neigh_setup_dev(struct net_device *dev, struct neigh_parms *p)
173{ 173{
174 /* Never send broadcast/multicast ARP messages */ 174 /* Never send broadcast/multicast ARP messages */
175 p->mcast_probes = 0; 175 p->mcast_probes = 0;
176 176
177 /* In IPv6 unicast probes are valid even on NBMA, 177 /* In IPv6 unicast probes are valid even on NBMA,
178 * because they are encapsulated in normal IPv6 protocol. 178 * because they are encapsulated in normal IPv6 protocol.
179 * Should be a generic flag. 179 * Should be a generic flag.
180 */ 180 */
181 if (p->tbl->family != AF_INET6) 181 if (p->tbl->family != AF_INET6)
182 p->ucast_probes = 0; 182 p->ucast_probes = 0;
@@ -193,7 +193,7 @@ static void hippi_setup(struct net_device *dev)
193 dev->hard_header_parse = NULL; 193 dev->hard_header_parse = NULL;
194 dev->hard_header_cache = NULL; 194 dev->hard_header_cache = NULL;
195 dev->header_cache_update = NULL; 195 dev->header_cache_update = NULL;
196 dev->neigh_setup = hippi_neigh_setup_dev; 196 dev->neigh_setup = hippi_neigh_setup_dev;
197 197
198 /* 198 /*
199 * We don't support HIPPI `ARP' for the time being, and probably 199 * We don't support HIPPI `ARP' for the time being, and probably
@@ -210,9 +210,9 @@ static void hippi_setup(struct net_device *dev)
210 210
211 /* 211 /*
212 * HIPPI doesn't support broadcast+multicast and we only use 212 * HIPPI doesn't support broadcast+multicast and we only use
213 * static ARP tables. ARP is disabled by hippi_neigh_setup_dev. 213 * static ARP tables. ARP is disabled by hippi_neigh_setup_dev.
214 */ 214 */
215 dev->flags = 0; 215 dev->flags = 0;
216} 216}
217 217
218/** 218/**