Home | History | Annotate | Download | only in pending

Lines Matching defs:udph

170   struct udphdr udph;
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);
750 packet.udph.dest = htons(DHCPC_SERVER_PORT);
751 packet.udph.len = htons(sizeof(dhcp_raw_t) - sizeof(struct iphdr) - padding);
752 packet.iph.tot_len = packet.udph.len;
753 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding);