aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-enc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-07-19 03:28:39 +0000
committerGuy Harris <guy@alum.mit.edu>2012-07-19 03:28:39 +0000
commitdefeb589d62455dea877659de9d42294c914d3f7 (patch)
tree128fc596ffa5fcfca840e3b54362c5e8f6b7a4d0 /epan/dissectors/packet-enc.c
parent7184dac548a97c3ebc0ff41a617cbcfe3e58306b (diff)
Rename ENC_HDRLEN to BSD_ENC_HDRLEN, to see if that squelches the false
positive in the "you're passing an ENC_ value as a field value" check in checkAPI.pl. svn path=/trunk/; revision=43816
Diffstat (limited to 'epan/dissectors/packet-enc.c')
-rw-r--r--epan/dissectors/packet-enc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-enc.c b/epan/dissectors/packet-enc.c
index 70482a394d..4690171a34 100644
--- a/epan/dissectors/packet-enc.c
+++ b/epan/dissectors/packet-enc.c
@@ -49,7 +49,7 @@ struct enchdr {
guint32 spi;
guint32 flags;
};
-#define ENC_HDRLEN sizeof(struct enchdr)
+#define BSD_ENC_HDRLEN sizeof(struct enchdr)
# define BSD_ENC_INET 2
# define BSD_ENC_INET6 24
@@ -74,7 +74,7 @@ capture_enc(const guchar *pd, int len, packet_counts *ld)
{
guint32 af;
- if (!BYTES_ARE_IN_FRAME(0, len, (int)ENC_HDRLEN)) {
+ if (!BYTES_ARE_IN_FRAME(0, len, (int)BSD_ENC_HDRLEN)) {
ld->other++;
return;
}
@@ -83,11 +83,11 @@ capture_enc(const guchar *pd, int len, packet_counts *ld)
switch (af) {
case BSD_ENC_INET:
- capture_ip(pd, ENC_HDRLEN, len, ld);
+ capture_ip(pd, BSD_ENC_HDRLEN, len, ld);
break;
case BSD_ENC_INET6:
- capture_ipv6(pd, ENC_HDRLEN, len, ld);
+ capture_ipv6(pd, BSD_ENC_HDRLEN, len, ld);
break;
default:
@@ -122,7 +122,7 @@ dissect_enc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tree) {
ti = proto_tree_add_protocol_format(tree, proto_enc, tvb, 0,
- ENC_HDRLEN,
+ BSD_ENC_HDRLEN,
"Enc %s, SPI 0x%8.8x, %s%s%s%s",
val_to_str(ench.af, af_vals, "unknown (%u)"),
ench.spi,
@@ -146,7 +146,7 @@ dissect_enc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
/* Set the tvbuff for the payload after the header */
- next_tvb = tvb_new_subset_remaining(tvb, ENC_HDRLEN);
+ next_tvb = tvb_new_subset_remaining(tvb, BSD_ENC_HDRLEN);
switch (ench.af) {