e82a502
diff -up dhcp-4.0.0/common/lpf.c.anycast dhcp-4.0.0/common/lpf.c
e82a502
--- dhcp-4.0.0/common/lpf.c.anycast	2007-12-29 06:44:46.000000000 -1000
e82a502
+++ dhcp-4.0.0/common/lpf.c	2007-12-29 10:40:11.000000000 -1000
e82a502
@@ -331,6 +331,9 @@ ssize_t send_packet (interface, packet, 
8b41d83
 		return send_fallback (interface, packet, raw,
8b41d83
 				      len, from, to, hto);
8b41d83
 
8b41d83
+	if (hto == NULL && interface->anycast_mac_addr.hlen)
8b41d83
+		hto = &interface->anycast_mac_addr;
8b41d83
+
8b41d83
 	/* Assemble the headers... */
8b41d83
 	assemble_hw_header (interface, (unsigned char *)hh, &hbufp, hto);
8b41d83
 	fudge = hbufp % 4;	/* IP header must be word-aligned. */
e82a502
diff -up dhcp-4.0.0/common/conflex.c.anycast dhcp-4.0.0/common/conflex.c
e82a502
--- dhcp-4.0.0/common/conflex.c.anycast	2007-12-29 06:44:46.000000000 -1000
e82a502
+++ dhcp-4.0.0/common/conflex.c	2007-12-29 10:39:30.000000000 -1000
e82a502
@@ -715,6 +715,8 @@ intern(char *atom, enum dhcp_token dfv) 
8b41d83
 		}
8b41d83
 		if (!strcasecmp (atom + 1, "nd"))
8b41d83
 			return AND;
8b41d83
+		if (!strcasecmp (atom + 1, "nycast-mac"))
8b41d83
+			return ANYCAST_MAC;
8b41d83
 		if (!strcasecmp (atom + 1, "ppend"))
8b41d83
 			return APPEND;
8b41d83
 		if (!strcasecmp (atom + 1, "llow"))
e82a502
diff -up dhcp-4.0.0/includes/dhcpd.h.anycast dhcp-4.0.0/includes/dhcpd.h
e82a502
--- dhcp-4.0.0/includes/dhcpd.h.anycast	2007-12-29 06:44:46.000000000 -1000
e82a502
+++ dhcp-4.0.0/includes/dhcpd.h	2007-12-29 10:42:56.000000000 -1000
e82a502
@@ -1188,6 +1188,7 @@ struct interface_info {
8b41d83
 	int dlpi_sap_length;
8b41d83
 	struct hardware dlpi_broadcast_addr;
8b41d83
 # endif /* DLPI_SEND || DLPI_RECEIVE */
8b41d83
+	struct hardware anycast_mac_addr;
8b41d83
 };
8b41d83
 
8b41d83
 struct hardware_link {
e82a502
diff -up dhcp-4.0.0/includes/dhctoken.h.anycast dhcp-4.0.0/includes/dhctoken.h
e82a502
--- dhcp-4.0.0/includes/dhctoken.h.anycast	2007-12-29 06:44:46.000000000 -1000
e82a502
+++ dhcp-4.0.0/includes/dhctoken.h	2007-12-29 10:44:00.000000000 -1000
e82a502
@@ -346,7 +346,8 @@ enum dhcp_token {
e82a502
 	WHITESPACE = 649,
e82a502
 	TOKEN_ALSO = 650,
e82a502
 	AFTER = 651,
e82a502
-	BOOTP_BROADCAST_ALWAYS = 652
e82a502
+	BOOTP_BROADCAST_ALWAYS = 652,
e82a502
+	ANYCAST_MAC = 653
8b41d83
 };
8b41d83
 
8b41d83
 #define is_identifier(x)	((x) >= FIRST_TOKEN &&	\
e82a502
diff -up dhcp-4.0.0/client/clparse.c.anycast dhcp-4.0.0/client/clparse.c
e82a502
--- dhcp-4.0.0/client/clparse.c.anycast	2007-12-29 06:44:46.000000000 -1000
e82a502
+++ dhcp-4.0.0/client/clparse.c	2007-12-29 10:38:55.000000000 -1000
e82a502
@@ -550,6 +550,17 @@ void parse_client_statement (cfile, ip, 
8b41d83
 		}
8b41d83
 		return;
8b41d83
 
8b41d83
+	      case ANYCAST_MAC:
8b41d83
+		token = next_token (&val, (unsigned *)0, cfile);
8b41d83
+		if (ip) {
8b41d83
+			parse_hardware_param (cfile, &ip -> anycast_mac_addr);
8b41d83
+		} else {
8b41d83
+			parse_warn (cfile, "anycast mac address parameter %s",
e82a502
+			            "not allowed here.");
8b41d83
+			skip_to_semi (cfile);
8b41d83
+		}
8b41d83
+		return;
8b41d83
+
8b41d83
 	      case REQUEST:
8b41d83
 		token = next_token (&val, (unsigned *)0, cfile);
8b41d83
 		if (config -> requested_options == default_requested_options)