summaryrefslogtreecommitdiff
path: root/proto_vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto_vlan.c')
-rw-r--r--proto_vlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto_vlan.c b/proto_vlan.c
index 9ba66a9..a175dde 100644
--- a/proto_vlan.c
+++ b/proto_vlan.c
@@ -35,7 +35,7 @@ static void vlan(struct pkt_buff *pkt)
tprintf("Proto (0x%.4x)", ntohs(vlan->h_vlan_encapsulated_proto));
tprintf(" ]\n");
- pkt_set_proto(pkt, &eth_lay2, ntohs(vlan->h_vlan_encapsulated_proto));
+ pkt_set_dissector(pkt, &eth_lay2, ntohs(vlan->h_vlan_encapsulated_proto));
}
static void vlan_less(struct pkt_buff *pkt)
@@ -50,7 +50,7 @@ static void vlan_less(struct pkt_buff *pkt)
tprintf(" VLAN%d", (tci & 0x0FFF));
- pkt_set_proto(pkt, &eth_lay2, ntohs(vlan->h_vlan_encapsulated_proto));
+ pkt_set_dissector(pkt, &eth_lay2, ntohs(vlan->h_vlan_encapsulated_proto));
}
struct protocol vlan_ops = {