Searched refs:udph (Results 1 – 7 of 7) sorted by relevance
162 struct udphdr *udph; in fils_dhcp_handler() local254 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() local486 if (len < sizeof(*iph) + sizeof(*udph)) in fils_process_hlp_udp()[all …]
162 struct udphdr *udph; in fils_dhcp_handler() local254 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() local486 if (len < sizeof(*iph) + sizeof(*udph)) in fils_process_hlp_udp()[all …]
170 struct udphdr udph; member660 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 …]
164 struct udphdr udph; member170 struct udphdr udph; member884 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 …]
114 struct udphdr udph; member617 if (ntohs(mymsg->udph.dest) == 546 && in dhcp6_main()
43 struct udphdr udph; member