This program shows a dns packet wire format. More...
#include "config.h"
#include "util/log.h"
#include "util/data/dname.h"
#include "util/data/msgparse.h"
#include "testcode/unitmain.h"
#include "testcode/readhex.h"
#include "sldns/sbuffer.h"
#include "sldns/parseutil.h"
Functions | |
static void | usage (char *argv[]) |
usage information for pktview | |
static void | read_input (sldns_buffer *pkt, FILE *in) |
read hex input | |
static void | analyze_dname (sldns_buffer *pkt) |
analyze domain name in packet, possibly compressed | |
static void | analyze_rdata (sldns_buffer *pkt, const sldns_rr_descriptor *desc, uint16_t rdlen) |
analyze rdata in packet | |
static void | analyze_rr (sldns_buffer *pkt, int q) |
analyze rr in packet | |
static void | analyze (sldns_buffer *pkt) |
analyse pkt | |
int | main (int argc, char *argv[]) |
main program for pktview | |
This program shows a dns packet wire format.