def request_send(): data=dhcp_request.request(src_eth, ip_request, xid, magic_cookie) eth_header=eth_layer.eth(des_eth, src_eth) ip_header=ip_layer.ip(ip_src, ip_des, data) udp_header=udp_layer.udp(ip_src, ip_des, data) packet=eth_header+ip_header+udp_header+data rawSocket.send(packet)
def request_send(): data = dhcp_request.request(src_eth, ip_request, xid, magic_cookie) eth_header = eth_layer.eth(des_eth, src_eth) ip_header = ip_layer.ip(ip_src, ip_des, data) udp_header = udp_layer.udp(ip_src, ip_des, data) packet = eth_header + ip_header + udp_header + data rawSocket.send(packet)