/* * netsniff-ng - the packet sniffing beast * Copyright (C) 2009, 2010 Daniel Borkmann * Copyright (C) 2012 Christoph Jaeger * Subject to the GPL, version 2. */ #ifndef PROTO_H #define PROTO_H #include #include #include "tprintf.h" struct pkt_buff; struct protocol { /* Needs to be filled out by user */ const unsigned int key; void (*print_full)(struct pkt_buff *pkt); void (*print_less)(struct pkt_buff *pkt); /* Used by program logic */ struct protocol *next; void (*process) (struct pkt_buff *pkt); }; extern void empty(struct pkt_buff *pkt); extern void _hex(uint8_t *ptr, size_t len); extern void hex(struct pkt_buff *pkt); extern void _ascii(uint8_t *ptr, size_t len); extern void ascii(struct pkt_buff *pkt); extern void hex_ascii(struct pkt_buff *pkt); #endif /* PROTO_H */ hidden' name='id' value='1254856c07e0e5707d3291f625db8ed69a866be2'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Expand)AuthorFilesLines
2017-02-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller