mirror of
http://git.openwrt.org/packages.git
synced 2025-01-08 11:57:34 +08:00
siit: moved to github
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@46327 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c74c8e9491
commit
b7e31a4231
@ -1,40 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=siit
|
||||
PKG_VERSION:=1.1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define KernelPackage/siit
|
||||
SUBMENU:=Network Devices
|
||||
TITLE:=Stateless IP ICMP Translation Algorithm
|
||||
DEPENDS:= @(!(TARGET_ps3||TARGET_pxcab)||BROKEN)
|
||||
FILES:=$(PKG_BUILD_DIR)/siit.ko
|
||||
AUTOLOAD:=$(call AutoLoad,50,siit)
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-defaults.mk
|
||||
|
||||
define KernelPackage/siit/description
|
||||
Stateless IP ICMP Translation Algorithm
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
cp src/Makefile src/siit.h src/siit.c $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)" modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,siit))
|
@ -1,5 +0,0 @@
|
||||
obj-m := siit.o
|
||||
ifeq ($(MAKING_MODULES),1)
|
||||
-include $(TOPDIR)/Rules.make
|
||||
endif
|
||||
|
1425
net/siit/src/siit.c
1425
net/siit/src/siit.c
File diff suppressed because it is too large
Load Diff
@ -1,61 +0,0 @@
|
||||
/*
|
||||
* siit.h -- definitions for the SIIT module
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
|
||||
/* SIIT_ETH control the name of SIIT interface:
|
||||
* 0 - interface name is siit0,
|
||||
* 1 - interface name is ethX.
|
||||
*/
|
||||
#define SIIT_ETH 0
|
||||
|
||||
#define BUFF_SIZE 4096
|
||||
#define FRAG_BUFF_SIZE 1232 /* IPv6 max fragment size without IPv6 header
|
||||
* to fragmanet IPv4 if result IPv6 packet will be > 1280
|
||||
*/
|
||||
|
||||
#define TRANSLATED_PREFIX 0x0000ffff /* third byte in IPv4-translated addr prefix */
|
||||
#define MAPPED_PREFIX 0x0000ffff /* third byte in IPv4-mapped addr prefix */
|
||||
|
||||
#define IP4_IP6_HDR_DIFF 20 /* diffirence between IPv4 and IPv6 headers */
|
||||
#define IP6_FRAGMENT_SIZE 8 /* size of Fragment Header */
|
||||
|
||||
/* IPv6 header fields masks */
|
||||
#define IP6F_OFF_MASK 0xfff8 /* mask out offset from frag_off */
|
||||
#define IP6F_RESERVED_MASK 0x0006 /* reserved bits in frag_off */
|
||||
#define IP6F_MORE_FRAG 0x0001 /* more-fragments flag */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Macros to help debugging
|
||||
*/
|
||||
|
||||
#undef PDEBUG /* undef it, just in case */
|
||||
#ifdef SIIT_DEBUG
|
||||
# ifdef __KERNEL__
|
||||
/* This one if debugging is on, and kernel space */
|
||||
# define PDEBUG(fmt, args...) printk(KERN_DEBUG "siit: " fmt, ## args)
|
||||
# else
|
||||
/* This one for user space */
|
||||
# define PDEBUG(fmt, args...) fprintf(stderr, fmt, ## args)
|
||||
# endif
|
||||
#else
|
||||
# define PDEBUG(fmt, args...) /* not debugging: nothing */
|
||||
#endif
|
||||
|
||||
#undef PDEBUGG
|
||||
#define PDEBUGG(fmt, args...)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user