diff options
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r-- | net/batman-adv/translation-table.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index 3ca2e48d669e..79cd3f76a865 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -1441,7 +1441,7 @@ static int batadv_send_tt_request(struct bat_priv *bat_priv, | |||
1441 | sizeof(struct tt_query_packet)); | 1441 | sizeof(struct tt_query_packet)); |
1442 | 1442 | ||
1443 | tt_request->header.packet_type = BAT_TT_QUERY; | 1443 | tt_request->header.packet_type = BAT_TT_QUERY; |
1444 | tt_request->header.version = COMPAT_VERSION; | 1444 | tt_request->header.version = BATADV_COMPAT_VERSION; |
1445 | memcpy(tt_request->src, primary_if->net_dev->dev_addr, ETH_ALEN); | 1445 | memcpy(tt_request->src, primary_if->net_dev->dev_addr, ETH_ALEN); |
1446 | memcpy(tt_request->dst, dst_orig_node->orig, ETH_ALEN); | 1446 | memcpy(tt_request->dst, dst_orig_node->orig, ETH_ALEN); |
1447 | tt_request->header.ttl = TTL; | 1447 | tt_request->header.ttl = TTL; |
@@ -1575,7 +1575,7 @@ static bool batadv_send_other_tt_response(struct bat_priv *bat_priv, | |||
1575 | } | 1575 | } |
1576 | 1576 | ||
1577 | tt_response->header.packet_type = BAT_TT_QUERY; | 1577 | tt_response->header.packet_type = BAT_TT_QUERY; |
1578 | tt_response->header.version = COMPAT_VERSION; | 1578 | tt_response->header.version = BATADV_COMPAT_VERSION; |
1579 | tt_response->header.ttl = TTL; | 1579 | tt_response->header.ttl = TTL; |
1580 | memcpy(tt_response->src, req_dst_orig_node->orig, ETH_ALEN); | 1580 | memcpy(tt_response->src, req_dst_orig_node->orig, ETH_ALEN); |
1581 | memcpy(tt_response->dst, tt_request->src, ETH_ALEN); | 1581 | memcpy(tt_response->dst, tt_request->src, ETH_ALEN); |
@@ -1696,7 +1696,7 @@ static bool batadv_send_my_tt_response(struct bat_priv *bat_priv, | |||
1696 | } | 1696 | } |
1697 | 1697 | ||
1698 | tt_response->header.packet_type = BAT_TT_QUERY; | 1698 | tt_response->header.packet_type = BAT_TT_QUERY; |
1699 | tt_response->header.version = COMPAT_VERSION; | 1699 | tt_response->header.version = BATADV_COMPAT_VERSION; |
1700 | tt_response->header.ttl = TTL; | 1700 | tt_response->header.ttl = TTL; |
1701 | memcpy(tt_response->src, primary_if->net_dev->dev_addr, ETH_ALEN); | 1701 | memcpy(tt_response->src, primary_if->net_dev->dev_addr, ETH_ALEN); |
1702 | memcpy(tt_response->dst, tt_request->src, ETH_ALEN); | 1702 | memcpy(tt_response->dst, tt_request->src, ETH_ALEN); |
@@ -2008,7 +2008,7 @@ static void batadv_send_roam_adv(struct bat_priv *bat_priv, uint8_t *client, | |||
2008 | sizeof(struct roam_adv_packet)); | 2008 | sizeof(struct roam_adv_packet)); |
2009 | 2009 | ||
2010 | roam_adv_packet->header.packet_type = BAT_ROAM_ADV; | 2010 | roam_adv_packet->header.packet_type = BAT_ROAM_ADV; |
2011 | roam_adv_packet->header.version = COMPAT_VERSION; | 2011 | roam_adv_packet->header.version = BATADV_COMPAT_VERSION; |
2012 | roam_adv_packet->header.ttl = TTL; | 2012 | roam_adv_packet->header.ttl = TTL; |
2013 | primary_if = batadv_primary_if_get_selected(bat_priv); | 2013 | primary_if = batadv_primary_if_get_selected(bat_priv); |
2014 | if (!primary_if) | 2014 | if (!primary_if) |