mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 10:39:22 +00:00
Clean Debug messages
This commit is contained in:
1 parent
1edb7287ff
commit
3ec6213b17
8 files changed
+46
-80
No files matched your search
+5
-1
@@ -70,7 +70,7 @@ tftp_open (struct grub_net_network_layer_interface *inf __attribute((unused)),
|
||||
grub_netbuff_push (nb,sizeof (*tftph));
|
||||
|
||||
udp_interf = (struct udp_interf *) app_interface->data;
|
||||
udp_interf->src = TFTP_CLIENT_PORT + rrq_count++;
|
||||
udp_interf->src = TFTP_CLIENT_PORT;// + rrq_count++;
|
||||
udp_interf->dst = TFTP_SERVER_PORT;
|
||||
tftph = (struct tftphdr *) nb->data;
|
||||
|
||||
@@ -112,6 +112,8 @@ tftp_open (struct grub_net_network_layer_interface *inf __attribute((unused)),
|
||||
|
||||
app_interface->trans_prot->send (inf,protstack->interface,nb);
|
||||
/*Receive OACK*/
|
||||
grub_netbuff_clear (nb);
|
||||
grub_netbuff_reserve (nb,80*1024);
|
||||
return app_interface->app_prot->recv(inf,protstack,nb);
|
||||
}
|
||||
|
||||
@@ -211,6 +213,8 @@ static int tftp_file_size (struct grub_net_network_layer_interface* inf ,
|
||||
{
|
||||
|
||||
tftp_open (inf, protocol_stack,nb, filename);
|
||||
grub_netbuff_clear (nb);
|
||||
grub_netbuff_reserve (nb,80*1024);
|
||||
tftp_send_err (inf, protocol_stack,nb,"Abort transference.",0);
|
||||
|
||||
return tftp_file.size;
|
||||
|
||||
Reference in new issue
Block a user