diff options
author | 2002-06-07 18:45:59 +0000 | |
---|---|---|
committer | 2002-06-07 18:45:59 +0000 | |
commit | c79134e9e1a3383a01ca064da0ee314c98c16cd2 (patch) | |
tree | 0db72e4d62c7addb41b8a0ba0eb8b4ca7e4cb66f | |
parent | no more set_progname (diff) | |
download | wireguard-openbsd-c79134e9e1a3383a01ca064da0ee314c98c16cd2.tar.xz wireguard-openbsd-c79134e9e1a3383a01ca064da0ee314c98c16cd2.zip |
sync behaviour about DF bit between ip_output()/tcp_response()
and pf_send_reset() while sending a RST
ok dhartmei@, itojun@, frantzen@
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 6c56439bdc4..9b4ed90613b 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.213 2002/06/01 04:06:47 hugh Exp $ */ +/* $OpenBSD: pf.c,v 1.214 2002/06/07 18:45:59 pb Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2841,7 +2841,7 @@ pf_send_reset(int off, struct tcphdr *th, struct pf_pdesc *pd, int af) h2->ip_ttl = ip_defttl; h2->ip_sum = 0; h2->ip_len = len; - h2->ip_off = 0; + h2->ip_off = ip_mtudisc ? IP_DF : 0; ip_output(m, NULL, NULL, 0, NULL, NULL); break; #endif /* INET */ |