diff options
author | 2014-11-16 11:58:14 +0000 | |
---|---|---|
committer | 2014-11-16 11:58:14 +0000 | |
commit | 363b5eb1ae22736118bd3bf6829c2821f135ed5e (patch) | |
tree | c508bef23c7dcdd0b99bd400e157484ad4060f41 | |
parent | Allow the driver to be able to retrieve the MAC address from the ROM (diff) | |
download | wireguard-openbsd-363b5eb1ae22736118bd3bf6829c2821f135ed5e.tar.xz wireguard-openbsd-363b5eb1ae22736118bd3bf6829c2821f135ed5e.zip |
mix the rdomain (rtable?) into the hash for tcp iss generation.
ok phessler@ tedu@
-rw-r--r-- | sys/net/pf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 59513f9cd23..40d9a8e88e2 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.891 2014/11/11 11:37:05 mikeb Exp $ */ +/* $OpenBSD: pf.c,v 1.892 2014/11/16 11:58:14 dlg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -3043,6 +3043,7 @@ pf_tcp_iss(struct pf_pdesc *pd) } ctx = pf_tcp_secret_ctx; + MD5Update(&ctx, (char *)&pd->rdomain, sizeof(pd->rdomain)); MD5Update(&ctx, (char *)&pd->hdr.tcp->th_sport, sizeof(u_short)); MD5Update(&ctx, (char *)&pd->hdr.tcp->th_dport, sizeof(u_short)); switch (pd->af) { |