Initial Implementation of TFTP protocol and new protocol structs.

This commit is contained in:
Manoel R. Abranches committed 2010-04-27 18:05:35 -03:00
1 parent 4931b0984b
commit 066528b4b1
23 files changed
+789 -6

No files matched your search

+22
View File
@@ -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