Skip to content

Commit 8a2966f

Browse files
committed
Apply codespell to the sources.
1 parent b610c07 commit 8a2966f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ ipt_NETFLOW linux 2.6.x-5.x kernel module by <[email protected]> -- 2008-2019.
206206
--enable-macaddress
207207
enables exporting of src and dst MAC addresses for every flow
208208
in v9/IPFIX. Difference in any of MAC address will be accounted
209-
as differnt flow. I.e. MAC addresses will be part of flow key.
209+
as different flow. I.e. MAC addresses will be part of flow key.
210210

211211
--enable-vlan
212212
enables exporting of dot1q VLAN Ids and Priorities for every flow

ipt_NETFLOW.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ static int promisc6_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
13101310
if (hdr->nexthdr == NEXTHDR_HOP) {
13111311
int optlen;
13121312
/* ipv6_parse_hopopts() is not exported by kernel.
1313-
* I dont really need to parse hop options, since packets
1313+
* I don't really need to parse hop options, since packets
13141314
* are not routed, nor terminated, but I keep calculations
13151315
* in case other code depend on it. */
13161316
if (!pskb_may_pull(skb, sizeof(struct ipv6hdr) + 8) ||
@@ -2012,7 +2012,7 @@ static void usock_close(struct ipt_netflow_sock *usock)
20122012

20132013
ktime_t ktime_get_real(void);
20142014

2015-
// return numbers of sends succeded, 0 if none
2015+
// return numbers of sends succeeded, 0 if none
20162016
/* only called in scan worker path */
20172017
static void netflow_sendmsg(void *buffer, const int len)
20182018
{
@@ -2072,7 +2072,7 @@ static void netflow_sendmsg(void *buffer, const int len)
20722072
}
20732073
mutex_unlock(&sock_lock);
20742074
if (retok == 0) {
2075-
/* not least one send succeded, account stat for dropped packets */
2075+
/* not least one send succeeded, account stat for dropped packets */
20762076
NETFLOW_STAT_ADD(pkt_lost, pdu_packets);
20772077
NETFLOW_STAT_ADD(traf_lost, pdu_traf);
20782078
NETFLOW_STAT_ADD(flow_lost, pdu_flow_records);
@@ -2154,7 +2154,7 @@ static void set_sampler(const unsigned char mode, const unsigned short interval)
21542154
printk(KERN_ERR "ipt_NETFLOW: flow sampling is disabled.\n");
21552155
} else {
21562156
sampling_ts.first = ktime_get_real();
2157-
/* no race here, becasue exporting process is stopped */
2157+
/* no race here, because exporting process is stopped */
21582158
samp.v32 = s.v32;
21592159
sprintf(sampler_buf, "%s:%u", sampler_mode_string(), interval);
21602160
printk(KERN_ERR "ipt_NETFLOW: flow sampling is enabled, mode %s one-out-of %u.\n",
@@ -2927,7 +2927,7 @@ static struct base_template template_vlan_inner = {
29272927
static struct base_template template_mpls = {
29282928
.types = {
29292929
mplsTopLabelTTL,
2930-
/* do not just add element here, becasue this array
2930+
/* do not just add element here, because this array
29312931
* is truncated in ipt_netflow_init() */
29322932
#define MPLS_LABELS_BASE_INDEX 1
29332933
MPLS_LABEL_1,
@@ -4501,7 +4501,7 @@ static void rate_timer_calc(
45014501
dsrch = st->searched - st->old_searched;
45024502
dfnd = st->found - st->old_found;
45034503
dnfnd = st->notfound - st->old_notfound;
4504-
/* zero values are not accounted, becasue only usage is interesting, not nonusage */
4504+
/* zero values are not accounted, because only usage is interesting, not nonusage */
45054505
metrt = (dfnd + dnfnd)? 100 * (dsrch + dfnd + dnfnd) / (dfnd + dnfnd) : st->metric;
45064506
CALC_RATE(st->metric, metrt, 1);
45074507
st->old_searched = st->searched;

0 commit comments

Comments
 (0)