Revert "LATER... ei_kerberos_kdc_session_key ..."
[wireshark-sm.git] / epan / iana-ip.h
blob3f3efb92654307fd1b4a9fe547ba5f7dbf3280de
1 /* iana-ip.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9 #ifndef __IANA_IP_H__
10 #define __IANA_IP_H__
12 #include <wireshark.h>
13 #include <wsutil/inet_cidr.h>
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
19 enum iana_ip {
20 WS_IANA_IPv4 = 4,
21 WS_IANA_IPv6 = 6,
24 struct ws_iana_ip_special_block {
25 enum iana_ip type;
26 union {
27 ipv4_addr_and_mask ipv4;
28 ipv6_addr_and_prefix ipv6;
29 } u_ip;
30 const char *name;
31 /* true = 1; false = 0; n/a = -1 */
32 int source, destination, forwardable, global, reserved;
35 WS_DLL_PUBLIC
36 const struct ws_iana_ip_special_block *
37 ws_iana_ipv4_special_block_lookup(uint32_t ipnum);
39 WS_DLL_PUBLIC
40 const struct ws_iana_ip_special_block *
41 ws_iana_ipv6_special_block_lookup(const ws_in6_addr *addr);
43 #ifdef __cplusplus
45 #endif /* __cplusplus */
47 #endif