summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/icmp_socket.h
diff options
context:
space:
mode:
authorSimon Wunderlich <sw@simonwunderlich.de>2013-10-22 22:50:09 +0200
committerAntonio Quartulli <antonio@meshcoding.com>2013-10-23 17:03:47 +0200
commitda6b8c20a5b8c7edce95c95fa2356300691094f5 (patch)
tree1154c27c3f4e9d62c099044f891441125f965e1f /net/batman-adv/icmp_socket.h
parent15c33da6e8c960e61691ec302fd72f247e97055b (diff)
downloadblackbird-op-linux-da6b8c20a5b8c7edce95c95fa2356300691094f5.tar.gz
blackbird-op-linux-da6b8c20a5b8c7edce95c95fa2356300691094f5.zip
batman-adv: generalize batman-adv icmp packet handling
Instead of handling icmp packets only up to length of icmp_packet_rr, the code should handle any icmp length size. Therefore the length truncating is moved to when the packet is actually sent to userspace (this does not support lengths longer than icmp_packet_rr yet). Longer packets are forwarded without truncating. This patch also cleans up some parts where the icmp header struct could be used instead of other icmp_packet(_rr) structs to make the code more readable. Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/icmp_socket.h')
-rw-r--r--net/batman-adv/icmp_socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/icmp_socket.h b/net/batman-adv/icmp_socket.h
index 1fcca37b6223..6665080dff79 100644
--- a/net/batman-adv/icmp_socket.h
+++ b/net/batman-adv/icmp_socket.h
@@ -24,7 +24,7 @@
void batadv_socket_init(void);
int batadv_socket_setup(struct batadv_priv *bat_priv);
-void batadv_socket_receive_packet(struct batadv_icmp_packet_rr *icmp_packet,
+void batadv_socket_receive_packet(struct batadv_icmp_header *icmph,
size_t icmp_len);
#endif /* _NET_BATMAN_ADV_ICMP_SOCKET_H_ */
OpenPOWER on IntegriCloud