mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 02:31:05 +00:00
Initial Implementation of TFTP protocol and new protocol structs.
This commit is contained in:
1 parent
4931b0984b
commit
066528b4b1
23 files changed
+789
-6
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#ifndef GRUB_NET_UDP_HEADER
|
||||
#define GRUB_NET_UDP_HEADER 1
|
||||
#include <grub/misc.h>
|
||||
/*
|
||||
typedef enum
|
||||
{
|
||||
GRUB_PROT_TFTP
|
||||
} protocol_type;
|
||||
*/
|
||||
|
||||
#define GRUB_PROT_TFTP 1
|
||||
|
||||
struct udphdr {
|
||||
grub_uint16_t src;
|
||||
grub_uint16_t dst;
|
||||
grub_uint16_t len;
|
||||
grub_uint16_t chksum;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
void udp_ini(void);
|
||||
void udp_fini(void);
|
||||
#endif
|
||||
Reference in new issue
Block a user