Home
last modified time | relevance | path

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

/external/iputils/Modules/
Dpg3.c243 struct udphdr *udph; in fill_packet() local
258 udph = (struct udphdr*)skb_put(skb, sizeof( struct udphdr)); in fill_packet()
267 udph->source= htons(9); in fill_packet()
268 udph->dest= htons(9); in fill_packet()
269 udph->len= htons(datalen+8); /* DATA + udphdr */ in fill_packet()
270 udph->check=0; /* No checksum */ in fill_packet()
/external/toybox/toys/pending/
Ddhcp.c173 struct udphdr udph; member
661 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) { in read_raw()
674 || packet.udph.dest != htons(DHCPC_CLIENT_PORT) in read_raw()
675 || ntohs(packet.udph.len) != (uint16_t)(bytes - sizeof(packet.iph))) { in read_raw()
687 packet.iph.tot_len = packet.udph.len; in read_raw()
688 check = packet.udph.check; in read_raw()
689 packet.udph.check = 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()
[all …]
Ddhcpd.c106 struct udphdr udph; member
675 packet.udph.source = htons(67);//SERVER_PORT in send_packet()
676 packet.udph.dest = htons(68); //CLIENT_PORT in send_packet()
677 packet.udph.len = htons(sizeof(dhcp_raw_t) - sizeof(struct iphdr) - padding); in send_packet()
678 packet.iph.tot_len = packet.udph.len; in send_packet()
679 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding); in send_packet()
/external/wpa_supplicant_8/src/ap/
Ddhcp_snoop.c23 struct udphdr udph; member