diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-03 16:19:17 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-28 02:45:05 -0400 |
commit | 42d0b044b7c9e5821f1bf3e2b4ea7861417c11c2 (patch) | |
tree | 3dedf87facfbc4dd0392256e93088c18509e1391 /net/batman-adv/soft-interface.c | |
parent | edbf7ff72312afcc502014ccf3c72c49fa55722a (diff) |
batman-adv: Prefix main defines with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index bbbc9a93d430..c1b2ab2f37bb 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -108,7 +108,7 @@ static int batadv_interface_set_mac_addr(struct net_device *dev, void *p) | |||
108 | if (atomic_read(&bat_priv->mesh_state) == MESH_ACTIVE) { | 108 | if (atomic_read(&bat_priv->mesh_state) == MESH_ACTIVE) { |
109 | batadv_tt_local_remove(bat_priv, dev->dev_addr, | 109 | batadv_tt_local_remove(bat_priv, dev->dev_addr, |
110 | "mac address changed", false); | 110 | "mac address changed", false); |
111 | batadv_tt_local_add(dev, addr->sa_data, NULL_IFINDEX); | 111 | batadv_tt_local_add(dev, addr->sa_data, BATADV_NULL_IFINDEX); |
112 | } | 112 | } |
113 | 113 | ||
114 | memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); | 114 | memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); |
@@ -210,7 +210,7 @@ static int batadv_interface_tx(struct sk_buff *skb, | |||
210 | 210 | ||
211 | bcast_packet = (struct bcast_packet *)skb->data; | 211 | bcast_packet = (struct bcast_packet *)skb->data; |
212 | bcast_packet->header.version = BATADV_COMPAT_VERSION; | 212 | bcast_packet->header.version = BATADV_COMPAT_VERSION; |
213 | bcast_packet->header.ttl = TTL; | 213 | bcast_packet->header.ttl = BATADV_TTL; |
214 | 214 | ||
215 | /* batman packet type: broadcast */ | 215 | /* batman packet type: broadcast */ |
216 | bcast_packet->header.packet_type = BAT_BCAST; | 216 | bcast_packet->header.packet_type = BAT_BCAST; |
@@ -394,8 +394,8 @@ struct net_device *batadv_softif_create(const char *name) | |||
394 | atomic_set(&bat_priv->hop_penalty, 30); | 394 | atomic_set(&bat_priv->hop_penalty, 30); |
395 | atomic_set(&bat_priv->log_level, 0); | 395 | atomic_set(&bat_priv->log_level, 0); |
396 | atomic_set(&bat_priv->fragmentation, 1); | 396 | atomic_set(&bat_priv->fragmentation, 1); |
397 | atomic_set(&bat_priv->bcast_queue_left, BCAST_QUEUE_LEN); | 397 | atomic_set(&bat_priv->bcast_queue_left, BATADV_BCAST_QUEUE_LEN); |
398 | atomic_set(&bat_priv->batman_queue_left, BATMAN_QUEUE_LEN); | 398 | atomic_set(&bat_priv->batman_queue_left, BATADV_BATMAN_QUEUE_LEN); |
399 | 399 | ||
400 | atomic_set(&bat_priv->mesh_state, MESH_INACTIVE); | 400 | atomic_set(&bat_priv->mesh_state, MESH_INACTIVE); |
401 | atomic_set(&bat_priv->bcast_seqno, 1); | 401 | atomic_set(&bat_priv->bcast_seqno, 1); |
@@ -487,7 +487,7 @@ static void batadv_get_drvinfo(struct net_device *dev, | |||
487 | struct ethtool_drvinfo *info) | 487 | struct ethtool_drvinfo *info) |
488 | { | 488 | { |
489 | strcpy(info->driver, "B.A.T.M.A.N. advanced"); | 489 | strcpy(info->driver, "B.A.T.M.A.N. advanced"); |
490 | strcpy(info->version, SOURCE_VERSION); | 490 | strcpy(info->version, BATADV_SOURCE_VERSION); |
491 | strcpy(info->fw_version, "N/A"); | 491 | strcpy(info->fw_version, "N/A"); |
492 | strcpy(info->bus_info, "batman"); | 492 | strcpy(info->bus_info, "batman"); |
493 | } | 493 | } |