@@ -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
20132013ktime_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 */
20172017static 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 = {
29272927static 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