From eb0b66a057125505857c226a1236600593702d7b Mon Sep 17 00:00:00 2001 From: Daniel Hartmeier Date: Sat, 13 Oct 2001 23:07:20 +0000 Subject: Patch from Ryan McBride, fixes IPv6 return-rst problem, found by Todd Fries. ok deraadt@ --- sys/net/pf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/net/pf.c') diff --git a/sys/net/pf.c b/sys/net/pf.c index 70a630b0bc6..37ef9147741 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.161 2001/10/02 08:44:21 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.162 2001/10/13 23:07:19 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2415,6 +2415,7 @@ pf_send_reset(int off, struct tcphdr *th, struct pf_pdesc *pd, int af) th2->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr), sizeof(*th)); + h2_6->ip6_vfc |= IPV6_VERSION; h2_6->ip6_hlim = 128; ip6_output(m, NULL, NULL, 0, NULL, NULL); -- cgit v1.2.3