Upgraded GRUB2 to 2.00 release.
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / net / ethernet.h
blob23a935e98d97dddaa109009ad542646b8b3a4b02
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2010,2011 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GRUB_NET_ETHERNET_HEADER
20 #define GRUB_NET_ETHERNET_HEADER 1
21 #include <grub/types.h>
22 #include <grub/net.h>
24 /* IANA Ethertype */
25 typedef enum
27 GRUB_NET_ETHERTYPE_IP = 0x0800,
28 GRUB_NET_ETHERTYPE_ARP = 0x0806,
29 GRUB_NET_ETHERTYPE_IP6 = 0x86DD,
30 } grub_net_ethertype_t;
32 grub_err_t
33 send_ethernet_packet (struct grub_net_network_level_interface *inf,
34 struct grub_net_buff *nb,
35 grub_net_link_level_address_t target_addr,
36 grub_net_ethertype_t ethertype);
37 grub_err_t
38 grub_net_recv_ethernet_packet (struct grub_net_buff *nb,
39 struct grub_net_card *card);
41 #endif