forked from osmocom/wireshark
http2: fix compilation without HAVE_HTTP2.
Change-Id: Ie141ee9905e5528bb875401f401ab6a7abaa2e09 Reviewed-on: https://code.wireshark.org/review/36875 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
f0e834dfe8
commit
c7316b4c78
|
@ -2786,8 +2786,13 @@ dissect_http2_data(tvbuff_t *tvb, packet_info *pinfo, http2_session_t* http2_ses
|
||||||
|
|
||||||
/* Headers */
|
/* Headers */
|
||||||
static int
|
static int
|
||||||
|
#ifdef HAVE_NGHTTP2
|
||||||
dissect_http2_headers(tvbuff_t *tvb, packet_info *pinfo, http2_session_t* h2session, proto_tree *http2_tree,
|
dissect_http2_headers(tvbuff_t *tvb, packet_info *pinfo, http2_session_t* h2session, proto_tree *http2_tree,
|
||||||
guint offset, guint8 flags)
|
guint offset, guint8 flags)
|
||||||
|
#else
|
||||||
|
dissect_http2_headers(tvbuff_t *tvb, packet_info *pinfo, http2_session_t* h2session _U_, proto_tree *http2_tree,
|
||||||
|
guint offset, guint8 flags)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
guint16 padding;
|
guint16 padding;
|
||||||
gint headlen;
|
gint headlen;
|
||||||
|
@ -2894,7 +2899,7 @@ static int
|
||||||
#ifdef HAVE_NGHTTP2
|
#ifdef HAVE_NGHTTP2
|
||||||
dissect_http2_settings(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session, proto_tree *http2_tree, guint offset, guint8 flags)
|
dissect_http2_settings(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session, proto_tree *http2_tree, guint offset, guint8 flags)
|
||||||
#else
|
#else
|
||||||
dissect_http2_settings(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session, proto_tree *http2_tree, guint offset, guint8 flags _U_)
|
dissect_http2_settings(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session _U_, proto_tree *http2_tree, guint offset, guint8 flags _U_)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
guint32 settingsid;
|
guint32 settingsid;
|
||||||
|
@ -2981,8 +2986,13 @@ dissect_http2_settings(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h
|
||||||
|
|
||||||
/* Push Promise */
|
/* Push Promise */
|
||||||
static int
|
static int
|
||||||
|
#ifdef HAVE_NGHTTP2
|
||||||
dissect_http2_push_promise(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session, proto_tree *http2_tree,
|
dissect_http2_push_promise(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session, proto_tree *http2_tree,
|
||||||
guint offset, guint8 flags _U_)
|
guint offset, guint8 flags _U_)
|
||||||
|
#else
|
||||||
|
dissect_http2_push_promise(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session _U_, proto_tree *http2_tree,
|
||||||
|
guint offset, guint8 flags _U_)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
guint16 padding;
|
guint16 padding;
|
||||||
gint headlen;
|
gint headlen;
|
||||||
|
@ -3068,7 +3078,11 @@ dissect_http2_window_update(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *h
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
#ifdef HAVE_NGHTTP2
|
||||||
dissect_http2_continuation(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session, proto_tree *http2_tree, guint offset, guint8 flags)
|
dissect_http2_continuation(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session, proto_tree *http2_tree, guint offset, guint8 flags)
|
||||||
|
#else
|
||||||
|
dissect_http2_continuation(tvbuff_t *tvb, packet_info *pinfo _U_, http2_session_t* h2session _U_, proto_tree *http2_tree, guint offset, guint8 flags)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
guint16 padding;
|
guint16 padding;
|
||||||
gint headlen;
|
gint headlen;
|
||||||
|
|
Loading…
Reference in New Issue