diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-05-04 09:51:57 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-05-04 09:51:57 +0200 |
commit | f2828acdd708eea5ac95542c2258c894ef1cda9b (patch) | |
tree | f1054a29de62f52307c2dc0060484d964e743568 /proto_ipv6_routing.c | |
parent | 47fb4f6219e6936fd99d28a1e43135544d10b4ff (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'proto_ipv6_routing.c')
-rw-r--r-- | proto_ipv6_routing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto_ipv6_routing.c b/proto_ipv6_routing.c index f70f73a..f56f32f 100644 --- a/proto_ipv6_routing.c +++ b/proto_ipv6_routing.c @@ -118,7 +118,7 @@ static void routing(struct pkt_buff *pkt) return; pkt_pull(pkt, data_len); - pkt_set_proto(pkt, ð_lay3, routing->h_next_header); + pkt_set_dissector(pkt, ð_lay3, routing->h_next_header); } static void routing_less(struct pkt_buff *pkt) @@ -152,7 +152,7 @@ static void routing_less(struct pkt_buff *pkt) return; pkt_pull(pkt, data_len); - pkt_set_proto(pkt, ð_lay3, routing->h_next_header); + pkt_set_dissector(pkt, ð_lay3, routing->h_next_header); } struct protocol ipv6_routing_ops = { |