/************************************************************************* * * ivi_xmit.h : * * This file is the header file for the 'ivi_xmit.c' file. * * Copyright (C) 2013 CERNET Network Center * All rights reserved. * * Design and coding: * Xing Li * Congxiao Bao * Guoliang Han * Yuncheng Zhu * Wentao Shang * * * Contributions: * * This file is part of MAP-T/MAP-E Kernel Module. * * Permission to use, copy, modify, and 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. * * You should have received a copy of the GNU General Public License * along with MAP-T/MAP-E Kernel Module. If not, see * . * * For more versions, please send an email to to * obtain an password to access the svn server. * * LIC: GPLv2 * ************************************************************************/ #ifndef IVI_XMIT_H #define IVI_XMIT_H #ifdef __KERNEL__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "ivi_config.h" #include "ivi_rule.h" #include "ivi_rule6.h" #include "ivi_map.h" #if 0 #include "ivi_map_tcp.h" #endif #include "ivi_nf.h" extern __be32 v4address; extern __be32 v4mask; extern __be32 v4publicaddr; extern __be32 v4publicmask; extern __u8 v6prefix[16]; extern __be32 v6prefixlen; extern u8 ivi_mode; extern u8 hgw_fmt; extern u8 hgw_transport; extern u16 mss_limit; extern int ivi_v4v6_xmit(struct sk_buff *skb, unsigned int mtu); extern int ivi_v6v4_xmit(struct sk_buff *skb); extern int ivi_v4_dev(struct net_device *dev); extern int ivi_v6_dev(struct net_device *dev); #endif /* __KERNEL__ */ #endif /* IVI_XMIT_H */