From f2828acdd708eea5ac95542c2258c894ef1cda9b Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 4 May 2015 09:51:57 +0200 Subject: netsniff-ng: Rename protocol dissector member of struct pkt_buff In commit d312a25879d5 ("netsniff-ng nlmsg: Print netlink protocol name"), the struct protocol member of struct pkt_buff was renamed to handler to account for the newly added proto field. However, the corresponding function pkt_set_proto wasn't renamed which is a bit counter-intuitive. Fix this by renaming the member again, this time to dissector (as I don't consider handler a particulary meaningful name) and adjust the set function's name accordingly. Signed-off-by: Tobias Klauser --- proto_vlan_q_in_q.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto_vlan_q_in_q.c') diff --git a/proto_vlan_q_in_q.c b/proto_vlan_q_in_q.c index 20b4bc1..8bc2325 100644 --- a/proto_vlan_q_in_q.c +++ b/proto_vlan_q_in_q.c @@ -37,7 +37,7 @@ static void QinQ_full(struct pkt_buff *pkt) tprintf("Proto (0x%.4x)", ntohs(QinQ->TPID)); tprintf(" ]\n"); - pkt_set_proto(pkt, ð_lay2, ntohs(QinQ->TPID)); + pkt_set_dissector(pkt, ð_lay2, ntohs(QinQ->TPID)); } static void QinQ_less(struct pkt_buff *pkt) @@ -52,7 +52,7 @@ static void QinQ_less(struct pkt_buff *pkt) tprintf(" VLAN%d", (tci & 0x0FFF)); - pkt_set_proto(pkt, ð_lay2, ntohs(QinQ->TPID)); + pkt_set_dissector(pkt, ð_lay2, ntohs(QinQ->TPID)); } struct protocol QinQ_ops = { -- cgit v1.2.3-54-g00ecf