diff --git a/share/man/man4/ng_car.4 b/share/man/man4/ng_car.4 index cb1459fe6987..f3a01b6880e1 100644 --- a/share/man/man4/ng_car.4 +++ b/share/man/man4/ng_car.4 @@ -163,7 +163,7 @@ Return node statistics as .Bd -literal struct ng_car_hookstats { uint64_t passed_pkts; /* Counter for passed packets */ - uint64_t droped_pkts; /* Counter for dropped packets */ + uint64_t dropped_pkts; /* Counter for dropped packets */ uint64_t green_pkts; /* Counter for green packets */ uint64_t yellow_pkts; /* Counter for yellow packets */ uint64_t red_pkts; /* Counter for red packets */ diff --git a/sys/netgraph/ng_car.c b/sys/netgraph/ng_car.c index 897576349b22..babbbb151820 100644 --- a/sys/netgraph/ng_car.c +++ b/sys/netgraph/ng_car.c @@ -286,7 +286,7 @@ ng_car_rcvdata(hook_p hook, item_p item ) default: \ /* Drop packet and return. */ \ NG_FREE_ITEM(item); \ - ++hinfo->stats.droped_pkts; \ + ++hinfo->stats.dropped_pkts; \ return (0); \ } \ } while (0) @@ -730,7 +730,7 @@ ng_car_enqueue(struct hookinfo *hinfo, item_p item) (hinfo->te + len >= NG_CAR_QUEUE_SIZE)) { /* Drop packet. */ ++hinfo->stats.red_pkts; - ++hinfo->stats.droped_pkts; + ++hinfo->stats.dropped_pkts; NG_FREE_M(m); hinfo->te = 0; diff --git a/sys/netgraph/ng_car.h b/sys/netgraph/ng_car.h index 7ca72ba929cc..7f07f87e52b8 100644 --- a/sys/netgraph/ng_car.h +++ b/sys/netgraph/ng_car.h @@ -42,7 +42,7 @@ /* Per hook statistics counters */ struct ng_car_hookstats { u_int64_t passed_pkts; /* Counter for passed packets */ - u_int64_t droped_pkts; /* Counter for droped packets */ + u_int64_t dropped_pkts; /* Counter for dropped packets */ u_int64_t green_pkts; /* Counter for green packets */ u_int64_t yellow_pkts; /* Counter for yellow packets */ u_int64_t red_pkts; /* Counter for red packets */ @@ -50,7 +50,7 @@ struct ng_car_hookstats { }; #define NG_CAR_HOOKSTATS { \ { "passed", &ng_parse_uint64_type }, \ - { "droped", &ng_parse_uint64_type }, \ + { "dropped", &ng_parse_uint64_type }, \ { "green", &ng_parse_uint64_type }, \ { "yellow", &ng_parse_uint64_type }, \ { "red", &ng_parse_uint64_type }, \