aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-03 16:19:20 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:19 -0400
commitd69909d2fc9e00bd8149cc8df9b18c35008e3e62 (patch)
tree305ce47abad3d2ef055d36b0c9b9808e3555111d /net/batman-adv/routing.c
parente9a4f295ebe06b00d6af5597c0cea78c315c2ebc (diff)
batman-adv: Prefix types enum with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r--net/batman-adv/routing.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 4d632215f92f..aa8325e8f8bf 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -607,7 +607,7 @@ int batadv_recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if)
607 607
608 switch (tt_query->flags & BATADV_TT_QUERY_TYPE_MASK) { 608 switch (tt_query->flags & BATADV_TT_QUERY_TYPE_MASK) {
609 case TT_REQUEST: 609 case TT_REQUEST:
610 batadv_inc_counter(bat_priv, BAT_CNT_TT_REQUEST_RX); 610 batadv_inc_counter(bat_priv, BATADV_CNT_TT_REQUEST_RX);
611 611
612 /* If we cannot provide an answer the tt_request is 612 /* If we cannot provide an answer the tt_request is
613 * forwarded 613 * forwarded
@@ -622,7 +622,7 @@ int batadv_recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if)
622 } 622 }
623 break; 623 break;
624 case TT_RESPONSE: 624 case TT_RESPONSE:
625 batadv_inc_counter(bat_priv, BAT_CNT_TT_RESPONSE_RX); 625 batadv_inc_counter(bat_priv, BATADV_CNT_TT_RESPONSE_RX);
626 626
627 if (batadv_is_my_mac(tt_query->dst)) { 627 if (batadv_is_my_mac(tt_query->dst)) {
628 /* packet needs to be linearized to access the TT 628 /* packet needs to be linearized to access the TT
@@ -678,7 +678,7 @@ int batadv_recv_roam_adv(struct sk_buff *skb, struct hard_iface *recv_if)
678 if (is_broadcast_ether_addr(ethhdr->h_source)) 678 if (is_broadcast_ether_addr(ethhdr->h_source))
679 goto out; 679 goto out;
680 680
681 batadv_inc_counter(bat_priv, BAT_CNT_TT_ROAM_ADV_RX); 681 batadv_inc_counter(bat_priv, BATADV_CNT_TT_ROAM_ADV_RX);
682 682
683 roam_adv_packet = (struct roam_adv_packet *)skb->data; 683 roam_adv_packet = (struct roam_adv_packet *)skb->data;
684 684
@@ -900,8 +900,8 @@ static int batadv_route_unicast_packet(struct sk_buff *skb,
900 unicast_packet->header.ttl--; 900 unicast_packet->header.ttl--;
901 901
902 /* Update stats counter */ 902 /* Update stats counter */
903 batadv_inc_counter(bat_priv, BAT_CNT_FORWARD); 903 batadv_inc_counter(bat_priv, BATADV_CNT_FORWARD);
904 batadv_add_counter(bat_priv, BAT_CNT_FORWARD_BYTES, 904 batadv_add_counter(bat_priv, BATADV_CNT_FORWARD_BYTES,
905 skb->len + ETH_HLEN); 905 skb->len + ETH_HLEN);
906 906
907 /* route it */ 907 /* route it */