trafgen: parser: Add syntax to build UDP header
[netsniff-ng.git] / dissector_netlink.c
blob2b23a99e41b0f67075687cd81fcb168e078b4ead
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2014 Tobias Klauser.
4 * Subject to the GPL, version 2.
5 */
7 #include "dissector.h"
8 #include "dissector_netlink.h"
10 static inline void dissector_init_entry(int type)
12 dissector_set_print_type(&nlmsg_ops, type);
15 static inline void dissector_init_exit(int type)
17 dissector_set_print_type(&none_ops, type);
20 void dissector_init_netlink(int fnttype)
22 dissector_init_entry(fnttype);
23 dissector_init_exit(fnttype);
26 void dissector_cleanup_netlink(void)