aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sflow.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-06-14 11:55:08 -0400
committerAnders Broman <a.broman58@gmail.com>2016-06-15 06:03:57 +0000
commit0ef1d941ea971fc4367b97ca7e7ab7a2ee9e9b88 (patch)
tree824d57e52d2cef773f6f93394483bd0f32cc94b8 /epan/dissectors/packet-sflow.c
parentc19e6c24067fd0aa1ea628de85f25ef9ece08839 (diff)
Allow control of individual columns to be (un)writable.
Most protocols just want to limit COL_INFO or COL_PROTOCOL so give that level of granularity. Bug: 12144 Bug: 5117 Bug: 11144 Change-Id: I8de9b7d2c69e90d3fbfc0a52c2bd78c3de58e2f8 Reviewed-on: https://code.wireshark.org/review/15894 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-sflow.c')
-rw-r--r--epan/dissectors/packet-sflow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sflow.c b/epan/dissectors/packet-sflow.c
index 991f283e8c..6c9206db6f 100644
--- a/epan/dissectors/packet-sflow.c
+++ b/epan/dissectors/packet-sflow.c
@@ -679,7 +679,7 @@ dissect_sflow_245_sampled_header(tvbuff_t *tvb, packet_info *pinfo,
next_tvb = tvb_new_subset(tvb, offset, header_length, frame_length);
/* save some state */
- save_writable = col_get_writable(pinfo->cinfo);
+ save_writable = col_get_writable(pinfo->cinfo, -1);
/*
If sFlow samples a TCP packet it is very likely that the
@@ -705,7 +705,7 @@ dissect_sflow_245_sampled_header(tvbuff_t *tvb, packet_info *pinfo,
pinfo->flags.in_error_pkt = TRUE;
}
- col_set_writable(pinfo->cinfo, FALSE);
+ col_set_writable(pinfo->cinfo, -1, FALSE);
copy_address_shallow(&save_dl_src, &pinfo->dl_src);
copy_address_shallow(&save_dl_dst, &pinfo->dl_dst);
copy_address_shallow(&save_net_src, &pinfo->net_src);
@@ -727,7 +727,7 @@ dissect_sflow_245_sampled_header(tvbuff_t *tvb, packet_info *pinfo,
ENDTRY;
/* restore saved state */
- col_set_writable(pinfo->cinfo, save_writable);
+ col_set_writable(pinfo->cinfo, -1, save_writable);
pinfo->flags.in_error_pkt = save_in_error_pkt;
copy_address_shallow(&pinfo->dl_src, &save_dl_src);
copy_address_shallow(&pinfo->dl_dst, &save_dl_dst);