1998-10-03 07:41:01 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* builtins.h
|
1998-10-03 07:41:01 +02:00
|
|
|
* Declarations for operations on built-in types.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1999-05-26 00:43:53 +02:00
|
|
|
* $Id: inet.h,v 1.5 1999/05/25 22:43:34 momjian Exp $
|
1998-10-03 07:41:01 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef MAC_H
|
|
|
|
#define MAC_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This is the internal storage format for IP addresses:
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned char family;
|
|
|
|
unsigned char bits;
|
1998-10-21 18:06:50 +02:00
|
|
|
unsigned char type;
|
1998-10-03 07:41:01 +02:00
|
|
|
union
|
|
|
|
{
|
1999-05-25 18:15:34 +02:00
|
|
|
unsigned int ipv4_addr; /* network byte order */
|
1998-10-03 07:41:01 +02:00
|
|
|
/* add IPV6 address type here */
|
|
|
|
} addr;
|
1999-05-26 00:43:53 +02:00
|
|
|
} inet_struct;
|
1998-10-03 07:41:01 +02:00
|
|
|
|
1998-10-08 02:19:47 +02:00
|
|
|
typedef struct varlena inet;
|
1998-10-03 07:41:01 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This is the internal storage format for MAC addresses:
|
|
|
|
*/
|
|
|
|
typedef struct macaddr
|
|
|
|
{
|
|
|
|
unsigned char a;
|
|
|
|
unsigned char b;
|
|
|
|
unsigned char c;
|
|
|
|
unsigned char d;
|
|
|
|
unsigned char e;
|
|
|
|
unsigned char f;
|
1999-05-25 18:15:34 +02:00
|
|
|
} macaddr;
|
1998-10-03 07:41:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct manufacturer
|
|
|
|
{
|
|
|
|
unsigned char a;
|
|
|
|
unsigned char b;
|
|
|
|
unsigned char c;
|
|
|
|
char *name;
|
1999-05-26 00:43:53 +02:00
|
|
|
} manufacturer;
|
1998-10-03 07:41:01 +02:00
|
|
|
|
|
|
|
extern manufacturer manufacturers[];
|
|
|
|
|
|
|
|
#endif /* MAC_H */
|