1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
/****************************************************************************
** File: ipx.h
**
** Author: Mike Borella
**
** Comments: IPX header format and such
**
** $Id: ipx.h,v 1.4 2000/08/30 20:23:04 mborella Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Library General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**
*****************************************************************************/
#ifndef IPX_H
#define IPX_H
#include "global.h"
#include "local.h"
/*
* IPX packet types
*/
#define IPX_PACKETTYPE_UNKNOWN 0
#define IPX_PACKETTYPE_RIP 1
#define IPX_PACKETTYPE_ECHO 2
#define IPX_PACKETTYPE_ERROR 3
#define IPX_PACKETTYPE_PEP 4
#define IPX_PACKETTYPE_SPX 5
#define IPX_PACKETTYPE_NCP 17
#define IPX_PACKETTYPE_NETBIOS 20
/*
* IPX header
*/
typedef struct ipx_header
{
u_int16_t csum;
u_int16_t len;
u_int8_t tc;
u_int8_t pt;
u_int32_t dstnet;
u_char dstnode[6];
u_int16_t dstport;
u_int32_t srcnet;
u_char srcnode[6];
u_int16_t srcport;
} ipx_header_t;
void dump_ipx(packet_t *);
#endif
|