diff options
author | David S. Miller <davem@davemloft.net> | 2011-06-20 12:59:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-20 12:59:37 -0700 |
commit | eac56465b88cc9ad3b964a9f0a02be3d3a136ddf (patch) | |
tree | 63550c9f343f6c9351f0b54be8664807e97abb93 /net/batman-adv/unicast.c | |
parent | 1b9c4134c126aa8ae00a57672d4a4eaecc436b54 (diff) | |
parent | 43676ab590c3f8686fd047d34c3e33803eef71f0 (diff) |
Merge branch 'batman-adv/next' of git://git.open-mesh.org/ecsv/linux-merge
Diffstat (limited to 'net/batman-adv/unicast.c')
-rw-r--r-- | net/batman-adv/unicast.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c index 6eabf42f8822..32b125fb3d3b 100644 --- a/net/batman-adv/unicast.c +++ b/net/batman-adv/unicast.c @@ -325,6 +325,9 @@ find_router: unicast_packet->ttl = TTL; /* copy the destination for faster routing */ memcpy(unicast_packet->dest, orig_node->orig, ETH_ALEN); + /* set the destination tt version number */ + unicast_packet->ttvn = + (uint8_t)atomic_read(&orig_node->last_ttvn); if (atomic_read(&bat_priv->fragmentation) && data_len + sizeof(*unicast_packet) > |