aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-pflog.c13
-rw-r--r--epan/dissectors/packet-pflog.h3
2 files changed, 7 insertions, 9 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;
diff --git a/epan/dissectors/packet-pflog.h b/epan/dissectors/packet-pflog.h
index fa51bb9926..3a1f0da20b 100644
--- a/epan/dissectors/packet-pflog.h
+++ b/epan/dissectors/packet-pflog.h
@@ -73,7 +73,4 @@ struct old_pfloghdr {
#define PF_IN 1
#define PF_OUT 2
-# define BSD_PF_INET 2
-# define BSD_PF_INET6 24
-
#endif /* __PACKET_PFLOG_H__ */