[NET] 802: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
66efc5a7e3
commit
9afa0949ee
@@ -117,7 +117,7 @@ module_exit(snap_exit);
|
|||||||
*/
|
*/
|
||||||
struct datalink_proto *register_snap_client(unsigned char *desc,
|
struct datalink_proto *register_snap_client(unsigned char *desc,
|
||||||
int (*rcvfunc)(struct sk_buff *,
|
int (*rcvfunc)(struct sk_buff *,
|
||||||
struct net_device *,
|
struct net_device *,
|
||||||
struct packet_type *,
|
struct packet_type *,
|
||||||
struct net_device *))
|
struct net_device *))
|
||||||
{
|
{
|
||||||
|
18
net/802/tr.c
18
net/802/tr.c
@@ -195,7 +195,7 @@ __be16 tr_type_trans(struct sk_buff *skb, struct net_device *dev)
|
|||||||
|
|
||||||
skb->mac.raw = skb->data;
|
skb->mac.raw = skb->data;
|
||||||
|
|
||||||
if(trh->saddr[0] & TR_RII)
|
if(trh->saddr[0] & TR_RII)
|
||||||
riflen = (ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8;
|
riflen = (ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8;
|
||||||
|
|
||||||
trllc = (struct trllc *)(skb->data+sizeof(struct trh_hdr)-TR_MAXRIFLEN+riflen);
|
trllc = (struct trllc *)(skb->data+sizeof(struct trh_hdr)-TR_MAXRIFLEN+riflen);
|
||||||
@@ -348,13 +348,13 @@ static void tr_add_rif_info(struct trh_hdr *trh, struct net_device *dev)
|
|||||||
* Firstly see if the entry exists
|
* Firstly see if the entry exists
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(trh->saddr[0] & TR_RII)
|
if(trh->saddr[0] & TR_RII)
|
||||||
{
|
{
|
||||||
trh->saddr[0]&=0x7f;
|
trh->saddr[0]&=0x7f;
|
||||||
if (((ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8) > 2)
|
if (((ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8) > 2)
|
||||||
{
|
{
|
||||||
rii_p = 1;
|
rii_p = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hash = rif_hash(trh->saddr);
|
hash = rif_hash(trh->saddr);
|
||||||
@@ -365,7 +365,7 @@ static void tr_add_rif_info(struct trh_hdr *trh, struct net_device *dev)
|
|||||||
#if TR_SR_DEBUG
|
#if TR_SR_DEBUG
|
||||||
printk("adding rif_entry: addr:%02X:%02X:%02X:%02X:%02X:%02X rcf:%04X\n",
|
printk("adding rif_entry: addr:%02X:%02X:%02X:%02X:%02X:%02X rcf:%04X\n",
|
||||||
trh->saddr[0],trh->saddr[1],trh->saddr[2],
|
trh->saddr[0],trh->saddr[1],trh->saddr[2],
|
||||||
trh->saddr[3],trh->saddr[4],trh->saddr[5],
|
trh->saddr[3],trh->saddr[4],trh->saddr[5],
|
||||||
ntohs(trh->rcf));
|
ntohs(trh->rcf));
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
@@ -417,9 +417,9 @@ printk("updating rif_entry: addr:%02X:%02X:%02X:%02X:%02X:%02X rcf:%04X\n",
|
|||||||
ntohs(trh->rcf));
|
ntohs(trh->rcf));
|
||||||
#endif
|
#endif
|
||||||
entry->rcf = trh->rcf & htons((unsigned short)~TR_RCF_BROADCAST_MASK);
|
entry->rcf = trh->rcf & htons((unsigned short)~TR_RCF_BROADCAST_MASK);
|
||||||
memcpy(&(entry->rseg[0]),&(trh->rseg[0]),8*sizeof(unsigned short));
|
memcpy(&(entry->rseg[0]),&(trh->rseg[0]),8*sizeof(unsigned short));
|
||||||
}
|
}
|
||||||
entry->last_used=jiffies;
|
entry->last_used=jiffies;
|
||||||
}
|
}
|
||||||
trh->saddr[0]=saddr0; /* put the routing indicator back for tcpdump */
|
trh->saddr[0]=saddr0; /* put the routing indicator back for tcpdump */
|
||||||
spin_unlock_irqrestore(&rif_lock, flags);
|
spin_unlock_irqrestore(&rif_lock, flags);
|
||||||
@@ -541,13 +541,13 @@ static int rif_seq_show(struct seq_file *seq, void *v)
|
|||||||
ttl/HZ);
|
ttl/HZ);
|
||||||
|
|
||||||
if (entry->local_ring)
|
if (entry->local_ring)
|
||||||
seq_puts(seq, "local\n");
|
seq_puts(seq, "local\n");
|
||||||
else {
|
else {
|
||||||
|
|
||||||
seq_printf(seq, "%04X", ntohs(entry->rcf));
|
seq_printf(seq, "%04X", ntohs(entry->rcf));
|
||||||
rcf_len = ((ntohs(entry->rcf) & TR_RCF_LEN_MASK)>>8)-2;
|
rcf_len = ((ntohs(entry->rcf) & TR_RCF_LEN_MASK)>>8)-2;
|
||||||
if (rcf_len)
|
if (rcf_len)
|
||||||
rcf_len >>= 1;
|
rcf_len >>= 1;
|
||||||
for(j = 1; j < rcf_len; j++) {
|
for(j = 1; j < rcf_len; j++) {
|
||||||
if(j==1) {
|
if(j==1) {
|
||||||
segment=ntohs(entry->rseg[j-1])>>4;
|
segment=ntohs(entry->rseg[j-1])>>4;
|
||||||
@@ -559,7 +559,7 @@ static int rif_seq_show(struct seq_file *seq, void *v)
|
|||||||
}
|
}
|
||||||
seq_putc(seq, '\n');
|
seq_putc(seq, '\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user