/* packet-git.c
* Routines for git packet dissection
- * RFC 1939
* Copyright 2010, Jelmer Vernooij <jelmer@samba.org>
*
* Wireshark - Network traffic analyzer
#include <stdio.h>
-#include <glib.h>
-
#include <epan/packet.h>
#include <epan/prefs.h>
#include "packet-tcp.h"
}
static guint
-get_git_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
+get_git_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U_)
{
guint16 plen;
plen-4, ENC_NA);
}
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
static int
{
tcp_dissect_pdus(tvb, pinfo, tree, git_desegment, 4, get_git_pdu_len,
dissect_git_pdu, data);
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
void