Commit 4a9e4b09 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

appletalk: Reduce switch/case indent

Make the case labels the same indent as the switch.

(git diff -w net/appletalk shows no difference)
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e985ada
...@@ -779,87 +779,87 @@ static int aarp_rcv(struct sk_buff *skb, struct net_device *dev, ...@@ -779,87 +779,87 @@ static int aarp_rcv(struct sk_buff *skb, struct net_device *dev,
} }
switch (function) { switch (function) {
case AARP_REPLY: case AARP_REPLY:
if (!unresolved_count) /* Speed up */ if (!unresolved_count) /* Speed up */
break; break;
/* Find the entry. */
a = __aarp_find_entry(unresolved[hash], dev, &sa);
if (!a || dev != a->dev)
break;
/* We can fill one in - this is good. */ /* Find the entry. */
memcpy(a->hwaddr, ea->hw_src, ETH_ALEN); a = __aarp_find_entry(unresolved[hash], dev, &sa);
__aarp_resolved(&unresolved[hash], a, hash); if (!a || dev != a->dev)
if (!unresolved_count)
mod_timer(&aarp_timer,
jiffies + sysctl_aarp_expiry_time);
break; break;
case AARP_REQUEST: /* We can fill one in - this is good. */
case AARP_PROBE: memcpy(a->hwaddr, ea->hw_src, ETH_ALEN);
__aarp_resolved(&unresolved[hash], a, hash);
if (!unresolved_count)
mod_timer(&aarp_timer,
jiffies + sysctl_aarp_expiry_time);
break;
case AARP_REQUEST:
case AARP_PROBE:
/*
* If it is my address set ma to my address and reply.
* We can treat probe and request the same. Probe
* simply means we shouldn't cache the querying host,
* as in a probe they are proposing an address not
* using one.
*
* Support for proxy-AARP added. We check if the
* address is one of our proxies before we toss the
* packet out.
*/
sa.s_node = ea->pa_dst_node;
sa.s_net = ea->pa_dst_net;
/* See if we have a matching proxy. */
ma = __aarp_proxy_find(dev, &sa);
if (!ma)
ma = &ifa->address;
else { /* We need to make a copy of the entry. */
da.s_node = sa.s_node;
da.s_net = sa.s_net;
ma = &da;
}
if (function == AARP_PROBE) {
/* /*
* If it is my address set ma to my address and reply. * A probe implies someone trying to get an
* We can treat probe and request the same. Probe * address. So as a precaution flush any
* simply means we shouldn't cache the querying host, * entries we have for this address.
* as in a probe they are proposing an address not
* using one.
*
* Support for proxy-AARP added. We check if the
* address is one of our proxies before we toss the
* packet out.
*/ */
a = __aarp_find_entry(resolved[sa.s_node %
(AARP_HASH_SIZE - 1)],
skb->dev, &sa);
sa.s_node = ea->pa_dst_node; /*
sa.s_net = ea->pa_dst_net; * Make it expire next tick - that avoids us
* getting into a probe/flush/learn/probe/
/* See if we have a matching proxy. */ * flush/learn cycle during probing of a slow
ma = __aarp_proxy_find(dev, &sa); * to respond host addr.
if (!ma) */
ma = &ifa->address; if (a) {
else { /* We need to make a copy of the entry. */ a->expires_at = jiffies - 1;
da.s_node = sa.s_node; mod_timer(&aarp_timer, jiffies +
da.s_net = sa.s_net; sysctl_aarp_tick_time);
ma = &da;
}
if (function == AARP_PROBE) {
/*
* A probe implies someone trying to get an
* address. So as a precaution flush any
* entries we have for this address.
*/
a = __aarp_find_entry(resolved[sa.s_node %
(AARP_HASH_SIZE - 1)],
skb->dev, &sa);
/*
* Make it expire next tick - that avoids us
* getting into a probe/flush/learn/probe/
* flush/learn cycle during probing of a slow
* to respond host addr.
*/
if (a) {
a->expires_at = jiffies - 1;
mod_timer(&aarp_timer, jiffies +
sysctl_aarp_tick_time);
}
} }
}
if (sa.s_node != ma->s_node) if (sa.s_node != ma->s_node)
break; break;
if (sa.s_net && ma->s_net && sa.s_net != ma->s_net) if (sa.s_net && ma->s_net && sa.s_net != ma->s_net)
break; break;
sa.s_node = ea->pa_src_node; sa.s_node = ea->pa_src_node;
sa.s_net = ea->pa_src_net; sa.s_net = ea->pa_src_net;
/* aarp_my_address has found the address to use for us. /* aarp_my_address has found the address to use for us.
*/ */
aarp_send_reply(dev, ma, &sa, ea->hw_src); aarp_send_reply(dev, ma, &sa, ea->hw_src);
break; break;
} }
unlock: unlock:
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment