Remove some dead code
This commit is contained in:
parent
760a7e5aed
commit
ce3a2ec025
13 changed files with 3 additions and 164 deletions
|
@ -23,9 +23,8 @@
|
|||
#include <grub/err.h>
|
||||
#include <grub/list.h>
|
||||
#include <grub/fs.h>
|
||||
#include <grub/mm.h>
|
||||
#include <grub/net/netbuff.h>
|
||||
#include <grub/net/type_net.h>
|
||||
#include <grub/net/protocol.h>
|
||||
|
||||
typedef struct grub_fs *grub_net_app_level_t;
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define GRUB_NET_ARP_HEADER 1
|
||||
#include <grub/misc.h>
|
||||
#include <grub/net.h>
|
||||
#include <grub/net/protocol.h>
|
||||
|
||||
/* IANA ARP constant to define hardware type as ethernet */
|
||||
#define ARPHRD_ETHERNET 1
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
#ifndef GRUB_INTERFACE_HEADER
|
||||
#define GRUB_INTERFACE_HEADER
|
||||
//#include <grub/net.h>
|
||||
#include <grub/net/type_net.h>
|
||||
#include <grub/list.h>
|
||||
#include <grub/misc.h>
|
||||
|
||||
struct grub_net_protocol_stack
|
||||
{
|
||||
struct grub_net_protocol_stack *next;
|
||||
char *name;
|
||||
grub_net_protocol_id_t id;
|
||||
void *interface;
|
||||
};
|
||||
|
||||
struct grub_net_application_transport_interface
|
||||
{
|
||||
struct grub_net_transport_network_interface *inner_layer;
|
||||
void *data;
|
||||
struct grub_net_application_layer_protocol *app_prot;
|
||||
struct grub_net_transport_layer_protocol *trans_prot;
|
||||
};
|
||||
|
||||
struct grub_net_transport_network_interface
|
||||
{
|
||||
struct grub_net_network_link_interface *inner_layer;
|
||||
void *data;
|
||||
struct grub_net_transport_layer_protocol *trans_prot;
|
||||
struct grub_net_network_layer_protocol *net_prot;
|
||||
};
|
||||
|
||||
struct grub_net_network_link_interface
|
||||
{
|
||||
void *data;
|
||||
struct grub_net_network_layer_protocol *net_prot;
|
||||
struct grub_net_link_layer_protocol *link_prot;
|
||||
};
|
||||
|
||||
|
||||
struct grub_net_protocol_stack *grub_net_protocol_stacks;
|
||||
static inline void
|
||||
grub_net_stack_register (struct grub_net_protocol_stack *stack)
|
||||
{
|
||||
|
||||
grub_list_push (GRUB_AS_LIST_P (&grub_net_protocol_stacks),
|
||||
GRUB_AS_LIST (stack));
|
||||
}
|
||||
/*
|
||||
void grub_net_stack_unregister (struct grub_net_protocol_stack *stack)
|
||||
{
|
||||
grub_list_remove (GRUB_AS_LIST_P (&grub_net_protocol_stacks),
|
||||
GRUB_AS_LIST (stack));
|
||||
}*/
|
||||
|
||||
struct grub_net_protocol_stack *grub_net_protocol_stack_get (char *name);
|
||||
|
||||
/*
|
||||
static inline void
|
||||
grub_net_interface_application_transport_register (struct grub_net_application_transport_interface);
|
||||
static inline void
|
||||
grub_net_interface_application_transport_unregister (struct grub_net_application_transport_interface);
|
||||
static inline void
|
||||
grub_net_interface_transport_network_register (struct grub_net_transport_network_interface);
|
||||
static inline void
|
||||
grub_net_interface_transport_network_unregister (struct grub_net_transport_network_interface);
|
||||
static inline void
|
||||
grub_net_interface_network_link_register (struct grub_net_network_link_interface);
|
||||
static inline void
|
||||
grub_net_interface_network_link_unregister (struct grub_net_network_link_interface);*/
|
||||
#endif
|
|
@ -1,9 +0,0 @@
|
|||
#ifndef GRUB_PROTOCOL_HEADER
|
||||
#define GRUB_PROTOCOL_HEADER
|
||||
#include <grub/err.h>
|
||||
#include <grub/mm.h>
|
||||
#include <grub/net/interface.h>
|
||||
#include <grub/net/netbuff.h>
|
||||
#include <grub/net/type_net.h>
|
||||
|
||||
#endif
|
|
@ -1,33 +0,0 @@
|
|||
#ifndef GRUB_TYPES_NET_HEADER
|
||||
#define GRUB_TYPES_NET_HEADER 1
|
||||
#include <grub/misc.h>
|
||||
|
||||
|
||||
#define UDP_PCKT 0x11
|
||||
#define IP_PCKT 0x0800
|
||||
#define TIMEOUT_TIME_MS 3*1000
|
||||
typedef enum
|
||||
{
|
||||
GRUB_NET_TFTP_ID,
|
||||
GRUB_NET_UDP_ID,
|
||||
GRUB_NET_IPV4_ID,
|
||||
GRUB_NET_IPV6_ID,
|
||||
GRUB_NET_ETHERNET_ID,
|
||||
GRUB_NET_ARP_ID,
|
||||
GRUB_NET_DHCP_ID
|
||||
}grub_net_protocol_id_t;
|
||||
|
||||
|
||||
typedef union grub_net_network_layer_netaddress
|
||||
{
|
||||
grub_uint32_t ipv4;
|
||||
} grub_net_network_layer_address_t;
|
||||
|
||||
typedef union grub_net_network_layer_address
|
||||
{
|
||||
struct {
|
||||
grub_uint32_t base;
|
||||
int masksize;
|
||||
} ipv4;
|
||||
} grub_net_network_layer_netaddress_t;
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue