summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2021-05-30 10:11:08 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2021-09-07 21:02:57 +0000
commit36854c4e1e862e437584e2c0bc363eb475dd86ee (patch)
tree8368c0456ece39109b0078c59b204a62f1a1ddd2 /sys
parenta27813e1301d4beeb24370138ce49e254caf80ce (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/netflow/netflow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c
index e9fb83773a4b..f7f0648b296f 100644
--- a/sys/netgraph/netflow/netflow.c
+++ b/sys/netgraph/netflow/netflow.c
@@ -360,7 +360,7 @@ hash_insert(priv_p priv, struct flow_hash_entry *hsh, struct flow_rec *r,
rt_get_inet_prefix_plen(rt, &addr, &plen, &scopeid);
fle->f.fle_o_ifx = nh->nh_ifp->if_index;
- if (nh->gw_sa.sa_len == AF_INET)
+ if (nh->gw_sa.sa_family == AF_INET)
fle->f.next_hop = nh->gw4_sa.sin_addr;
fle->f.dst_mask = plen;
}
@@ -434,7 +434,7 @@ hash6_insert(priv_p priv, struct flow_hash_entry *hsh6, struct flow6_rec *r,
rt_get_inet6_prefix_plen(rt, &addr, &plen, &scopeid);
fle6->f.fle_o_ifx = nh->nh_ifp->if_index;
- if (nh->gw_sa.sa_len == AF_INET6)
+ if (nh->gw_sa.sa_family == AF_INET6)
fle6->f.n.next_hop6 = nh->gw6_sa.sin6_addr;
fle6->f.dst_mask = plen;
}