1 /*_############################################################################
6 _## -----------------------------------------------
7 _## Copyright (c) 2001-2010 Jochen Katz, Frank Fock
9 _## This software is based on SNMP++2.6 from Hewlett Packard:
11 _## Copyright (c) 1996
12 _## Hewlett-Packard Company
14 _## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
15 _## Permission to use, copy, modify, distribute and/or sell this software
16 _## and/or its documentation is hereby granted without fee. User agrees
17 _## to display the above copyright notice and this license notice in all
18 _## copies of the software and any documentation of the software. User
19 _## agrees to assume all liability for the use of the software;
20 _## Hewlett-Packard and Jochen Katz make no representations about the
21 _## suitability of this software for any purpose. It is provided
22 _## "AS-IS" without warranty of any kind, either express or implied. User
23 _## hereby grants a royalty-free license to any and all derivatives based
24 _## upon this software code base.
26 _## Stuttgart, Germany, Thu Sep 2 00:07:47 CEST 2010
28 _##########################################################################*/
30 * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
31 * Copyright (C) 1996-2001 Internet Software Consortium.
33 * Permission to use, copy, modify, and distribute this software for any
34 * purpose with or without fee is hereby granted, provided that the above
35 * copyright notice and this permission notice appear in all copies.
37 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
38 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
40 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
42 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43 * PERFORMANCE OF THIS SOFTWARE.
45 /*===================================================================
50 This module contains the Utility functions for IPV6 support functions
51 required for WIN32 environment
53 Adapted and integrated into snmp++ by Ragavan Tetchinamourty
55 =====================================================================*/
58 #ifndef _IPV6UTILITY_H
59 #define _IPV6UTILITY_H
61 #include "snmp_pp/config_snmp_pp.h"
63 //FIXME #if defined(_MSC_VER) && defined(SNMP_PP_IPv6)
64 #if defined(WIN32) && defined(SNMP_PP_IPv6)
66 #define EAFNOSUPPORT WSAEAFNOSUPPORT
70 const char * inet_ntop(int af, const void *src, char *dst, size_t size);
72 int inet_pton(int af, const char *src, void *dst);
74 #endif // defined(WIN32) && defined(SNMP_PP_IPv6)
76 #endif // IPV6UTILITY_H