aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bridge_loop_avoidance.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-05 16:31:30 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:21 -0400
commit96412690116afcc1b2705615b5a7c8dc6c5e905f (patch)
tree0eb2a1a557e2997175b27f3ab925bbdc29ece54d /net/batman-adv/bridge_loop_avoidance.c
parentb4d66b877bc21ce907938bfd027dfe016617fac0 (diff)
batman-adv: Prefix packet structs with batadv_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.c')
-rw-r--r--net/batman-adv/bridge_loop_avoidance.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index 8bd70501b1e0..fdda2c8d48fe 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -255,7 +255,7 @@ static void batadv_bla_send_claim(struct bat_priv *bat_priv, uint8_t *mac,
255 struct hard_iface *primary_if; 255 struct hard_iface *primary_if;
256 struct net_device *soft_iface; 256 struct net_device *soft_iface;
257 uint8_t *hw_src; 257 uint8_t *hw_src;
258 struct bla_claim_dst local_claim_dest; 258 struct batadv_bla_claim_dst local_claim_dest;
259 __be32 zeroip = 0; 259 __be32 zeroip = 0;
260 260
261 primary_if = batadv_primary_if_get_selected(bat_priv); 261 primary_if = batadv_primary_if_get_selected(bat_priv);
@@ -759,9 +759,9 @@ static int batadv_check_claim_group(struct bat_priv *bat_priv,
759{ 759{
760 uint8_t *backbone_addr; 760 uint8_t *backbone_addr;
761 struct orig_node *orig_node; 761 struct orig_node *orig_node;
762 struct bla_claim_dst *bla_dst, *bla_dst_own; 762 struct batadv_bla_claim_dst *bla_dst, *bla_dst_own;
763 763
764 bla_dst = (struct bla_claim_dst *)hw_dst; 764 bla_dst = (struct batadv_bla_claim_dst *)hw_dst;
765 bla_dst_own = &bat_priv->claim_dest; 765 bla_dst_own = &bat_priv->claim_dest;
766 766
767 /* check if it is a claim packet in general */ 767 /* check if it is a claim packet in general */
@@ -832,7 +832,7 @@ static int batadv_bla_process_claim(struct bat_priv *bat_priv,
832 struct vlan_ethhdr *vhdr; 832 struct vlan_ethhdr *vhdr;
833 struct arphdr *arphdr; 833 struct arphdr *arphdr;
834 uint8_t *hw_src, *hw_dst; 834 uint8_t *hw_src, *hw_dst;
835 struct bla_claim_dst *bla_dst; 835 struct batadv_bla_claim_dst *bla_dst;
836 uint16_t proto; 836 uint16_t proto;
837 int headlen; 837 int headlen;
838 short vid = -1; 838 short vid = -1;
@@ -876,7 +876,7 @@ static int batadv_bla_process_claim(struct bat_priv *bat_priv,
876 876
877 hw_src = (uint8_t *)arphdr + sizeof(struct arphdr); 877 hw_src = (uint8_t *)arphdr + sizeof(struct arphdr);
878 hw_dst = hw_src + ETH_ALEN + 4; 878 hw_dst = hw_src + ETH_ALEN + 4;
879 bla_dst = (struct bla_claim_dst *)hw_dst; 879 bla_dst = (struct batadv_bla_claim_dst *)hw_dst;
880 880
881 /* check if it is a claim frame. */ 881 /* check if it is a claim frame. */
882 ret = batadv_check_claim_group(bat_priv, primary_if, hw_src, hw_dst, 882 ret = batadv_check_claim_group(bat_priv, primary_if, hw_src, hw_dst,
@@ -1201,7 +1201,7 @@ int batadv_bla_init(struct bat_priv *bat_priv)
1201 * the same host however as this might be intended. 1201 * the same host however as this might be intended.
1202 */ 1202 */
1203int batadv_bla_check_bcast_duplist(struct bat_priv *bat_priv, 1203int batadv_bla_check_bcast_duplist(struct bat_priv *bat_priv,
1204 struct bcast_packet *bcast_packet, 1204 struct batadv_bcast_packet *bcast_packet,
1205 int hdr_size) 1205 int hdr_size)
1206{ 1206{
1207 int i, length, curr; 1207 int i, length, curr;