Small changes in if* scripts
[snf-network] / vif-custom
index 40b23ec..4e9fd73 100755 (executable)
@@ -41,7 +41,9 @@ elif [ "$MODE" = "bridged" ]; then
   success
   INDEV=$BRIDGE
   try init_ebtables
-  DROPDHCPREQCMD="ebtables -A $FROM -p ipv4 --ip-protocol udp --ip-destination-port 67 -j DROP"
+  # nfdhcpd creates responses with src mac the mac of indec
+  INDEV_MAC=$(cat /sys/class/net/$INDEV/address)
+  DROPDHCPREQCMD="runlocked $RUNLOCKED_OPTS ebtables -A $FROM -p ipv4 --ip-protocol udp --ip-destination-port 67 -j DROP"
 fi
 
 
@@ -51,6 +53,7 @@ for tag in $NETWORK_TAGS; do
     try routed_setup_ipv4
     try routed_setup_ipv6
     try routed_setup_firewall
+    try send_garp
   ;;
   $NFDHCPD_TAG)
     # Drop unicast BOOTP/DHCP packets