[or-cvs] r16244: Add network MTU config via cmdline and temporary 1492 defaul (torvm/trunk/build/kamikaze/patches)
coderman at seul.org
coderman at seul.org
Wed Jul 30 06:32:37 UTC 2008
Author: coderman
Date: 2008-07-30 02:32:37 -0400 (Wed, 30 Jul 2008)
New Revision: 16244
Modified:
torvm/trunk/build/kamikaze/patches/002-kamikaze-mod-basefiles.patch
Log:
Add network MTU config via cmdline and temporary 1492 default limit until winpcap 1500 MTU frame truncation issue is resolved.
Modified: torvm/trunk/build/kamikaze/patches/002-kamikaze-mod-basefiles.patch
===================================================================
--- torvm/trunk/build/kamikaze/patches/002-kamikaze-mod-basefiles.patch 2008-07-30 05:59:41 UTC (rev 16243)
+++ torvm/trunk/build/kamikaze/patches/002-kamikaze-mod-basefiles.patch 2008-07-30 06:32:37 UTC (rev 16244)
@@ -970,8 +970,8 @@
-dest ram /tmp
diff -Naur kamikaze-orig/package/base-files/files/etc/preinit kamikaze-mod/package/base-files/files/etc/preinit
--- kamikaze-orig/package/base-files/files/etc/preinit 2008-04-23 16:20:46.084166000 +0000
-+++ kamikaze-mod/package/base-files/files/etc/preinit 2008-07-30 07:52:33.818966786 +0000
-@@ -1,92 +1,159 @@
++++ kamikaze-mod/package/base-files/files/etc/preinit 2008-07-30 08:27:12.020008826 +0000
+@@ -1,92 +1,163 @@
#!/bin/sh
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2008 The Tor Project, Inc.
@@ -1138,9 +1138,11 @@
+ MASK=`echo $ARGS | sed 's/.* MASK=//' | sed 's/ .*//'`
+ GW=`echo $ARGS | sed 's/.* GW=//' | sed 's/ .*//'`
+ MAC=`echo $ARGS | sed 's/.* MAC=//' | sed 's/ .*//'`
++ MTU=`echo $ARGS | sed 's/.* MTU=//' | sed 's/ .*//'`
+ dn "Setting IP $IP / $MASK via $GW ..."
+ ifconfig eth0 hw ether $MAC
+ ifconfig eth0 $IP netmask $MASK up
++ ifconfig eth0 mtu $MTU
+ route add default gw $GW
+ netup=1
+else
@@ -1159,6 +1161,8 @@
+ maxrt=$(expr $maxrt - 1)
+ fi
+ done
++ # XXX MRP enforce MTU under 1500 to work around winpcap issue until resolved
++ ifconfig eth0 mtu 1482
+fi
-echo "- preinit -"
More information about the tor-commits
mailing list