Lines Matching refs:udph
164 struct udphdr udph; member
170 struct udphdr udph; member
884 packet.udph.source = htons(gconfig.port); //SERVER_PORT in send_packet6()
885 packet.udph.dest = gstate.client_port; //CLIENT_PORT in send_packet6()
886 packet.udph.len = htons(sizeof(dhcp6_raw_t) - sizeof(struct ip6_hdr) - padding); in send_packet6()
887 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = htons(ntohs(packet.udph.len) + 0x11); in send_packet6()
888 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp6_raw_t) - padding); in send_packet6()
890 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = packet.udph.len; in send_packet6()
936 packet.udph.source = htons(gconfig.port);//SERVER_PORT in send_packet()
937 packet.udph.dest = gstate.client_port; //CLIENT_PORT in send_packet()
938 packet.udph.len = htons(sizeof(dhcp_raw_t) - sizeof(struct iphdr) - padding); in send_packet()
939 packet.iph.tot_len = packet.udph.len; in send_packet()
940 packet.udph.check = dhcp_checksum(&packet, sizeof(dhcp_raw_t) - padding); in send_packet()