A comment may clear this up ...
Reported-by: Sven Eckelmann sven@narfation.org Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de --- icmp_socket.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/icmp_socket.c b/icmp_socket.c index ac3520e..7b832d2 100644 --- a/icmp_socket.c +++ b/icmp_socket.c @@ -216,6 +216,8 @@ static ssize_t bat_socket_write(struct file *file, const char __user *buff, icmp_packet->uid = socket_client->index;
if (icmp_packet->version != COMPAT_VERSION) { + /* report the kernel modules COMPAT_VERSION through the ttl + * field if it differs from the version in the copied packet. */ icmp_packet->msg_type = PARAMETER_PROBLEM; icmp_packet->ttl = COMPAT_VERSION; bat_socket_add_packet(socket_client, icmp_packet, packet_len);