Home
last modified time | relevance | path

Searched refs:udph (Results 1 – 7 of 7) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dfils_hlp.c162 struct udphdr *udph; in fils_dhcp_handler() local
254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2); in fils_dhcp_handler()
264 iph->ip_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos)); in fils_dhcp_handler()
270 udph = wpabuf_put(resp, sizeof(*udph)); in fils_dhcp_handler()
271 udph->uh_sport = htons(DHCP_SERVER_PORT); in fils_dhcp_handler()
272 udph->uh_dport = htons(DHCP_CLIENT_PORT); in fils_dhcp_handler()
273 udph->uh_ulen = htons(sizeof(*udph) + (end - pos)); in fils_dhcp_handler()
274 udph->uh_sum = htons(0x0000); /* TODO: calculate checksum */ in fils_dhcp_handler()
483 const struct udphdr *udph; in fils_process_hlp_udp() local
486 if (len < sizeof(*iph) + sizeof(*udph)) in fils_process_hlp_udp()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dfils_hlp.c162 struct udphdr *udph; in fils_dhcp_handler() local
254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2); in fils_dhcp_handler()
264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos)); in fils_dhcp_handler()
270 udph = wpabuf_put(resp, sizeof(*udph)); in fils_dhcp_handler()
271 udph->uh_sport = htons(DHCP_SERVER_PORT); in fils_dhcp_handler()
272 udph->uh_dport = htons(DHCP_CLIENT_PORT); in fils_dhcp_handler()
273 udph->uh_ulen = htons(sizeof(*udph) + (end - pos)); in fils_dhcp_handler()
274 udph->uh_sum = htons(0x0000); /* TODO: calculate checksum */ in fils_dhcp_handler()
483 const struct udphdr *udph; in fils_process_hlp_udp() local
486 if (len < sizeof(*iph) + sizeof(*udph)) in fils_process_hlp_udp()
[all …]
/third_party/toybox/toys/pending/
Ddhcp.c170 struct udphdr udph; member
660 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) { in read_raw()
673 || packet.udph.dest != htons(DHCPC_CLIENT_PORT) in read_raw()
674 || ntohs(packet.udph.len) != (uint16_t)(bytes - sizeof(packet.iph))) { in read_raw()
689 packet.iph.tot_len = packet.udph.len; in read_raw()
690 if (packet.udph.check != 0 && dhcp_checksum(&packet, bytes) != 0) { in read_raw()
694 memcpy(&state->pdhcp, &packet.dhcp, bytes - (sizeof(packet.iph) + sizeof(packet.udph))); in read_raw()
699 return bytes - sizeof(packet.iph) - sizeof(packet.udph); in read_raw()
749 packet.udph.source = htons(DHCPC_CLIENT_PORT); in send_raw()
750 packet.udph.dest = htons(DHCPC_SERVER_PORT); in send_raw()
[all …]
Ddhcpd.c164 struct udphdr udph; member
170 struct udphdr udph; member
884 packet.udph.source = htons(gconfig.port); //SERVER_PORT in send_packet6()
885 packet.udph.dest = gstate.client_port; //CLIENT_PORT in send_packet6()
886 packet.udph.len = htons(sizeof(dhcp6_raw_t) - sizeof(struct ip6_hdr) - padding); in send_packet6()
887 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = htons(ntohs(packet.udph.len) + 0x11); in send_packet6()
888 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp6_raw_t) - padding); in send_packet6()
890 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = packet.udph.len; in send_packet6()
936 packet.udph.source = htons(gconfig.port);//SERVER_PORT in send_packet()
937 packet.udph.dest = gstate.client_port; //CLIENT_PORT in send_packet()
[all …]
Ddhcp6.c114 struct udphdr udph; member
617 if (ntohs(mymsg->udph.dest) == 546 && in dhcp6_main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Ddhcp.h43 struct udphdr udph; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Ddhcp.h43 struct udphdr udph; member