diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-10-30 22:10:08 +0100 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-11-20 13:08:35 +0100 |
commit | ad24431277fc92717084d5b4c451e15982588206 (patch) | |
tree | 0e5a5f0f4bffb0a049cea9219b1d1625f2b5c90b /net | |
parent | 76e8d7b0d1b0091929e8cd18551a87b6bb6ef2c1 (diff) | |
download | linux-stable-ad24431277fc92717084d5b4c451e15982588206.tar.gz linux-stable-ad24431277fc92717084d5b4c451e15982588206.tar.bz2 linux-stable-ad24431277fc92717084d5b4c451e15982588206.zip |
batman-adv: report compat_version in version field in case of version mismatch
Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/batman-adv/icmp_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/icmp_socket.c b/net/batman-adv/icmp_socket.c index ac3520e057c0..defd6929ceae 100644 --- a/net/batman-adv/icmp_socket.c +++ b/net/batman-adv/icmp_socket.c @@ -217,7 +217,7 @@ static ssize_t bat_socket_write(struct file *file, const char __user *buff, if (icmp_packet->version != COMPAT_VERSION) { icmp_packet->msg_type = PARAMETER_PROBLEM; - icmp_packet->ttl = COMPAT_VERSION; + icmp_packet->version = COMPAT_VERSION; bat_socket_add_packet(socket_client, icmp_packet, packet_len); goto free_skb; } |