home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk1.iso
/
altsrc
/
articles
/
11108
/
proxyarpd.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-11
|
2KB
|
45 lines
/* Miscellaneous macro and type definitions for proxyarpd.
*
* Matt Kimmel, kimmel@cs.umass.edu, 8/94.
*/
#ifndef _PROXYARPD_H
#define _PROXYARPD_H
/* The default pathname of the proxyarpd configuration file. */
#define DEFAULTCONFIGFILE "/usr/local/etc/proxyarpd.conf"
/* The default interface to run on. */
#define DEFAULTINTERFACE "qe0"
/* IP addresses are represented internally as unsigned longs, in the same
* format as returned by inet_addr(3).
*/
typedef unsigned long ipaddr;
/* Ethernet addresses are represented by a structure containing an array
* of six unsigned chars. They should usually be passed by reference for
* maximum performance/portability.
*/
typedef struct {
unsigned char ether_octet[6];
} etheraddr;
/* A structure that we can read an ARP packet into directly */
typedef struct {
unsigned char etherdst[6]; /* Ethernet header destination address */
unsigned char ethersrc[6]; /* Ethernet header source address */
unsigned char etherprot[2]; /* Protocol type */
unsigned char arphdw[2]; /* Hardware type */
unsigned char arpprot[2]; /* ARP protocol type */
unsigned char arphdwlen; /* Hardware address length */
unsigned char arpprotlen; /* Protocol address length */
unsigned char arpopcode[2]; /* ARP opcode */
unsigned char arphdwsrc[6]; /* Hardware source address */
unsigned char arpprotsrc[4]; /* Protocol source address */
unsigned char arphdwdst[6]; /* Hardware destination address */
unsigned char arpprotdst[4]; /* Protocol destination address */
} arppkt;
#endif