grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / devs / networks / rhine / ethernet.h
blob0085bdb9aa3383632ce7077a7887a9b1fe886397
1 /*
3 Copyright (C) 2001-2012 Neil Cafferkey
5 This program 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 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 MA 02111-1307, USA.
22 #ifndef ETHERNET_H
23 #define ETHERNET_H
26 #include <exec/types.h>
27 #include <devices/sana2.h>
28 #include <devices/sana2specialstats.h>
30 #define ETH_ADDRESSSIZE 6
31 #define ETH_HEADERSIZE 14
32 #define ETH_CRCSIZE 4
33 #define ETH_MINSIZE 60
34 #define ETH_MTU 1500
36 #define ETH_PACKET_DEST 0
37 #define ETH_PACKET_SOURCE 6
38 #define ETH_PACKET_TYPE 12
39 #define ETH_PACKET_IEEELEN 12
40 #define ETH_PACKET_DATA 14
43 struct TypeStats
45 struct MinNode node;
46 ULONG packet_type;
47 struct Sana2PacketTypeStats stats;
51 struct TypeTracker
53 struct MinNode node;
54 ULONG packet_type;
55 struct Sana2PacketTypeStats stats;
56 ULONG user_count;
60 struct AddressRange
62 struct MinNode node;
63 ULONG add_count;
64 ULONG lower_bound_left;
65 ULONG upper_bound_left;
66 UWORD lower_bound_right;
67 UWORD upper_bound_right;
71 #endif