source: lib/arphrd.h @ 9ca0b29

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 9ca0b29 was 9cc1266, checked in by Shane Alcock <salcock@…>, 11 years ago
  • Fixed poor performance of the event API by greatly reducing the amount of packets created, copied and freed
  • We now cache the transport header and payload length for each packet
  • We now deal with Linux SLL Ethernet captures taken using tcpdump with -i any correctly.
  • Changed parameters for internal function trace_get_payload_from_sll - it now sets both the arphrd type and the next protocol
  • Moved ARPHRD definitions into a separate header file, as they come in handy anywhere we deal with SLL headers
  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 * This file is part of libtrace
3 *
4 * Copyright (c) 2007,2008,2009,2010 The University of Waikato, Hamilton,
5 * New Zealand.
6 *
7 * Authors: Daniel Lawson
8 *          Perry Lorier
9 *          Shane Alcock
10 *         
11 * All rights reserved.
12 *
13 * This code has been developed by the University of Waikato WAND
14 * research group. For further information please see http://www.wand.net.nz/
15 *
16 * libtrace is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * libtrace is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with libtrace; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29 *
30 * $Id$
31 *
32 */
33
34
35#ifndef ARPHRD_H_
36#define ARPHRD_H_
37
38/* Defines for various ARPHRD values, if needed */
39
40#ifndef WIN32
41#include <net/if_arp.h>
42#endif
43
44#ifndef ARPHRD_ETHER
45#define ARPHRD_ETHER    1               /* Ethernet 10/100Mbps.  */
46#endif
47
48#ifndef ARPHRD_EETHER
49#define ARPHRD_EETHER    2               /* Experimental Ethernet 10/100Mbps.  */
50#endif
51
52#ifndef ARPHRD_PPP
53#define ARPHRD_PPP      512
54#endif
55
56#ifndef ARPHRD_LOOPBACK
57#define ARPHRD_LOOPBACK 772
58#endif
59
60#ifndef ARPHRD_IEEE80211
61#define ARPHRD_IEEE80211        801
62#endif
63
64#ifndef ARPHRD_NONE
65#define ARPHRD_NONE     0xFFFE
66#endif
67
68
69#endif
Note: See TracBrowser for help on using the repository browser.