*
* AppleTalk protocol formats (courtesy Bill Croft of Stanford/SUMEX).
*
- * @(#) $Header: /tcpdump/master/tcpdump/appletalk.h,v 1.12 1999-10-07 23:47:09 mcr Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/appletalk.h,v 1.16 2004-05-01 09:41:50 hannes Exp $ (LBL)
*/
struct LAP {
- u_char dst;
- u_char src;
- u_char type;
+ u_int8_t dst;
+ u_int8_t src;
+ u_int8_t type;
};
#define lapShortDDP 1 /* short DDP type */
#define lapDDP 2 /* DDP type */
/* Datagram Delivery Protocol */
struct atDDP {
- u_short length;
- u_short checksum;
- u_short dstNet;
- u_short srcNet;
- u_char dstNode;
- u_char srcNode;
- u_char dstSkt;
- u_char srcSkt;
- u_char type;
+ u_int16_t length;
+ u_int16_t checksum;
+ u_int16_t dstNet;
+ u_int16_t srcNet;
+ u_int8_t dstNode;
+ u_int8_t srcNode;
+ u_int8_t dstSkt;
+ u_int8_t srcSkt;
+ u_int8_t type;
};
struct atShortDDP {
- u_short length;
- u_char dstSkt;
- u_char srcSkt;
- u_char type;
+ u_int16_t length;
+ u_int8_t dstSkt;
+ u_int8_t srcSkt;
+ u_int8_t type;
};
#define ddpMaxWKS 0x7F
#define ddpECHO 4 /* ECHO type */
#define ddpIP 22 /* IP type */
#define ddpARP 23 /* ARP type */
+#define ddpEIGRP 88 /* EIGRP over Appletalk */
#define ddpKLAP 0x4b /* Kinetics KLAP type */
/* AppleTalk Transaction Protocol */
struct atATP {
- u_char control;
- u_char bitmap;
- u_short transID;
+ u_int8_t control;
+ u_int8_t bitmap;
+ u_int16_t transID;
int32_t userData;
};
/* AppleTalk Echo Protocol */
struct atEcho {
- u_char echoFunction;
- u_char *echoData;
+ u_int8_t echoFunction;
+ u_int8_t *echoData;
};
#define echoSkt 4 /* the echoer socket */
/* Name Binding Protocol */
struct atNBP {
- u_char control;
- u_char id;
+ u_int8_t control;
+ u_int8_t id;
};
struct atNBPtuple {
- u_short net;
- u_char node;
- u_char skt;
- u_char enumerator;
+ u_int16_t net;
+ u_int8_t node;
+ u_int8_t skt;
+ u_int8_t enumerator;
};
#define nbpBrRq 0x10
/* Zone Information Protocol */
struct zipHeader {
- u_char command;
- u_char netcount;
+ u_int8_t command;
+ u_int8_t netcount;
};
#define zipHeaderSize 2