diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-22 15:19:49 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-22 15:19:49 +0000 |
commit | c63d7449d8276cb443e10a27009312ba8a50a8ca (patch) | |
tree | f0f28e505db78b085e34bab50e41b0db48ed240e /epan/dissectors/packet-pflog.c | |
parent | 6b712cca7da6f6d255a7301c78c564be407668a6 (diff) |
Sebastien Tandel:
some warning fixes
packet-http.c
set headers.content_length = 0 before the first potential use of it.
packet-kink.c
"ifdef kerberos" around one function declaration
packet-nbns.c
set headers.{dgm_length|pkt_offset|error_code} = 0
packet-pflog.c
delete capture_pflog and
capture_old_pflog which aren't used anymore in the code.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21120 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-pflog.c')
-rw-r--r-- | epan/dissectors/packet-pflog.c | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/epan/dissectors/packet-pflog.c b/epan/dissectors/packet-pflog.c index 122eeb8e27..bce720a354 100644 --- a/epan/dissectors/packet-pflog.c +++ b/epan/dissectors/packet-pflog.c @@ -78,48 +78,6 @@ static int hf_old_pflog_dir = -1; static gint ett_old_pflog = -1; -static void -capture_pflog(const guchar *pd, int offset, int len, packet_counts *ld) -{ - const struct pfloghdr *pflogh; - unsigned int hdrlen; - - pflogh = (const struct pfloghdr *)pd; - - if (!BYTES_ARE_IN_FRAME(offset, len, sizeof(guint8))) { - ld->other++; - return; - } - - if (pflogh->length < MIN_PFLOG_HDRLEN) { - ld->other++; - return; - } - hdrlen = BPF_WORDALIGN(pflogh->length); - if (!BYTES_ARE_IN_FRAME(offset, hdrlen, sizeof(guint8))) { - ld->other++; - return; - } - offset += hdrlen; - - switch (pflogh->af) { - - case BSD_PF_INET: - capture_ip(pd, offset, len, ld); - break; - -#ifdef notyet - case BSD_PF_INET6: - capture_ipv6(pd, offset, len, ld); - break; -#endif - - default: - ld->other++; - break; - } -} - static const value_string af_vals[] = { { BSD_PF_INET, "IPv4" }, { BSD_PF_INET6, "IPv6" }, @@ -316,41 +274,6 @@ proto_reg_handoff_pflog(void) dissector_add("wtap_encap", WTAP_ENCAP_PFLOG, pflog_handle); } - -static void -capture_old_pflog(const guchar *pd, int offset, int len, packet_counts *ld) -{ - struct old_pfloghdr pflogh; - - if (!BYTES_ARE_IN_FRAME(offset, len, (int)OLD_PFLOG_HDRLEN)) { - ld->other++; - return; - } - - offset += OLD_PFLOG_HDRLEN; - - /* Copy out the pflog header to insure alignment */ - memcpy(&pflogh, pd, sizeof(pflogh)); - pflogh.af = g_ntohl(pflogh.af); - - switch (pflogh.af) { - - case BSD_PF_INET: - capture_ip(pd, offset, len, ld); - break; - -#ifdef notyet - case BSD_PF_INET6: - capture_ipv6(pd, offset, len, ld); - break; -#endif - - default: - ld->other++; - break; - } -} - static void dissect_old_pflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { |