summaryrefslogtreecommitdiff
path: root/proto_ethernet.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto_ethernet.c')
-rw-r--r--proto_ethernet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto_ethernet.c b/proto_ethernet.c
index 98d40e5..5a257f0 100644
--- a/proto_ethernet.c
+++ b/proto_ethernet.c
@@ -69,7 +69,7 @@ static void ethernet(struct pkt_buff *pkt)
tprintf("(%s => %s)", ether_lookup_addr(src_mac), ether_lookup_addr(dst_mac));
tprintf(" ]\n");
- pkt_set_proto(pkt, &eth_lay2, ntohs(eth->h_proto));
+ pkt_set_dissector(pkt, &eth_lay2, ntohs(eth->h_proto));
}
static void ethernet_less(struct pkt_buff *pkt)
@@ -90,7 +90,7 @@ static void ethernet_less(struct pkt_buff *pkt)
tprintf("%s%s%s", colorize_start(bold),
lookup_ether_type(ntohs(eth->h_proto)), colorize_end());
- pkt_set_proto(pkt, &eth_lay2, ntohs(eth->h_proto));
+ pkt_set_dissector(pkt, &eth_lay2, ntohs(eth->h_proto));
}
struct protocol ethernet_ops = {