diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-10-23 22:22:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-10-23 22:22:45 +0000 |
commit | 6e13bdce9dd32ccf457c4c1bd044be63efb569b6 (patch) | |
tree | a158bedf914b3135082f17d011483cbbc95e7af1 /sys/netinet | |
parent | 6f459ae12d184272e7ef7b3f547537bbf501f31a (diff) |
use the correct idiom for NFOO things which come from "foo.h" files
ok dlg
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in_pcb.c | 6 | ||||
-rw-r--r-- | sys/netinet/raw_ip.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index c7339429059..7193c57f97a 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.102 2008/07/29 21:46:27 deraadt Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.103 2008/10/23 22:22:44 deraadt Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -1015,7 +1015,7 @@ in_pcblookup_listen(struct inpcbtable *table, struct in_addr laddr, struct inpcb *inp; u_int16_t lport = lport_arg; -#if NPF +#if NPF > 0 if (m && m->m_pkthdr.pf.flags & PF_TAG_DIVERTED) { struct pf_divert *divert; @@ -1085,7 +1085,7 @@ in6_pcblookup_listen(struct inpcbtable *table, struct in6_addr *laddr, struct inpcb *inp; u_int16_t lport = lport_arg; -#if NPF +#if NPF > 0 if (m && m->m_pkthdr.pf.flags & PF_TAG_DIVERTED) { struct pf_divert *divert; diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index b625773d447..032b83e0a27 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ip.c,v 1.45 2008/06/14 02:17:27 jsing Exp $ */ +/* $OpenBSD: raw_ip.c,v 1.46 2008/10/23 22:22:44 deraadt Exp $ */ /* $NetBSD: raw_ip.c,v 1.25 1996/02/18 18:58:33 christos Exp $ */ /* @@ -134,7 +134,7 @@ rip_input(struct mbuf *m, ...) #endif if (inp->inp_ip.ip_p && inp->inp_ip.ip_p != ip->ip_p) continue; -#if NPF +#if NPF > 0 if (m->m_pkthdr.pf.flags & PF_TAG_DIVERTED) { struct pf_divert *divert; |