mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 17:21:49 +00:00
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>
This commit is contained in:
parent
76e8d7b0d1
commit
ad24431277
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user