Skip to content

Commit

Permalink
batman-adv: report compat_version in version field in case of version…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Marek Lindner authored and Sven Eckelmann committed Nov 20, 2011
1 parent 76e8d7b commit ad24431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/icmp_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ad24431

Please sign in to comment.