diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-04-08 05:16:19 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-04-09 23:36:30 +0000 |
commit | bf302d23c957e674f421cad627d1a3034a25e9f8 (patch) | |
tree | 09a4aaf07035c74e3f4a40dd482e86943e7b51e3 /wsutil | |
parent | c39c365f863a1b83f16b67101d185eb0a151eb19 (diff) |
Move a declaration to wsutil
This fixes the wsutil dependency on libwireshark.
Change-Id: Ic82e769ce39ad0a8c800d371cfa6bd300849fee1
Reviewed-on: https://code.wireshark.org/review/14859
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/inet_addr.h | 2 | ||||
-rw-r--r-- | wsutil/inet_ipv6.h | 29 |
2 files changed, 30 insertions, 1 deletions
diff --git a/wsutil/inet_addr.h b/wsutil/inet_addr.h index 6cf43a1cd9..1c9d1ab5cc 100644 --- a/wsutil/inet_addr.h +++ b/wsutil/inet_addr.h @@ -26,7 +26,7 @@ #include <glib.h> -#include <epan/ipv6.h> +#include "inet_ipv6.h" WS_DLL_PUBLIC const gchar * ws_inet_ntop4(gconstpointer src, gchar *dst, guint dst_size); diff --git a/wsutil/inet_ipv6.h b/wsutil/inet_ipv6.h new file mode 100644 index 0000000000..85a09e7105 --- /dev/null +++ b/wsutil/inet_ipv6.h @@ -0,0 +1,29 @@ +/* inet_ipv6.h + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __INET_IPV6_H__ +#define __INET_IPV6_H__ + +struct e_in6_addr { + guint8 bytes[16]; /**< 128 bit IP6 address */ +}; + +#endif |