Revision 838c1835

b/common.sh
17 17
function clear_routed_setup_ipv6 {
18 18

  
19 19
  while ip -6 rule del dev $INTERFACE; do :; done
20

  
21
}
22

  
23
function delete_neighbor_proxy {
24

  
20 25
  get_uplink $LINK "-6"
21 26
  get_eui64 $MAC $SUBNET6
22 27
  $SNF_NETWORK_LOG $0 "ip -6 neigh del proxy $EUI64 dev $UPLINK"
......
24 29

  
25 30
}
26 31

  
27

  
28 32
function clear_routed_setup_firewall {
29 33

  
30 34
  for oldchain in protected unprotected limited; do
......
71 75
	# Enable proxy ARP
72 76
	echo 1 > /proc/sys/net/ipv4/conf/$INTERFACE/proxy_arp
73 77

  
78
}
79

  
80
function send_garp {
81

  
74 82
  # Send GARP from host to upstream router
75 83
  get_uplink $TABLE
76 84
  echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
b/kvm-ifdown
33 33
    try clear_routed_setup_ipv4
34 34
    try clear_routed_setup_ipv6
35 35
    try clear_routed_setup_firewall
36
    try delete_neighbor_proxy
36 37
  ;;
37 38
  $NFDHCPD_TAG)
38 39
    # Drop unicast BOOTP/DHCP packets
b/kvm-ifup
37 37
    try routed_setup_ipv4
38 38
    try routed_setup_ipv6
39 39
    try routed_setup_firewall
40
    try send_garp
40 41
  ;;
41 42
  $NFDHCPD_TAG)
42 43
    # Drop unicast BOOTP/DHCP packets
b/vif-custom
52 52
    try routed_setup_ipv4
53 53
    try routed_setup_ipv6
54 54
    try routed_setup_firewall
55
    try send_garp
55 56
  ;;
56 57
  $NFDHCPD_TAG)
57 58
    # Drop unicast BOOTP/DHCP packets

Also available in: Unified diff