original files of m241
This commit is contained in:
@@ -0,0 +1,177 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: in6.h,v $ $Revision: 1.7 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipxinc/include/netinet6/in6.h,v $
|
||||
* $Author: lob $ $Date: 2005-12-08 16:33:51 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IP_NETINET_IN6_H
|
||||
#define IP_NETINET_IN6_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_config.h"
|
||||
|
||||
#ifdef IPNET
|
||||
#include "ipnet_config.h"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "sys/types.h"
|
||||
|
||||
#include <ipcom_sock.h>
|
||||
#include <ipcom_sock6.h>
|
||||
#include <ipcom_sysctl.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define INET6_ADDRSTRLEN IP_INET6_ADDRSTRLEN
|
||||
|
||||
#define IPV6_V6ONLY IP_IPV6_V6ONLY
|
||||
|
||||
#define IPV6CTL_FORWARDING IP_IPV6CTL_FORWARDING
|
||||
#define IPV6CTL_SEND_ADV IP_IPV6CTL_SEND_ADV
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IN6_IS_ADDR_
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define IN6_ARE_ADDR_EQUAL(addr1, addr2) IP_IN6_ARE_ADDR_EQUAL(addr1, addr2)
|
||||
#define IN6_IS_ADDR_UNSPECIFIED(addr) IP_IN6_IS_ADDR_UNSPECIFIED(addr)
|
||||
#define IN6_IS_ADDR_LOOPBACK(addr) IP_IN6_IS_ADDR_LOOPBACK(addr)
|
||||
#define IN6_IS_ADDR_V4COMPAT(addr) IP_IN6_IS_ADDR_V4COMPAT(addr)
|
||||
#define IN6_IS_ADDR_V4MAPPED(addr) IP_IN6_IS_ADDR_V4MAPPED(addr)
|
||||
#define IN6_IS_ADDR_AGGR_GLOB_UNICAST(addr) IP_IN6_IS_ADDR_AGGR_GLOB_UNICAST(addr)
|
||||
#define IN6_IS_ADDR_SITELOCAL(addr) IP_IN6_IS_ADDR_SITE_LOCAL(addr)
|
||||
#define IN6_IS_ADDR_LINKLOCAL(addr) IP_IN6_IS_ADDR_LINK_LOCAL(addr)
|
||||
#define IN6_IS_ADDR_MULTICAST(addr) IP_IN6_IS_ADDR_MULTICAST(addr)
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPV6 socket options
|
||||
*===========================================================================
|
||||
* IP_IPPROTO_IPV6 level socket options.
|
||||
*/
|
||||
|
||||
#define IPV6_UNICAST_HOPS IP_IPV6_UNICAST_HOPS
|
||||
#define IPV6_MULTICAST_IF IP_IPV6_MULTICAST_IF
|
||||
#define IPV6_MULTICAST_HOPS IP_IPV6_MULTICAST_HOPS
|
||||
#define IPV6_MULTICAST_LOOP IP_IPV6_MULTICAST_LOOP
|
||||
#define IPV6_JOIN_GROUP IP_IPV6_JOIN_GROUP
|
||||
#define IPV6_ADD_MEMBERSHIP IP_IPV6_ADD_MEMBERSHIP
|
||||
#define IPV6_LEAVE_GROUP IP_IPV6_LEAVE_GROUP
|
||||
#define IPV6_DROP_MEMBERSHIP IP_IPV6_DROP_MEMBERSHIP
|
||||
#define IPV6_PKTINFO IP_IPV6_PKTINFO
|
||||
#define IPV6_TCLASS IP_IPV6_TCLASS
|
||||
#define IPV6_NEXTHOP IP_IPV6_NEXTHOP
|
||||
#define IPV6_RTHDR IP_IPV6_RTHDR
|
||||
#define IPV6_HOPOPTS IP_IPV6_HOPOPTS
|
||||
#define IPV6_DSTOPTS IP_IPV6_DSTOPTS
|
||||
#define IPV6_RTHDRDSTOPTS IP_IPV6_RTHDRDSTOPTS
|
||||
#define IPV6_RECVPKTINFO IP_IPV6_RECVPKTINFO
|
||||
#define IPV6_RECVHOPLIMIT IP_IPV6_RECVHOPLIMIT
|
||||
#define IPV6_RECVTCLASS IP_IPV6_RECVTCLASS
|
||||
#define IPV6_RECVRTHDR IP_IPV6_RECVRTHDR
|
||||
#define IPV6_RECVHOPOPTS IP_IPV6_RECVHOPOPTS
|
||||
#define IPV6_RECVDSTOPTS IP_IPV6_RECVDSTOPTS
|
||||
#define IPV6_CHECKSUM IP_IPV6_CHECKSUM
|
||||
#define IPV6_RECVIF IP_IPV6_RECVIF
|
||||
|
||||
/***** IP_IPPROTO_ICMPV6 level socket options: *****/
|
||||
#define ICMP6_FILTER IP_ICMP6_FILTER
|
||||
|
||||
/* NOTE: This option can NOT be used with getsockopt/setsockopt!
|
||||
* Only sent/rcvd with ancillary data!
|
||||
*/
|
||||
#define IPV6_HOPLIMIT IP_IPV6_HOPLIMIT
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* in6_addr
|
||||
*===========================================================================
|
||||
*/
|
||||
#define in6_addr Ip_in6_addr
|
||||
#define in6_addr_t Ip_in6_addr_t
|
||||
#define s6_addr in6.addr8
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IP types
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define in6_addr_t Ip_in6_addr_t
|
||||
#define s6_addr in6.addr8
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* sockaddr_in6
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define sockaddr_in6 Ip_sockaddr_in6
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* misc
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
#define in6_pktinfo Ip_in6_pktinfo
|
||||
#define ipv6_mreq Ip_ipv6_mreq
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user