/* * Network configuration layer (Linux) * * Copyright (C) 2010, Broadcom Corporation. All Rights Reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * $Id: netconf_linux.h,v 1.13 2008/10/02 02:38:56 Exp $ */ #ifndef _netconf_linux_h_ #define _netconf_linux_h_ #include /* Debug malloc() */ #ifdef DMALLOC #include #endif /* DMALLOC */ /* iptables definitions */ #include #include #include #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) ) #include #else #include #include #endif #define ETH_ALEN ETHER_ADDR_LEN #include #include #include #include #include #include /* ipt_entry alignment attribute */ #define IPT_ALIGNED ((aligned (__alignof__ (struct ipt_entry)))) /* TCP flags */ #define TH_FIN 0x01 #define TH_SYN 0x02 #define TH_RST 0x04 #define TH_PUSH 0x08 #define TH_ACK 0x10 #define TH_URG 0x20 #endif /* _netconf_linux_h_ */