Searched refs:nb2 (Results 1 - 3 of 3) sorted by relevance
/osnet-11/usr/src/grub/grub2/grub-core/net/ |
H A D | http.c | 266 struct grub_net_buff *nb2; local 267 nb2 = grub_netbuff_alloc (data->chunk_rem); 268 if (!nb2) 270 grub_netbuff_put (nb2, data->chunk_rem); 271 grub_memcpy (nb2->data, nb->data, data->chunk_rem); 272 grub_net_put_packet (&file->device->net->packs, nb2);
|
H A D | ip.c | 140 struct grub_net_buff *nb2; local 145 nb2 = grub_netbuff_alloc (fraglen + sizeof (struct iphdr) 147 if (!nb2) 149 err = grub_netbuff_reserve (nb2, GRUB_NET_MAX_LINK_HEADER_SIZE); 152 err = grub_netbuff_put (nb2, sizeof (struct iphdr)); 156 iph = (struct iphdr *) nb2->data; 171 iph->chksum = grub_net_ip_chksum ((void *) nb2->data, sizeof (*iph)); 172 err = grub_netbuff_put (nb2, len); 179 err = send_ethernet_packet (inf, nb2, ll_target_addr,
|
H A D | tcp.c | 691 struct grub_net_buff *nb2; local 693 nb2 = grub_netbuff_alloc (fraglen + sizeof (*tcph) 696 if (!nb2) 698 err = grub_netbuff_reserve (nb2, GRUB_NET_MAX_LINK_HEADER_SIZE 702 err = grub_netbuff_put (nb2, sizeof (*tcph)); 706 tcph = (struct tcphdr *) nb2->data; 711 err = grub_netbuff_put (nb2, fraglen); 719 err = tcp_send (nb2, socket);
|
Completed in 39 milliseconds