summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2001-06-27 16:07:17 +0000
committerNiels Provos <provos@cvs.openbsd.org>2001-06-27 16:07:17 +0000
commit8aa7ea865886e67e63320cc8e95158726c3de7bf (patch)
treeae447058962ef359e090f3d891da6207151317f8 /sys/net/pf.c
parentbd17eb5492a989b04b9c8fa7de5928688810f05d (diff)
use proper icmp define
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 8b62c34a703..62731592d6d 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.77 2001/06/27 10:31:51 kjell Exp $ */
+/* $OpenBSD: pf.c,v 1.78 2001/06/27 16:07:16 provos Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -1533,7 +1533,7 @@ pf_test_icmp(int direction, struct ifnet *ifp, struct mbuf *m,
struct pf_state *s;
len = h->ip_len - off - 8;
- id = ih->icmp_hun.ih_idseq.icd_id;
+ id = ih->icmp_id;
s = pool_get(&pf_state_pl, PR_NOWAIT);
if (s == NULL) {
return (PF_DROP);
@@ -1859,9 +1859,9 @@ pf_test_state_icmp(int direction, struct ifnet *ifp, struct mbuf *m,
key.proto = IPPROTO_ICMP;
key.addr[0] = h->ip_src.s_addr;
- key.port[0] = ih->icmp_hun.ih_idseq.icd_id;
+ key.port[0] = ih->icmp_id;
key.addr[1] = h->ip_dst.s_addr;
- key.port[1] = ih->icmp_hun.ih_idseq.icd_id;
+ key.port[1] = ih->icmp_id;
s = find_state((direction == PF_IN) ? tree_ext_gwy :
tree_lan_ext, &key);