diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-10-30 17:10:08 -0400 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-11-20 07:08:35 -0500 |
commit | ad24431277fc92717084d5b4c451e15982588206 (patch) | |
tree | 0e5a5f0f4bffb0a049cea9219b1d1625f2b5c90b /net/batman-adv/icmp_socket.c | |
parent | 76e8d7b0d1b0091929e8cd18551a87b6bb6ef2c1 (diff) |
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/batman-adv/icmp_socket.c')
-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, | |||
217 | 217 | ||
218 | if (icmp_packet->version != COMPAT_VERSION) { | 218 | if (icmp_packet->version != COMPAT_VERSION) { |
219 | icmp_packet->msg_type = PARAMETER_PROBLEM; | 219 | icmp_packet->msg_type = PARAMETER_PROBLEM; |
220 | icmp_packet->ttl = COMPAT_VERSION; | 220 | icmp_packet->version = COMPAT_VERSION; |
221 | bat_socket_add_packet(socket_client, icmp_packet, packet_len); | 221 | bat_socket_add_packet(socket_client, icmp_packet, packet_len); |
222 | goto free_skb; | 222 | goto free_skb; |
223 | } | 223 | } |