113 lines
3.0 KiB
C
113 lines
3.0 KiB
C
/*
|
|
******************************************************************************
|
|
* HEADER FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: if_arp.h,v $ $Revision: 1.3 $
|
|
* $Source: /home/interpeak/CVSRoot/ipxinc/include/net/if_arp.h,v $
|
|
* $Author: lob $ $Date: 2005-08-08 17:19:55 $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
|
******************************************************************************
|
|
*/
|
|
#ifndef IP_NET_IF_ARP_H
|
|
#define IP_NET_IF_ARP_H
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 CONFIGURATION
|
|
****************************************************************************
|
|
*/
|
|
|
|
#include "ipcom_config.h"
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#include "ipcom_sock.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/* ARP protocol hardware identifiers: */
|
|
#define ARPHRD_NETROM 0
|
|
#define ARPHRD_ETHER 1
|
|
#define ARPHRD_EETHER 2
|
|
#define ARPHRD_AX25 3
|
|
#define ARPHRD_PRONET 4
|
|
#define ARPHRD_CHAOS 5
|
|
#define ARPHRD_IEEE802 6
|
|
#define ARPHRD_ARCNET 7
|
|
#define ARPHRD_APPLETLK 8
|
|
#define ARPHRD_DLCI 15
|
|
#define ARPHRD_ATM 19
|
|
#define ARPHRD_METRICOM 23
|
|
|
|
#define ARPOP_REQUEST 1
|
|
#define ARPOP_REPLY 2
|
|
#define ARPOP_REVREQUEST 3
|
|
#define ARPOP_REVREPLY 4
|
|
#define ARPOP_INVREQUEST 8
|
|
#define ARPOP_INVREPLY 9
|
|
|
|
/* linux/if_ether.h defines: */
|
|
#define ETH_P_802_2 0x0004 /* 802.2 frames */
|
|
#define ETH_P_802_3 0x0001 /* Dummy type for 802.3 frames */
|
|
#define ETH_P_IP 0x0800 /* IPv4 */
|
|
#define ETH_P_ARP 0x0806 /* ARP */
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 TYPES
|
|
****************************************************************************
|
|
*/
|
|
|
|
struct arphdr
|
|
{
|
|
Ip_u16 ar_hrd;
|
|
Ip_u16 ar_pro;
|
|
Ip_u8 ar_hln;
|
|
Ip_u8 ar_pln;
|
|
Ip_u16 ar_op;
|
|
};
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 6 FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|
|
|