@@ -1310,7 +1310,7 @@ static int promisc6_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
1310
1310
if (hdr -> nexthdr == NEXTHDR_HOP ) {
1311
1311
int optlen ;
1312
1312
/* 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
1314
1314
* are not routed, nor terminated, but I keep calculations
1315
1315
* in case other code depend on it. */
1316
1316
if (!pskb_may_pull (skb , sizeof (struct ipv6hdr ) + 8 ) ||
@@ -2012,7 +2012,7 @@ static void usock_close(struct ipt_netflow_sock *usock)
2012
2012
2013
2013
ktime_t ktime_get_real (void );
2014
2014
2015
- // return numbers of sends succeded , 0 if none
2015
+ // return numbers of sends succeeded , 0 if none
2016
2016
/* only called in scan worker path */
2017
2017
static void netflow_sendmsg (void * buffer , const int len )
2018
2018
{
@@ -2072,7 +2072,7 @@ static void netflow_sendmsg(void *buffer, const int len)
2072
2072
}
2073
2073
mutex_unlock (& sock_lock );
2074
2074
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 */
2076
2076
NETFLOW_STAT_ADD (pkt_lost , pdu_packets );
2077
2077
NETFLOW_STAT_ADD (traf_lost , pdu_traf );
2078
2078
NETFLOW_STAT_ADD (flow_lost , pdu_flow_records );
@@ -2154,7 +2154,7 @@ static void set_sampler(const unsigned char mode, const unsigned short interval)
2154
2154
printk (KERN_ERR "ipt_NETFLOW: flow sampling is disabled.\n" );
2155
2155
} else {
2156
2156
sampling_ts .first = ktime_get_real ();
2157
- /* no race here, becasue exporting process is stopped */
2157
+ /* no race here, because exporting process is stopped */
2158
2158
samp .v32 = s .v32 ;
2159
2159
sprintf (sampler_buf , "%s:%u" , sampler_mode_string (), interval );
2160
2160
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 = {
2927
2927
static struct base_template template_mpls = {
2928
2928
.types = {
2929
2929
mplsTopLabelTTL ,
2930
- /* do not just add element here, becasue this array
2930
+ /* do not just add element here, because this array
2931
2931
* is truncated in ipt_netflow_init() */
2932
2932
#define MPLS_LABELS_BASE_INDEX 1
2933
2933
MPLS_LABEL_1 ,
@@ -4501,7 +4501,7 @@ static void rate_timer_calc(
4501
4501
dsrch = st -> searched - st -> old_searched ;
4502
4502
dfnd = st -> found - st -> old_found ;
4503
4503
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 */
4505
4505
metrt = (dfnd + dnfnd )? 100 * (dsrch + dfnd + dnfnd ) / (dfnd + dnfnd ) : st -> metric ;
4506
4506
CALC_RATE (st -> metric , metrt , 1 );
4507
4507
st -> old_searched = st -> searched ;
0 commit comments