aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pflog.c
diff options
context:
space:
mode:
authordarkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-17 16:06:27 +0000
committerdarkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-17 16:06:27 +0000
commit1f59d67daa48d62b6c24b2e7bb90b86a711af170 (patch)
treeefd1215a558cc210abe61e52919a29560f42fc33 /epan/dissectors/packet-pflog.c
parent1ae3a88b19075dedf8a586e57fee60571b130970 (diff)
pflog: use BSD_AF_ defines from <epan/aftypes.h>.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37695 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-pflog.c')
-rw-r--r--epan/dissectors/packet-pflog.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/dissectors/packet-pflog.c b/epan/dissectors/packet-pflog.c
index cc6a1d9b17..6a6f60975b 100644
--- a/epan/dissectors/packet-pflog.c
+++ b/epan/dissectors/packet-pflog.c
@@ -34,6 +34,7 @@
#include <epan/packet.h>
+#include <epan/aftypes.h>
#include <epan/etypes.h>
#include <epan/addr_resolv.h>
#include "packet-ip.h"
@@ -77,8 +78,8 @@ static int hf_old_pflog_dir = -1;
static gint ett_old_pflog = -1;
static const value_string af_vals[] = {
- { BSD_PF_INET, "IPv4" },
- { BSD_PF_INET6, "IPv6" },
+ { BSD_AF_INET, "IPv4" },
+ { BSD_AF_INET6_BSD, "IPv6" },
{ 0, NULL }
};
@@ -197,11 +198,11 @@ dissect_pflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
switch (pflogh.af) {
- case BSD_PF_INET:
+ case BSD_AF_INET:
call_dissector(ip_handle, next_tvb, pinfo, tree);
break;
- case BSD_PF_INET6:
+ case BSD_AF_INET6_BSD:
call_dissector(ipv6_handle, next_tvb, pinfo, tree);
break;
@@ -326,11 +327,11 @@ dissect_old_pflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
switch (pflogh.af) {
- case BSD_PF_INET:
+ case BSD_AF_INET:
call_dissector(ip_handle, next_tvb, pinfo, tree);
break;
- case BSD_PF_INET6:
+ case BSD_AF_INET6_BSD:
call_dissector(ipv6_handle, next_tvb, pinfo, tree);
break;