forked from osmocom/wireshark
From Lars Roland: get rid of "ip_to_str()", as it's just a copy of the
standard one in the Ethereal core, so that the plugin compiles on Windows. svn path=/trunk/; revision=8137
This commit is contained in:
parent
11cf00c0ad
commit
e1c0d7eae4
|
@ -1,7 +1,7 @@
|
|||
/* packet-lwres.c
|
||||
* Routines for light weight reslover (lwres, part of BIND9) packet disassembly
|
||||
*
|
||||
* $Id: packet-lwres.c,v 1.1 2003/08/05 05:03:30 guy Exp $
|
||||
* $Id: packet-lwres.c,v 1.2 2003/08/05 17:12:07 guy Exp $
|
||||
*
|
||||
* Copyright (c) 2003 by Oleg Terletsky <oleg.terletsky@comverse.com>
|
||||
*
|
||||
|
@ -244,24 +244,6 @@ ip_to_str_buf(const guint8 *ad, gchar *buf)
|
|||
*p = '\0';
|
||||
}
|
||||
|
||||
gchar *
|
||||
ip_to_str(const guint8 *ad) {
|
||||
static gchar str[4][16];
|
||||
static gchar *cur;
|
||||
|
||||
if (cur == &str[0][0]) {
|
||||
cur = &str[1][0];
|
||||
} else if (cur == &str[1][0]) {
|
||||
cur = &str[2][0];
|
||||
} else if (cur == &str[2][0]) {
|
||||
cur = &str[3][0];
|
||||
} else {
|
||||
cur = &str[0][0];
|
||||
}
|
||||
ip_to_str_buf(ad, cur);
|
||||
return cur;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_dns_name(tvbuff_t *tvb, int offset, int dns_data_offset,
|
||||
|
|
Loading…
Reference in New Issue