I hope my submission is correct and not mangled by evolution. I'm trying to 
follow SubmittingPatches at wiki :)




Mikrotik has their own GRE flavor to provide stateless ethernet tunnel. 
I wrote userspace implementation, to make integration of Mikrotik with 
OpenWRT easier. Tested on big/little endian platforms, normal linux, and 
OpenWRT ar71xx.

Signed-off-by: Denys Fedoryshchenko <denys at wbc.net.sa>

---



Index: net/linux-eoip/Makefile
===================================================================
--- net/linux-eoip/Makefile     (revision 0)
+++ net/linux-eoip/Makefile     (revision 0)
@@ -0,0 +1,52 @@
+#
+# Copyright (C) 2006-2012 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=linux-eoip
+PKG_VERSION:=0.4
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
+PKG_SOURCE_URL:=http://linux-eoip.googlecode.com/files/
+PKG_MD5SUM:=6f59d7cc2979940f9dcccae9fd54ed84
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/linux-eoip/Default
+  TITLE:=Mikrotik-compatible userspace EoIP tunnel
+  URL:=http://code.google.com/p/linux-eoip/
+endef
+
+define Package/linux-eoip
+  $(call Package/linux-eoip/Default)
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=+kmod-tun +libpthread +liblzo
+  TITLE+= (command line)
+endef
+
+define Package/linux-eoip/description
+  linux-eoip can create ethernet tunnels compatible with Mikrotik EoIP tunnel.
+  At current moment it is easiest way to create stateless tunnel with Mikrotik.
+endef
+
+TARGET_CFLAGS += -std=gnu99
+
+CONFIGURE_ARGS += \
+       --with-kernel="$(LINUX_DIR)" \
+       --with-zlib="$(STAGING_DIR)/usr" \
+       --with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
+
+define Package/linux-eoip/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eoip $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,linux-eoip))
 


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to