-/* $OpenBSD: pfvar.h,v 1.405 2014/12/19 13:04:08 reyk Exp $ */
+/* $OpenBSD: pfvar.h,v 1.406 2014/12/23 03:24:08 tedu Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
*/
#ifdef _KERNEL
-#ifdef INET
#ifndef INET6
#define PF_INET_ONLY
#endif /* ! INET6 */
-#endif /* INET */
#ifdef INET6
-#ifndef INET
-#define PF_INET6_ONLY
-#endif /* ! INET */
#endif /* INET6 */
-#ifdef INET
#ifdef INET6
#define PF_INET_INET6
#endif /* INET6 */
-#endif /* INET */
#else
-/* $OpenBSD: ieee80211.c,v 1.42 2014/09/14 14:17:26 jsg Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.43 2014/12/23 03:24:08 tedu Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_priv.h>
-/* $OpenBSD: ieee80211_amrr.c,v 1.7 2011/03/02 08:48:59 fgsch Exp $ */
+/* $OpenBSD: ieee80211_amrr.c,v 1.8 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2006
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_priv.h>
-/* $OpenBSD: ieee80211_crypto.c,v 1.64 2014/11/18 02:37:31 tedu Exp $ */
+/* $OpenBSD: ieee80211_crypto.c,v 1.65 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_media.h>
#include <net/if_arp.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_priv.h>
-/* $OpenBSD: ieee80211_crypto_bip.c,v 1.5 2014/07/12 18:44:22 tedu Exp $ */
+/* $OpenBSD: ieee80211_crypto_bip.c,v 1.6 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_media.h>
#include <net/if_arp.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_crypto.h>
-/* $OpenBSD: ieee80211_crypto_ccmp.c,v 1.14 2014/07/12 18:44:22 tedu Exp $ */
+/* $OpenBSD: ieee80211_crypto_ccmp.c,v 1.15 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_media.h>
#include <net/if_arp.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_crypto.h>
-/* $OpenBSD: ieee80211_crypto_tkip.c,v 1.22 2014/07/12 18:44:22 tedu Exp $ */
+/* $OpenBSD: ieee80211_crypto_tkip.c,v 1.23 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_media.h>
#include <net/if_arp.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_crypto.h>
-/* $OpenBSD: ieee80211_crypto_wep.c,v 1.11 2014/11/18 02:37:31 tedu Exp $ */
+/* $OpenBSD: ieee80211_crypto_wep.c,v 1.12 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_media.h>
#include <net/if_arp.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_crypto.h>
-/* $OpenBSD: ieee80211_input.c,v 1.127 2014/09/14 14:17:26 jsg Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.128 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_priv.h>
-/* $OpenBSD: ieee80211_ioctl.c,v 1.37 2014/09/14 14:17:26 jsg Exp $ */
+/* $OpenBSD: ieee80211_ioctl.c,v 1.38 2014/12/23 03:24:08 tedu Exp $ */
/* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */
/*-
#include <net/if_arp.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_crypto.h>
-/* $OpenBSD: ieee80211_node.c,v 1.85 2014/11/18 02:37:31 tedu Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.86 2014/12/23 03:24:08 tedu Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#if NBRIDGE > 0
#include <net/if_bridge.h>
-/* $OpenBSD: ieee80211_output.c,v 1.92 2014/09/14 14:17:26 jsg Exp $ */
+/* $OpenBSD: ieee80211_output.c,v 1.93 2014/12/23 03:24:08 tedu Exp $ */
/* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */
/*-
#include <net/if_llc.h>
#include <net/bpf.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netinet/ip.h>
#ifdef INET6
#include <netinet/ip6.h>
#endif
-#endif
#if NVLAN > 0
#include <net/if_types.h>
int
ieee80211_classify(struct ieee80211com *ic, struct mbuf *m)
{
-#ifdef INET
struct ether_header *eh;
u_int8_t ds_field;
-#endif
#if NVLAN > 0
if (m->m_flags & M_VLANTAG) /* use VLAN 802.1D user-priority */
return EVL_PRIOFTAG(m->m_pkthdr.ether_vtag);
#endif
-#ifdef INET
eh = mtod(m, struct ether_header *);
if (eh->ether_type == htons(ETHERTYPE_IP)) {
struct ip *ip = (struct ip *)&eh[1];
case IPTOS_PREC_NETCONTROL:
return 7;
}
-#endif /* INET */
return 0; /* default to Best-Effort */
}
-/* $OpenBSD: ieee80211_pae_input.c,v 1.22 2014/11/18 02:37:31 tedu Exp $ */
+/* $OpenBSD: ieee80211_pae_input.c,v 1.23 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2007,2008 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_media.h>
#include <net/if_arp.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_priv.h>
-/* $OpenBSD: ieee80211_pae_output.c,v 1.18 2014/09/14 14:17:26 jsg Exp $ */
+/* $OpenBSD: ieee80211_pae_output.c,v 1.19 2014/12/23 03:24:08 tedu Exp $ */
/*-
* Copyright (c) 2007,2008 Damien Bergamini <damien.bergamini@free.fr>
#include <net/if_llc.h>
#include <net/bpf.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netinet/ip.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_priv.h>
-/* $OpenBSD: ieee80211_proto.c,v 1.49 2014/11/18 02:37:31 tedu Exp $ */
+/* $OpenBSD: ieee80211_proto.c,v 1.50 2014/12/23 03:24:08 tedu Exp $ */
/* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */
/*-
#include <net/bpf.h>
#endif
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_priv.h>
-/* $OpenBSD: ieee80211_regdomain.c,v 1.8 2014/08/08 15:16:39 jasper Exp $ */
+/* $OpenBSD: ieee80211_regdomain.c,v 1.9 2014/12/23 03:24:08 tedu Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org>
#include <net/if_arp.h>
#include <net/if_llc.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_regdomain.h>
-/* $OpenBSD: ieee80211_rssadapt.c,v 1.10 2011/03/02 08:48:59 fgsch Exp $ */
+/* $OpenBSD: ieee80211_rssadapt.c,v 1.11 2014/12/23 03:24:08 tedu Exp $ */
/* $NetBSD: ieee80211_rssadapt.c,v 1.7 2004/05/25 04:33:59 dyoung Exp $ */
/*-
#include <net/if.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_rssadapt.h>
-/* $OpenBSD: ip_ipsp.h,v 1.157 2014/11/25 13:10:03 mpi Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.158 2014/12/23 03:24:08 tedu Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
void ipip_input(struct mbuf *, int, struct ifnet *, int);
int ipip_output(struct mbuf *, struct tdb *, struct mbuf **, int, int);
-#ifdef INET
void ip4_input(struct mbuf *, ...);
-#endif /* INET */
#ifdef INET6
int ip4_input6(struct mbuf **, int *, int);
int ah_output(struct mbuf *, struct tdb *, struct mbuf **, int, int);
int ah_sysctl(int *, u_int, void *, size_t *, void *, size_t);
-#ifdef INET
void ah4_input(struct mbuf *, ...);
void *ah4_ctlinput(int, struct sockaddr *, u_int, void *);
void *udpencap_ctlinput(int, struct sockaddr *, u_int, void *);
-#endif /* INET */
#ifdef INET6
int ah6_input(struct mbuf **, int *, int);
int esp_output(struct mbuf *, struct tdb *, struct mbuf **, int, int);
int esp_sysctl(int *, u_int, void *, size_t *, void *, size_t);
-#ifdef INET
void esp4_input(struct mbuf *, ...);
void *esp4_ctlinput(int, struct sockaddr *, u_int, void *);
-#endif /* INET */
#ifdef INET6
int esp6_input(struct mbuf **, int *, int);
int ipcomp_output(struct mbuf *, struct tdb *, struct mbuf **, int, int);
int ipcomp_sysctl(int *, u_int, void *, size_t *, void *, size_t);
-#ifdef INET
void ipcomp4_input(struct mbuf *, ...);
-#endif /* INET */
#ifdef INET6
int ipcomp6_input(struct mbuf **, int *, int);
-/* $OpenBSD: mpls_input.c,v 1.41 2014/12/05 15:50:04 mpi Exp $ */
+/* $OpenBSD: mpls_input.c,v 1.42 2014/12/23 03:24:08 tedu Exp $ */
/*
* Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org>
#include <net/netisr.h>
#include <net/route.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <netinet/ip_icmp.h>
-#endif
#ifdef INET6
#include <netinet/ip6.h>
-#ifndef INET
-#include <netinet/in.h>
-#endif
#endif /* INET6 */
#include <netmpls/mpls.h>
-/* $OpenBSD: mpls_output.c,v 1.19 2014/12/05 15:50:04 mpi Exp $ */
+/* $OpenBSD: mpls_output.c,v 1.20 2014/12/23 03:24:08 tedu Exp $ */
/*
* Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org>
#include <netmpls/mpls.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/ip.h>
-#endif
#ifdef INET6
#include <netinet/ip6.h>
void
mpls_do_cksum(struct mbuf *m)
{
-#ifdef INET
struct ip *ip;
u_int16_t hlen;
ip->ip_sum = in_cksum(m, hlen);
m->m_pkthdr.csum_flags &= ~M_IPV4_CSUM_OUT;
}
-#endif
}
u_int8_t