Searched refs:udph (Results 1 – 4 of 4) sorted by relevance
243 struct udphdr *udph; in fill_packet() local258 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()
173 struct udphdr udph; member661 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 …]
106 struct udphdr udph; member675 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()
23 struct udphdr udph; member