aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/netflow
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
commitad490a5aeb8ef34ee0eb64936dec47ad0bea005d (patch)
tree8e999cb11b7be3455a186e22a0c81bc0436f988d /sys/netgraph/netflow
parenta11819ca1f9b7b0352aef023ca0cfb52cfb8639b (diff)
downloadsrc-ad490a5aeb8ef34ee0eb64936dec47ad0bea005d.tar.gz
src-ad490a5aeb8ef34ee0eb64936dec47ad0bea005d.zip
ng_netflow: Remove unused variable.
Diffstat (limited to 'sys/netgraph/netflow')
-rw-r--r--sys/netgraph/netflow/netflow.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c
index 5c0358d9b67a..9c58674779ae 100644
--- a/sys/netgraph/netflow/netflow.c
+++ b/sys/netgraph/netflow/netflow.c
@@ -660,7 +660,6 @@ ng_netflow_flow_add(priv_p priv, fib_export_p fe, struct ip *ip,
struct flow_rec r;
int hlen, plen;
int error = 0;
- uint16_t eproto;
uint8_t tcp_flags = 0;
bzero(&r, sizeof(r));
@@ -672,7 +671,6 @@ ng_netflow_flow_add(priv_p priv, fib_export_p fe, struct ip *ip,
if (hlen < sizeof(struct ip))
return (EINVAL);
- eproto = ETHERTYPE_IP;
/* Assume L4 template by default */
r.flow_type = NETFLOW_V9_FLOW_V4_L4;