source: rtems-libbsd/freebsd/contrib/tcpdump/slip.h @ 084d4db

4.11
Last change on this file since 084d4db was 8440506, checked in by Chris Johns <chrisj@…>, on 06/15/15 at 07:42:23

Add tcpdump and libpcap.

  • Update the file builder generator to handle generator specific cflags and includes. The tcpdump and libpcap have localised headers and need specific headers paths to see them. There are also module specific flags and these need to be passed to the lex and yacc generators.
  • Add the tcpdump support.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 * Definitions that user level programs might need to know to interact
3 * with serial line IP (slip) lines.
4 *
5 * @(#) $Header: /tcpdump/master/tcpdump/slip.h,v 1.1 2000-10-09 01:53:21 guy Exp $
6 *
7 * Copyright (c) 1990 Regents of the University of California.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms are permitted
11 * provided that the above copyright notice and this paragraph are
12 * duplicated in all such forms and that any documentation,
13 * advertising materials, and other materials related to such
14 * distribution and use acknowledge that the software was developed
15 * by the University of California, Berkeley.  The name of the
16 * University may not be used to endorse or promote products derived
17 * from this software without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
20 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 */
22
23/*
24 * definitions of the pseudo- link-level header attached to slip
25 * packets grabbed by the packet filter (bpf) traffic monitor.
26 */
27#define SLIP_HDRLEN 16
28
29#define SLX_DIR 0
30#define SLX_CHDR 1
31#define CHDR_LEN 15
32
33#define SLIPDIR_IN 0
34#define SLIPDIR_OUT 1
Note: See TracBrowser for help on using the repository browser.