Skip to content

Commit bccb48c

Browse files
ecsvsimonwunderlich
authored andcommitted
batman-adv: Fix typos and grammar in documentation
Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
1 parent 4dd5066 commit bccb48c

24 files changed

Lines changed: 114 additions & 113 deletions

‎Documentation/networking/batman-adv.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ lower value. This will make the mesh more responsive to topology changes, but
7373
will also increase the overhead.
7474

7575
Information about the current state can be accessed via the batadv generic
76-
netlink family. batctl provides human readable version via its debug tables
76+
netlink family. batctl provides a human readable version via its debug tables
7777
subcommands.
7878

7979

@@ -115,8 +115,8 @@ are prefixed with "batman-adv:" So to see just these messages try::
115115
$ dmesg | grep batman-adv
116116

117117
When investigating problems with your mesh network, it is sometimes necessary to
118-
see more detail debug messages. This must be enabled when compiling the
119-
batman-adv module. When building batman-adv as part of kernel, use "make
118+
see more detailed debug messages. This must be enabled when compiling the
119+
batman-adv module. When building batman-adv as part of the kernel, use "make
120120
menuconfig" and enable the option ``B.A.T.M.A.N. debugging``
121121
(``CONFIG_BATMAN_ADV_DEBUG=y``).
122122

‎include/uapi/linux/batadv_packet.h‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ enum batadv_subtype {
7272

7373
/**
7474
* enum batadv_iv_flags - flags used in B.A.T.M.A.N. IV OGM packets
75-
* @BATADV_NOT_BEST_NEXT_HOP: flag is set when ogm packet is forwarded and was
76-
* previously received from someone else than the best neighbor.
75+
* @BATADV_NOT_BEST_NEXT_HOP: flag is set when the ogm packet is forwarded and
76+
* was previously received from someone other than the best neighbor.
7777
* @BATADV_PRIMARIES_FIRST_HOP: flag unused.
7878
* @BATADV_DIRECTLINK: flag is for the first hop or if rebroadcasted from a
7979
* one hop neighbor on the interface where it was originally received.
@@ -195,8 +195,8 @@ struct batadv_bla_claim_dst {
195195
/**
196196
* struct batadv_ogm_packet - ogm (routing protocol) packet
197197
* @packet_type: batman-adv packet type, part of the general header
198-
* @version: batman-adv protocol version, part of the genereal header
199-
* @ttl: time to live for this packet, part of the genereal header
198+
* @version: batman-adv protocol version, part of the general header
199+
* @ttl: time to live for this packet, part of the general header
200200
* @flags: contains routing relevant flags - see enum batadv_iv_flags
201201
* @seqno: sequence identification
202202
* @orig: address of the source node
@@ -247,7 +247,7 @@ struct batadv_ogm2_packet {
247247
/**
248248
* struct batadv_elp_packet - elp (neighbor discovery) packet
249249
* @packet_type: batman-adv packet type, part of the general header
250-
* @version: batman-adv protocol version, part of the genereal header
250+
* @version: batman-adv protocol version, part of the general header
251251
* @orig: originator mac address
252252
* @seqno: sequence number
253253
* @elp_interval: currently used ELP sending interval in ms
@@ -265,15 +265,15 @@ struct batadv_elp_packet {
265265
/**
266266
* struct batadv_icmp_header - common members among all the ICMP packets
267267
* @packet_type: batman-adv packet type, part of the general header
268-
* @version: batman-adv protocol version, part of the genereal header
269-
* @ttl: time to live for this packet, part of the genereal header
268+
* @version: batman-adv protocol version, part of the general header
269+
* @ttl: time to live for this packet, part of the general header
270270
* @msg_type: ICMP packet type
271271
* @dst: address of the destination node
272272
* @orig: address of the source node
273273
* @uid: local ICMP socket identifier
274274
* @align: not used - useful for alignment purposes only
275275
*
276-
* This structure is used for ICMP packets parsing only and it is never sent
276+
* This structure is used for ICMP packet parsing only and it is never sent
277277
* over the wire. The alignment field at the end is there to ensure that
278278
* members are padded the same way as they are in real packets.
279279
*/
@@ -291,8 +291,8 @@ struct batadv_icmp_header {
291291
/**
292292
* struct batadv_icmp_packet - ICMP packet
293293
* @packet_type: batman-adv packet type, part of the general header
294-
* @version: batman-adv protocol version, part of the genereal header
295-
* @ttl: time to live for this packet, part of the genereal header
294+
* @version: batman-adv protocol version, part of the general header
295+
* @ttl: time to live for this packet, part of the general header
296296
* @msg_type: ICMP packet type
297297
* @dst: address of the destination node
298298
* @orig: address of the source node
@@ -315,8 +315,8 @@ struct batadv_icmp_packet {
315315
/**
316316
* struct batadv_icmp_tp_packet - ICMP TP Meter packet
317317
* @packet_type: batman-adv packet type, part of the general header
318-
* @version: batman-adv protocol version, part of the genereal header
319-
* @ttl: time to live for this packet, part of the genereal header
318+
* @version: batman-adv protocol version, part of the general header
319+
* @ttl: time to live for this packet, part of the general header
320320
* @msg_type: ICMP packet type
321321
* @dst: address of the destination node
322322
* @orig: address of the source node
@@ -358,8 +358,8 @@ enum batadv_icmp_tp_subtype {
358358
/**
359359
* struct batadv_icmp_packet_rr - ICMP RouteRecord packet
360360
* @packet_type: batman-adv packet type, part of the general header
361-
* @version: batman-adv protocol version, part of the genereal header
362-
* @ttl: time to live for this packet, part of the genereal header
361+
* @version: batman-adv protocol version, part of the general header
362+
* @ttl: time to live for this packet, part of the general header
363363
* @msg_type: ICMP packet type
364364
* @dst: address of the destination node
365365
* @orig: address of the source node
@@ -397,8 +397,8 @@ struct batadv_icmp_packet_rr {
397397
/**
398398
* struct batadv_unicast_packet - unicast packet for network payload
399399
* @packet_type: batman-adv packet type, part of the general header
400-
* @version: batman-adv protocol version, part of the genereal header
401-
* @ttl: time to live for this packet, part of the genereal header
400+
* @version: batman-adv protocol version, part of the general header
401+
* @ttl: time to live for this packet, part of the general header
402402
* @ttvn: translation table version number
403403
* @dest: originator destination of the unicast packet
404404
*/
@@ -433,8 +433,8 @@ struct batadv_unicast_4addr_packet {
433433
/**
434434
* struct batadv_frag_packet - fragmented packet
435435
* @packet_type: batman-adv packet type, part of the general header
436-
* @version: batman-adv protocol version, part of the genereal header
437-
* @ttl: time to live for this packet, part of the genereal header
436+
* @version: batman-adv protocol version, part of the general header
437+
* @ttl: time to live for this packet, part of the general header
438438
* @dest: final destination used when routing fragments
439439
* @orig: originator of the fragment used when merging the packet
440440
* @no: fragment number within this sequence
@@ -467,8 +467,8 @@ struct batadv_frag_packet {
467467
/**
468468
* struct batadv_bcast_packet - broadcast packet for network payload
469469
* @packet_type: batman-adv packet type, part of the general header
470-
* @version: batman-adv protocol version, part of the genereal header
471-
* @ttl: time to live for this packet, part of the genereal header
470+
* @version: batman-adv protocol version, part of the general header
471+
* @ttl: time to live for this packet, part of the general header
472472
* @reserved: reserved byte for alignment
473473
* @seqno: sequence identification
474474
* @orig: originator of the broadcast packet
@@ -488,10 +488,10 @@ struct batadv_bcast_packet {
488488
/**
489489
* struct batadv_coded_packet - network coded packet
490490
* @packet_type: batman-adv packet type, part of the general header
491-
* @version: batman-adv protocol version, part of the genereal header
492-
* @ttl: time to live for this packet, part of the genereal header
491+
* @version: batman-adv protocol version, part of the general header
492+
* @ttl: time to live for this packet, part of the general header
493493
* @first_source: original source of first included packet
494-
* @first_orig_dest: original destinal of first included packet
494+
* @first_orig_dest: original destination of first included packet
495495
* @first_crc: checksum of first included packet
496496
* @first_ttvn: tt-version number of first included packet
497497
* @second_ttl: ttl of second packet
@@ -523,8 +523,8 @@ struct batadv_coded_packet {
523523
/**
524524
* struct batadv_unicast_tvlv_packet - generic unicast packet with tvlv payload
525525
* @packet_type: batman-adv packet type, part of the general header
526-
* @version: batman-adv protocol version, part of the genereal header
527-
* @ttl: time to live for this packet, part of the genereal header
526+
* @version: batman-adv protocol version, part of the general header
527+
* @ttl: time to live for this packet, part of the general header
528528
* @reserved: reserved field (for packet alignment)
529529
* @src: address of the source
530530
* @dst: address of the destination

‎include/uapi/linux/batman_adv.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ enum batadv_tt_client_flags {
6969

7070
/**
7171
* @BATADV_TT_CLIENT_TEMP: this global client has been detected to be
72-
* part of the network but no nnode has already announced it
72+
* part of the network but no node has already announced it
7373
*/
7474
BATADV_TT_CLIENT_TEMP = (1 << 11),
7575
};
@@ -131,7 +131,7 @@ enum batadv_gw_modes {
131131
/** @BATADV_GW_MODE_CLIENT: send DHCP requests to gw servers */
132132
BATADV_GW_MODE_CLIENT,
133133

134-
/** @BATADV_GW_MODE_SERVER: announce itself as gatway server */
134+
/** @BATADV_GW_MODE_SERVER: announce itself as gateway server */
135135
BATADV_GW_MODE_SERVER,
136136
};
137137

‎net/batman-adv/bat_iv_ogm.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static u8 batadv_ring_buffer_avg(const u8 lq_recv[])
134134
*
135135
* Return: the originator object corresponding to the passed mac address or NULL
136136
* on failure.
137-
* If the object does not exists it is created an initialised.
137+
* If the object does not exist, it is created and initialised.
138138
*/
139139
static struct batadv_orig_node *
140140
batadv_iv_ogm_orig_get(struct batadv_priv *bat_priv, const u8 *addr)
@@ -871,7 +871,7 @@ static void batadv_iv_ogm_schedule(struct batadv_hard_iface *hard_iface)
871871
}
872872

873873
/**
874-
* batadv_iv_orig_ifinfo_sum() - Get bcast_own sum for originator over iterface
874+
* batadv_iv_orig_ifinfo_sum() - Get bcast_own sum for originator over interface
875875
* @orig_node: originator which reproadcasted the OGMs directly
876876
* @if_outgoing: interface which transmitted the original OGM and received the
877877
* direct rebroadcast
@@ -1554,7 +1554,7 @@ static void batadv_iv_ogm_process_reply(struct batadv_ogm_packet *ogm_packet,
15541554
* batadv_iv_ogm_process() - process an incoming batman iv OGM
15551555
* @skb: the skb containing the OGM
15561556
* @ogm_offset: offset to the OGM which should be processed (for aggregates)
1557-
* @if_incoming: the interface where this packet was receved
1557+
* @if_incoming: the interface where this packet was received
15581558
*/
15591559
static void batadv_iv_ogm_process(const struct sk_buff *skb, int ogm_offset,
15601560
struct batadv_hard_iface *if_incoming)
@@ -2288,7 +2288,7 @@ batadv_iv_ogm_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq,
22882288
* @msg: Netlink message to dump into
22892289
* @cb: Control block containing additional options
22902290
* @bat_priv: The bat priv with all the soft interface information
2291-
* @single_hardif: Limit dump to this hard interfaace
2291+
* @single_hardif: Limit dump to this hard interface
22922292
*/
22932293
static void
22942294
batadv_iv_ogm_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb,

‎net/batman-adv/bat_v_elp.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void batadv_v_elp_start_timer(struct batadv_hard_iface *hard_iface)
6060
* @neigh: the neighbour for which the throughput has to be obtained
6161
*
6262
* Return: The throughput towards the given neighbour in multiples of 100kpbs
63-
* (a value of '1' equals to 0.1Mbps, '10' equals 1Mbps, etc).
63+
* (a value of '1' equals 0.1Mbps, '10' equals 1Mbps, etc).
6464
*/
6565
static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh)
6666
{
@@ -183,8 +183,8 @@ void batadv_v_elp_throughput_metric_update(struct work_struct *work)
183183
*
184184
* Sends a predefined number of unicast wifi packets to a given neighbour in
185185
* order to trigger the throughput estimation on this link by the RC algorithm.
186-
* Packets are sent only if there there is not enough payload unicast traffic
187-
* towards this neighbour..
186+
* Packets are sent only if there is not enough payload unicast traffic towards
187+
* this neighbour..
188188
*
189189
* Return: True on success and false in case of error during skb preparation.
190190
*/
@@ -244,7 +244,7 @@ batadv_v_elp_wifi_neigh_probe(struct batadv_hardif_neigh_node *neigh)
244244
* batadv_v_elp_periodic_work() - ELP periodic task per interface
245245
* @work: work queue item
246246
*
247-
* Emits broadcast ELP message in regular intervals.
247+
* Emits broadcast ELP messages in regular intervals.
248248
*/
249249
static void batadv_v_elp_periodic_work(struct work_struct *work)
250250
{
@@ -499,7 +499,7 @@ static void batadv_v_elp_neigh_update(struct batadv_priv *bat_priv,
499499
* @skb: the received packet
500500
* @if_incoming: the interface this packet was received through
501501
*
502-
* Return: NET_RX_SUCCESS and consumes the skb if the packet was peoperly
502+
* Return: NET_RX_SUCCESS and consumes the skb if the packet was properly
503503
* processed or NET_RX_DROP in case of failure.
504504
*/
505505
int batadv_v_elp_packet_recv(struct sk_buff *skb,

‎net/batman-adv/bat_v_ogm.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
* @bat_priv: the bat priv with all the soft interface information
4848
* @addr: the address of the originator
4949
*
50-
* Return: the orig_node corresponding to the specified address. If such object
51-
* does not exist it is allocated here. In case of allocation failure returns
52-
* NULL.
50+
* Return: the orig_node corresponding to the specified address. If such an
51+
* object does not exist, it is allocated here. In case of allocation failure
52+
* returns NULL.
5353
*/
5454
struct batadv_orig_node *batadv_v_ogm_orig_get(struct batadv_priv *bat_priv,
5555
const u8 *addr)
@@ -172,7 +172,7 @@ static bool batadv_v_ogm_queue_left(struct sk_buff *skb,
172172
* batadv_v_ogm_aggr_list_free - free all elements in an aggregation queue
173173
* @hard_iface: the interface holding the aggregation queue
174174
*
175-
* Empties the OGMv2 aggregation queue and frees all the skbs it contained.
175+
* Empties the OGMv2 aggregation queue and frees all the skbs it contains.
176176
*
177177
* Caller needs to hold the hard_iface->bat_v.aggr_list.lock.
178178
*/
@@ -378,7 +378,7 @@ static void batadv_v_ogm_send(struct work_struct *work)
378378
* batadv_v_ogm_aggr_work() - OGM queue periodic task per interface
379379
* @work: work queue item
380380
*
381-
* Emits aggregated OGM message in regular intervals.
381+
* Emits aggregated OGM messages in regular intervals.
382382
*/
383383
void batadv_v_ogm_aggr_work(struct work_struct *work)
384384
{
@@ -399,7 +399,7 @@ void batadv_v_ogm_aggr_work(struct work_struct *work)
399399
* batadv_v_ogm_iface_enable() - prepare an interface for B.A.T.M.A.N. V
400400
* @hard_iface: the interface to prepare
401401
*
402-
* Takes care of scheduling own OGM sending routine for this interface.
402+
* Takes care of scheduling its own OGM sending routine for this interface.
403403
*
404404
* Return: 0 on success or a negative error code otherwise
405405
*/
@@ -847,7 +847,7 @@ batadv_v_ogm_aggr_packet(int buff_pos, int packet_len,
847847
* batadv_v_ogm_process() - process an incoming batman v OGM
848848
* @skb: the skb containing the OGM
849849
* @ogm_offset: offset to the OGM which should be processed (for aggregates)
850-
* @if_incoming: the interface where this packet was receved
850+
* @if_incoming: the interface where this packet was received
851851
*/
852852
static void batadv_v_ogm_process(const struct sk_buff *skb, int ogm_offset,
853853
struct batadv_hard_iface *if_incoming)

‎net/batman-adv/bridge_loop_avoidance.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ static bool batadv_handle_claim(struct batadv_priv *bat_priv,
992992
* @hw_dst: the Hardware destination in the ARP Header
993993
* @ethhdr: pointer to the Ethernet header of the claim frame
994994
*
995-
* checks if it is a claim packet and if its on the same group.
995+
* checks if it is a claim packet and if it's on the same group.
996996
* This function also applies the group ID of the sender
997997
* if it is in the same mesh.
998998
*
@@ -1757,7 +1757,7 @@ void batadv_bla_free(struct batadv_priv *bat_priv)
17571757
* @vid: the VLAN ID of the frame
17581758
*
17591759
* Checks if this packet is a loop detect frame which has been sent by us,
1760-
* throw an uevent and log the event if that is the case.
1760+
* throws an uevent and logs the event if that is the case.
17611761
*
17621762
* Return: true if it is a loop detect frame which is to be dropped, false
17631763
* otherwise.
@@ -1815,7 +1815,7 @@ batadv_bla_loopdetect_check(struct batadv_priv *bat_priv, struct sk_buff *skb,
18151815
* * we have to race for a claim
18161816
* * if the frame is allowed on the LAN
18171817
*
1818-
* in these cases, the skb is further handled by this function
1818+
* In these cases, the skb is further handled by this function
18191819
*
18201820
* Return: true if handled, otherwise it returns false and the caller shall
18211821
* further process the skb.

‎net/batman-adv/distributed-arp-table.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ batadv_dat_select_candidates(struct batadv_priv *bat_priv, __be32 ip_dst,
666666
* @vid: VLAN identifier
667667
* @packet_subtype: unicast4addr packet subtype to use
668668
*
669-
* This function copies the skb with pskb_copy() and is sent as unicast packet
669+
* This function copies the skb with pskb_copy() and is sent as a unicast packet
670670
* to each of the selected candidates.
671671
*
672672
* Return: true if the packet is sent to at least one candidate, false

‎net/batman-adv/fragmentation.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ static int batadv_frag_size_limit(void)
102102
*
103103
* Caller must hold chain->lock.
104104
*
105-
* Return: true if chain is empty and caller can just insert the new fragment
106-
* without searching for the right position.
105+
* Return: true if chain is empty and the caller can just insert the new
106+
* fragment without searching for the right position.
107107
*/
108108
static bool batadv_frag_init_chain(struct batadv_frag_table_entry *chain,
109109
u16 seqno)
@@ -306,7 +306,7 @@ batadv_frag_merge_packets(struct hlist_head *chain)
306306
* set *skb to merged packet; 2) Packet is buffered: Return true and set *skb
307307
* to NULL; 3) Error: Return false and free skb.
308308
*
309-
* Return: true when packet is merged or buffered, false when skb is not not
309+
* Return: true when the packet is merged or buffered, false when skb is not not
310310
* used.
311311
*/
312312
bool batadv_frag_skb_buffer(struct sk_buff **skb,

‎net/batman-adv/hard-interface.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ static bool batadv_mutual_parents(const struct net_device *dev1,
138138
* @net_dev: the device to check
139139
*
140140
* If the user creates any virtual device on top of a batman-adv interface, it
141-
* is important to prevent this new interface to be used to create a new mesh
142-
* network (this behaviour would lead to a batman-over-batman configuration).
143-
* This function recursively checks all the fathers of the device passed as
144-
* argument looking for a batman-adv soft interface.
141+
* is important to prevent this new interface from being used to create a new
142+
* mesh network (this behaviour would lead to a batman-over-batman
143+
* configuration). This function recursively checks all the fathers of the
144+
* device passed as argument looking for a batman-adv soft interface.
145145
*
146146
* Return: true if the device is descendant of a batman-adv mesh interface (or
147147
* if it is a batman-adv interface itself), false otherwise
@@ -680,8 +680,8 @@ batadv_hardif_deactivate_interface(struct batadv_hard_iface *hard_iface)
680680
* @slave: the interface enslaved in another master
681681
* @master: the master from which slave has to be removed
682682
*
683-
* Invoke ndo_del_slave on master passing slave as argument. In this way slave
684-
* is free'd and master can correctly change its internal state.
683+
* Invoke ndo_del_slave on master passing slave as argument. In this way the
684+
* slave is free'd and the master can correctly change its internal state.
685685
*
686686
* Return: 0 on success, a negative value representing the error otherwise
687687
*/
@@ -818,7 +818,7 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
818818
* @soft_iface: soft interface to check
819819
*
820820
* This function is only using RCU for locking - the result can therefore be
821-
* off when another functions is modifying the list at the same time. The
821+
* off when another function is modifying the list at the same time. The
822822
* caller can use the rtnl_lock to make sure that the count is accurate.
823823
*
824824
* Return: number of connected/enslaved hard interfaces

0 commit comments

Comments
 (0)