diff --git a/netgraph7/ng_fec.c b/netgraph7/ng_fec.c --- a/netgraph7/ng_fec.c +++ b/netgraph7/ng_fec.c @@ -1053,7 +1053,7 @@ break; #ifdef INET6 case M_FEC_INET6: - port = (ip6->ip6_dst.s6_addr[15] ^ + port = (ip6->ip6_src.s6_addr[15] ^ ip6->ip6_dst.s6_addr[15]) & mask; break; #endif