HomeSort by relevance Sort by last modified time
    Searched refs:udph (Results 1 - 7 of 7) sorted by null

  /external/wpa_supplicant_8/src/ap/
fils_hlp.c 162 struct udphdr *udph; local
254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2);
264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
269 udph = wpabuf_put(resp, sizeof(*udph));
270 udph->uh_sport = htons(DHCP_SERVER_PORT);
271 udph->uh_dport = htons(DHCP_CLIENT_PORT);
272 udph->len = htons(sizeof(*udph) + (end - pos));
273 udph->check = htons(0x0000); /* TODO: calculate checksum *
478 const struct udphdr *udph; local
    [all...]
  /external/linux-kselftest/tools/testing/selftests/networking/timestamping/
txtimestamp.c 337 struct udphdr *udph; local
354 udph = (void *) buf + off;
355 udph->source = ntohs(9000); /* random spoof */
356 udph->dest = ntohs(dest_port);
357 udph->len = ntohs(sizeof(*udph) + cfg_payload_len);
358 udph->check = 0; /* not allowed for IPv6 */
  /external/iputils/Modules/
pg3.c 243 struct udphdr *udph; local
258 udph = (struct udphdr*)skb_put(skb, sizeof( struct udphdr));
263 datalen = pkt_size-14-20-8; /* Eth + IPh + UDPh */
267 udph->source= htons(9);
268 udph->dest= htons(9);
269 udph->len= htons(datalen+8); /* DATA + udphdr */
270 udph->check=0; /* No checksum */
  /external/toybox/toys/pending/
dhcp.c 170 struct udphdr udph; member in struct:dhcp_raw_s
661 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) {
674 || packet.udph.dest != htons(DHCPC_CLIENT_PORT)
675 || ntohs(packet.udph.len) != (uint16_t)(bytes - sizeof(packet.iph))) {
687 packet.iph.tot_len = packet.udph.len;
688 check = packet.udph.check;
689 packet.udph.check = 0;
694 memcpy(&state->pdhcp, &packet.dhcp, bytes - (sizeof(packet.iph) + sizeof(packet.udph)));
699 return bytes - sizeof(packet.iph) - sizeof(packet.udph);
749 packet.udph.source = htons(DHCPC_CLIENT_PORT)
    [all...]
dhcpd.c 164 struct udphdr udph; member in struct:dhcp_raw_s
170 struct udphdr udph; member in struct:dhcp6_raw_s
884 packet.udph.source = htons(gconfig.port); //SERVER_PORT
885 packet.udph.dest = gstate.client_port; //CLIENT_PORT
886 packet.udph.len = htons(sizeof(dhcp6_raw_t) - sizeof(struct ip6_hdr) - padding);
887 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = htons(ntohs(packet.udph.len) + 0x11);
888 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp6_raw_t) - padding);
890 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = packet.udph.len;
936 packet.udph.source = htons(gconfig.port);//SERVER_PORT
937 packet.udph.dest = gstate.client_port; //CLIENT_POR
    [all...]
dhcp6.c 114 struct udphdr udph; member in struct:dhcp6_raw_s
623 if (ntohs(mymsg->udph.dest) == 546 &&
  /external/wpa_supplicant_8/src/common/
dhcp.h 37 struct udphdr udph; member in struct:bootp_pkt

Completed in 3969 milliseconds