+ tx_if = args.get_arg('tx_if')
+ rx_if = args.get_arg('rx_if')
+
+ tx_src_ip = "0.0.0.0"
+ tx_dst_ip = "255.255.255.255"
+
+ server_ip = args.get_arg('server_ip')
+ client_ip = args.get_arg('client_ip')
+ proxy_ip = args.get_arg('proxy_ip')
+ client_mac = args.get_arg('client_mac')
+ server_mac = args.get_arg('server_mac')
+
+ # DHCP DISCOVER
+ option_82 = dhcp_discover(tx_if, rx_if, tx_src_ip, tx_dst_ip, server_ip,
+ proxy_ip, client_mac)
+
+ # DHCP OFFER
+ dhcp_offer(tx_if, rx_if, tx_dst_ip, server_ip, proxy_ip, client_ip,
+ server_mac, option_82)
+
+ # DHCP REQUEST
+ dhcp_request(tx_if, rx_if, tx_src_ip, tx_dst_ip, server_ip, proxy_ip,
+ client_ip, client_mac)
+
+ # DHCP ACK
+ dhcp_ack(tx_if, rx_if, tx_dst_ip, server_ip, proxy_ip, client_ip,
+ server_mac, option_82)