Searched defs:udph (Results 1 - 3 of 3) sorted by relevance

/osnet-11/usr/src/grub/grub2/grub-core/net/
H A Dudp.c114 struct udphdr *udph; local
117 COMPILE_TIME_ASSERT (GRUB_NET_UDP_HEADER_SIZE == sizeof (*udph));
119 err = grub_netbuff_push (nb, sizeof (*udph));
123 udph = (struct udphdr *) nb->data;
124 udph->src = grub_cpu_to_be16 (socket->in_port);
125 udph->dst = grub_cpu_to_be16 (socket->out_port);
127 udph->chksum = 0;
128 udph->len = grub_cpu_to_be16 (nb->tail - nb->data);
130 udph->chksum = grub_net_ip_transport_checksum (nb, GRUB_NET_IP_UDP,
144 struct udphdr *udph; local
[all...]
H A Dbootp.c567 struct udphdr *udph; local
608 grub_netbuff_push (nb, sizeof (*udph));
610 udph = (struct udphdr *) nb->data;
611 udph->src = grub_cpu_to_be16 (68);
612 udph->dst = grub_cpu_to_be16 (67);
613 udph->chksum = 0;
614 udph->len = grub_cpu_to_be16 (nb->tail - nb->data);
621 udph->chksum = grub_net_ip_transport_checksum (nb, GRUB_NET_IP_UDP,
H A Dip.c237 struct udphdr *udph; local
238 udph = (struct udphdr *) nb->data;
239 if (proto == GRUB_NET_IP_UDP && grub_be_to_cpu16 (udph->dst) == 68)
246 if (udph->chksum)
249 chk = udph->chksum;
250 udph->chksum = 0;
264 udph->chksum = chk;
267 err = grub_netbuff_pull (nb, sizeof (*udph));

Completed in 18 milliseconds