Revision 30db6769 kvm-vif-bridge

b/kvm-vif-bridge
19 19
  TABLE=$LINK
20 20
  ip link set $INTERFACE addr $TAP_CONSTANT_MAC up
21 21
  INDEV=$INTERFACE
22
  # DROPDHCPREQCMD="iptables -A FORWARD -i $INTERFACE -p udp --dport 67 -j DROP"
23 22
elif [ "$MODE" = "bridged" ]; then
24 23
  ip link set $INTERFACE up
25 24
  brctl addif $BRIDGE $INTERFACE
26 25
  INDEV=$BRIDGE
27
  # nfdhcpd creates responses with src mac the mac of indec
28
  INDEV_MAC=$(cat /sys/class/net/$INDEV/address)
29
  # DROPDHCPREQCMD="runlocked $RUNLOCKED_OPTS ebtables -A $FROM -p ipv4 --ip-protocol udp --ip-destination-port 67 -j DROP"
30 26
fi
31 27

  
32 28
for tag in $NETWORK_TAGS; do
......
38 34
    try send_garp
39 35
  ;;
40 36
  $NFDHCPD_TAG)
41
    # Drop unicast BOOTP/DHCP packets
42
    # $DROPDHCPREQCMD
43 37
    try setup_nfdhcpd
44 38
  ;;
45 39
  $MAC_FILTERED_TAG)

Also available in: Unified diff