]> git.stg.codes - ssmd.git/blob - 3rdparty/snmp++/include/snmp_pp/IPv6Utility.h
Fix build on osx.
[ssmd.git] / 3rdparty / snmp++ / include / snmp_pp / IPv6Utility.h
1 /*_############################################################################
2   _## 
3   _##  IPv6Utility.h  
4   _##
5   _##  SNMP++v3.2.25
6   _##  -----------------------------------------------
7   _##  Copyright (c) 2001-2010 Jochen Katz, Frank Fock
8   _##
9   _##  This software is based on SNMP++2.6 from Hewlett Packard:
10   _##  
11   _##    Copyright (c) 1996
12   _##    Hewlett-Packard Company
13   _##  
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. 
25   _##  
26   _##  Stuttgart, Germany, Thu Sep  2 00:07:47 CEST 2010 
27   _##  
28   _##########################################################################*/
29 /*
30  * Copyright (C) 2004, 2005  Internet Systems Consortium, Inc. ("ISC")
31  * Copyright (C) 1996-2001  Internet Software Consortium.
32  *
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.
36  *
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.
44  */
45 /*===================================================================
46
47   SNMP++ IPV6Utility.h
48
49   DESCRIPTION:
50   This module contains the Utility functions for IPV6 support functions 
51   required for WIN32 environment
52
53   Adapted and integrated into snmp++ by Ragavan Tetchinamourty
54
55 =====================================================================*/
56 // $Id: $
57
58 #ifndef _IPV6UTILITY_H
59 #define _IPV6UTILITY_H
60
61 #include "snmp_pp/config_snmp_pp.h"
62
63 //FIXME #if defined(_MSC_VER) && defined(SNMP_PP_IPv6)
64 #if defined(WIN32) && defined(SNMP_PP_IPv6)
65
66 #define EAFNOSUPPORT WSAEAFNOSUPPORT
67 #define ENOSPC 28
68
69
70 const char * inet_ntop(int af, const void *src, char *dst, size_t size);
71
72 int inet_pton(int af, const char *src, void *dst);
73
74 #endif // defined(WIN32) && defined(SNMP_PP_IPv6)
75
76 #endif // IPV6UTILITY_H
77