slip.h revision 75116
1168515Sgshapiro/* 2168515Sgshapiro * Definitions that user level programs might need to know to interact 3168515Sgshapiro * with serial line IP (slip) lines. 4132943Sgshapiro * 5266692Sgshapiro * @(#) $Header: /tcpdump/master/tcpdump/slip.h,v 1.1 2000/10/09 01:53:21 guy Exp $ 6132943Sgshapiro * 7168515Sgshapiro * Copyright (c) 1990 Regents of the University of California. 890792Sgshapiro * All rights reserved. 9168515Sgshapiro * 1090792Sgshapiro * Redistribution and use in source and binary forms are permitted 11168515Sgshapiro * provided that the above copyright notice and this paragraph are 12168515Sgshapiro * duplicated in all such forms and that any documentation, 1390792Sgshapiro * advertising materials, and other materials related to such 1490792Sgshapiro * distribution and use acknowledge that the software was developed 15168515Sgshapiro * by the University of California, Berkeley. The name of the 16168515Sgshapiro * University may not be used to endorse or promote products derived 1790792Sgshapiro * from this software without specific prior written permission. 1890792Sgshapiro * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 19168515Sgshapiro * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 2090792Sgshapiro * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21168515Sgshapiro */ 2290792Sgshapiro 2390792Sgshapiro/* 24168515Sgshapiro * definitions of the pseudo- link-level header attached to slip 25168515Sgshapiro * packets grabbed by the packet filter (bpf) traffic monitor. 26168515Sgshapiro */ 27168515Sgshapiro#define SLIP_HDRLEN 16 28168515Sgshapiro 29168515Sgshapiro#define SLX_DIR 0 30168515Sgshapiro#define SLX_CHDR 1 31168515Sgshapiro#define CHDR_LEN 15 32168515Sgshapiro 33168515Sgshapiro#define SLIPDIR_IN 0 34168515Sgshapiro#define SLIPDIR_OUT 1 3590792Sgshapiro