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

  /external/wpa_supplicant_8/src/ap/
dhcp_snoop.c 23 struct udphdr udph; member in struct:bootp_pkt
  /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 173 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 106 struct udphdr udph; member in struct:dhcp_raw_s
675 packet.udph.source = htons(67);//SERVER_PORT
676 packet.udph.dest = htons(68); //CLIENT_PORT
677 packet.udph.len = htons(sizeof(dhcp_raw_t) - sizeof(struct iphdr) - padding);
678 packet.iph.tot_len = packet.udph.len;
679 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding);
    [all...]

Completed in 320 milliseconds