172 lines
5.2 KiB
C
172 lines
5.2 KiB
C
/*
|
|
******************************************************************************
|
|
* HEADER FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: route.h,v $ $Revision: 1.3 $
|
|
* $Source: /home/interpeak/CVSRoot/ipxinc/include/net/route.h,v $
|
|
* $Author: lob $ $Date: 2005-03-09 14:26:35 $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
|
******************************************************************************
|
|
*/
|
|
#ifndef IP_NET_ROUTE_H
|
|
#define IP_NET_ROUTE_H
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 CONFIGURATION
|
|
****************************************************************************
|
|
*/
|
|
|
|
#include "ipcom_config.h"
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#include "ipcom_type.h"
|
|
|
|
#ifdef IPNET
|
|
#include <ipnet_routesock.h>
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
*===========================================================================
|
|
* Route sockets
|
|
*===========================================================================
|
|
*/
|
|
|
|
#define RTM_VERSION IPNET_RTM_VERSION
|
|
|
|
#define RTM_ADD IPNET_RTM_ADD
|
|
#define RTM_DELETE IPNET_RTM_DELETE
|
|
#define RTM_CHANGE IPNET_RTM_CHANGE
|
|
#define RTM_GET IPNET_RTM_GET
|
|
#define RTM_LOSING IPNET_RTM_LOOSING
|
|
#define RTM_REDIRECT IPNET_RTM_REDIRECT
|
|
#define RTM_MISS IPNET_RTM_MISS
|
|
#define RTM_LOCK IPNET_RTM_LOCK
|
|
#define RTM_OLDADD IPNET_RTM_OLDADD
|
|
#define RTM_OLDDEL IPNET_RTM_OLDDEL
|
|
#define RTM_RESOLVE IPNET_RTM_RESOLVE
|
|
#define RTM_NEWADDR IPNET_RTM_NEWADDR
|
|
#define RTM_DELADDR IPNET_RTM_DELADDR
|
|
#define RTM_IFINFO IPNET_RTM_IFINFO
|
|
#define RTM_IFANNOUNCE IPNET_RTM_IFANNOUNCE
|
|
/* Intepeak extension for Virtual Routing */
|
|
#define RTM_NEWRTAB IPNET_RTM_NEWRTAB
|
|
#define RTM_DELRTAB IPNET_RTM_DELRTAB
|
|
|
|
/* rtm_addrs values */
|
|
#define RTA_DST IPNET_RTA_DST
|
|
#define RTA_GATEWAY IPNET_RTA_GATEWAY
|
|
#define RTA_NETMASK IPNET_RTA_NETMASK
|
|
#define RTA_GENMASK IPNET_RTA_GENMASK
|
|
#define RTA_IFP IPNET_RTA_IFP
|
|
#define RTA_IFA IPNET_RTA_IFA
|
|
#define RTA_AUTHOR IPNET_RTA_AUTHOR
|
|
#define RTA_BRD IPNET_RTA_BRD
|
|
|
|
#define RTAX_DST IPNET_RTAX_DST
|
|
#define RTAX_GATEWAY IPNET_RTAX_GATEWAY
|
|
#define RTAX_NETMASK IPNET_RTAX_NETMASK
|
|
#define RTAX_GENMASK IPNET_RTAX_GENMASK
|
|
#define RTAX_IFP IPNET_RTAX_IFP
|
|
#define RTAX_IFA IPNET_RTAX_IFA
|
|
#define RTAX_AUTHOR IPNET_RTAX_AUTHOR
|
|
#define RTAX_BRD IPNET_RTAX_BRD
|
|
#define RTAX_MAX IPNET_RTAX_MAX
|
|
|
|
/* Route flag values */
|
|
#define RTF_UP IPNET_RTF_UP
|
|
#define RTF_GATEWAY IPNET_RTF_GATEWAY
|
|
#define RTF_HOST IPNET_RTF_HOST
|
|
#define RTF_REJECT IPNET_RTF_REJECT
|
|
#define RTF_DYNAMIC IPNET_RTF_DYNAMIC
|
|
#define RTF_MODIFIED IPNET_RTF_MODIFIED
|
|
#define RTF_DONE IPNET_RTF_DONE
|
|
#define RTF_MASK IPNET_RTF_MASK
|
|
#define RTF_CLONING IPNET_RTF_CLONING
|
|
#define RTF_XRESOLVE IPNET_RTF_XRESOLVE
|
|
#define RTF_LLINFO IPNET_RTF_LLINFO
|
|
#define RTF_STATIC IPNET_RTF_STATIC
|
|
#define RTF_BLACKHOLE IPNET_RTF_BLACKHOLE
|
|
#define RTF_PROTO1 IPNET_RTF_PROTO1
|
|
#define RTF_PROTO2 IPNET_RTF_PROTO2
|
|
|
|
/* Specifiers for metric values in rmx_locks and rtm_inits are: */
|
|
#define RTV_EXPIRE IPNET_RTV_EXPIRE
|
|
#define RTV_HOPCOUNT IPNET_RTV_HOPCOUNT
|
|
#define RTV_RTT IPNET_RTV_RTT
|
|
#define RTV_RTTVAR IPNET_RTV_RTTVAR
|
|
#define RTV_MTU IPNET_RTV_MTU
|
|
#define RTV_RPIPE IPNET_RTV_RPIPE /* unsupported */
|
|
#define RTV_SPIPE IPNET_RTV_SPIPE /* unsupported */
|
|
#define RTV_SSTHRESH IPNET_RTV_SSTHRESH /* unsupported */
|
|
|
|
/* Interface announce what values */
|
|
#define IFAN_ARRIVAL IPNET_IFAN_ARRIVAL
|
|
#define IFAN_DEPARTURE IPNET_IFAN_DEPARTURE
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 TYPES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#define rt_msghdr Ipnet_rt_msghdr
|
|
#define if_announcemsghdr Ipnet_if_announcemsghdr
|
|
|
|
#define rt_metrics Ipnet_rt_metrics
|
|
|
|
#define ortentry Ip_ortentry
|
|
|
|
#define vifi_t Ip_vifi_t
|
|
#define vifctl Ip_vifctl
|
|
#define sioc_vif_req Ip_sioc_vif_req
|
|
#define sioc_sg_req Ip_sioc_sg_req
|
|
#define mfcctl Ip_mfcctl
|
|
#define igmpmsg Ip_igmpmsg
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 6 FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|