[Ultrapossum-cvs 956] demo/uml 1.10,1.11,uml-run

Back to archive index

Masato Taruishi taru****@users*****
2004年 10月 20日 (水) 00:35:20 JST


===================================================================
RCS file: demo/uml/uml-run,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- demo/uml/uml-run	2004/10/19 11:34:42	1.10
+++ demo/uml/uml-run	2004/10/19 15:35:20	1.11
@@ -39,7 +39,9 @@
   iptables -t nat -A POSTROUTING -s $net -d ! $net -j MASQUERADE
 else
   echo 1 > "/proc/sys/net/ipv4/conf/$host_if/proxy_arp"
-  arp -Ds $uml $host_if pub
+  for if in `cat /proc/net/dev | grep eth | cut -d: -f1 | tr -d ' '`; do
+    arp -Ds $uml $if pub
+  done
 fi
 echo 1 > /proc/sys/net/ipv4/ip_forward
 



Ultrapossum-cvs メーリングリストの案内
Back to archive index