diff options
author | Sven Eckelmann <sven@narfation.org> | 2017-12-02 13:51:53 -0500 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2017-12-15 11:29:24 -0500 |
commit | ff15c27c97303fbe5abc49c25c73ea299ab72d31 (patch) | |
tree | ec78240c800bdf7a1ef3322175c5648a9ffa6d41 /net/batman-adv/routing.c | |
parent | e57acf8e93fb65715af7595066d99d4c0c3f0235 (diff) |
batman-adv: Add kernel-doc to externally visible functions
According to the kernel-doc documentation, externally visible functions
should be documented. This refers to all all non-static function which can
(and will) be used by functions in other sources files.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r-- | net/batman-adv/routing.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 01820be4ae5a..eb835bde502a 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c | |||
@@ -181,6 +181,14 @@ bool batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff, | |||
181 | return false; | 181 | return false; |
182 | } | 182 | } |
183 | 183 | ||
184 | /** | ||
185 | * batadv_check_management_packet() - Check preconditions for management packets | ||
186 | * @skb: incoming packet buffer | ||
187 | * @hard_iface: incoming hard interface | ||
188 | * @header_len: minimal header length of packet type | ||
189 | * | ||
190 | * Return: true when management preconditions are met, false otherwise | ||
191 | */ | ||
184 | bool batadv_check_management_packet(struct sk_buff *skb, | 192 | bool batadv_check_management_packet(struct sk_buff *skb, |
185 | struct batadv_hard_iface *hard_iface, | 193 | struct batadv_hard_iface *hard_iface, |
186 | int header_len) | 194 | int header_len) |
@@ -348,6 +356,13 @@ out: | |||
348 | return ret; | 356 | return ret; |
349 | } | 357 | } |
350 | 358 | ||
359 | /** | ||
360 | * batadv_recv_icmp_packet() - Process incoming icmp packet | ||
361 | * @skb: incoming packet buffer | ||
362 | * @recv_if: incoming hard interface | ||
363 | * | ||
364 | * Return: NET_RX_SUCCESS on success or NET_RX_DROP in case of failure | ||
365 | */ | ||
351 | int batadv_recv_icmp_packet(struct sk_buff *skb, | 366 | int batadv_recv_icmp_packet(struct sk_buff *skb, |
352 | struct batadv_hard_iface *recv_if) | 367 | struct batadv_hard_iface *recv_if) |
353 | { | 368 | { |
@@ -936,6 +951,13 @@ free_skb: | |||
936 | return NET_RX_DROP; | 951 | return NET_RX_DROP; |
937 | } | 952 | } |
938 | 953 | ||
954 | /** | ||
955 | * batadv_recv_unicast_packet() - Process incoming unicast packet | ||
956 | * @skb: incoming packet buffer | ||
957 | * @recv_if: incoming hard interface | ||
958 | * | ||
959 | * Return: NET_RX_SUCCESS on success or NET_RX_DROP in case of failure | ||
960 | */ | ||
939 | int batadv_recv_unicast_packet(struct sk_buff *skb, | 961 | int batadv_recv_unicast_packet(struct sk_buff *skb, |
940 | struct batadv_hard_iface *recv_if) | 962 | struct batadv_hard_iface *recv_if) |
941 | { | 963 | { |
@@ -1156,6 +1178,13 @@ free_skb: | |||
1156 | return ret; | 1178 | return ret; |
1157 | } | 1179 | } |
1158 | 1180 | ||
1181 | /** | ||
1182 | * batadv_recv_bcast_packet() - Process incoming broadcast packet | ||
1183 | * @skb: incoming packet buffer | ||
1184 | * @recv_if: incoming hard interface | ||
1185 | * | ||
1186 | * Return: NET_RX_SUCCESS on success or NET_RX_DROP in case of failure | ||
1187 | */ | ||
1159 | int batadv_recv_bcast_packet(struct sk_buff *skb, | 1188 | int batadv_recv_bcast_packet(struct sk_buff *skb, |
1160 | struct batadv_hard_iface *recv_if) | 1189 | struct batadv_hard_iface *recv_if) |
1161 | { | 1190 | { |