Lines Matching refs:pkt
73 static void dhcp_handler(uchar *pkt, unsigned dest, struct in_addr sip,
118 static int check_reply_packet(uchar *pkt, unsigned dest, unsigned src, in check_reply_packet() argument
121 struct bootp_hdr *bp = (struct bootp_hdr *)pkt; in check_reply_packet()
345 static void bootp_handler(uchar *pkt, unsigned dest, struct in_addr sip, in bootp_handler() argument
353 bp = (struct bootp_hdr *)pkt; in bootp_handler()
356 if (check_reply_packet(pkt, dest, src, len)) in bootp_handler()
699 uchar *pkt, *iphdr; in bootp_request() local
737 pkt = net_tx_packet; in bootp_request()
738 memset((void *)pkt, 0, PKTSIZE); in bootp_request()
740 eth_hdr_size = net_set_ether(pkt, net_bcast_ethaddr, PROT_IP); in bootp_request()
741 pkt += eth_hdr_size; in bootp_request()
752 iphdr = pkt; /* We need this later for net_set_udp_header() */ in bootp_request()
753 pkt += IP_UDP_HDR_SIZE; in bootp_request()
755 bp = (struct bootp_hdr *)pkt; in bootp_request()
955 uchar *pkt, *iphdr; in dhcp_send_request_packet() local
964 pkt = net_tx_packet; in dhcp_send_request_packet()
965 memset((void *)pkt, 0, PKTSIZE); in dhcp_send_request_packet()
967 eth_hdr_size = net_set_ether(pkt, net_bcast_ethaddr, PROT_IP); in dhcp_send_request_packet()
968 pkt += eth_hdr_size; in dhcp_send_request_packet()
970 iphdr = pkt; /* We'll need this later to set proper pkt size */ in dhcp_send_request_packet()
971 pkt += IP_UDP_HDR_SIZE; in dhcp_send_request_packet()
973 bp = (struct bootp_hdr *)pkt; in dhcp_send_request_packet()
1022 static void dhcp_handler(uchar *pkt, unsigned dest, struct in_addr sip, in dhcp_handler() argument
1025 struct bootp_hdr *bp = (struct bootp_hdr *)pkt; in dhcp_handler()
1031 if (check_reply_packet(pkt, dest, src, len)) in dhcp_handler()
1055 efi_net_set_dhcp_ack(pkt, len); in dhcp_handler()