unbound 0.1
Functions
pktview.c File Reference

This program shows a dns packet wire format. More...

#include "config.h"
#include "ldns/ldns.h"
#include "util/log.h"
#include "util/data/dname.h"
#include "util/data/msgparse.h"
#include "testcode/unitmain.h"
#include "testcode/readhex.h"

Functions

static void usage (char *argv[])
 usage information for pktview
static void read_input (ldns_buffer *pkt, FILE *in)
 read hex input
static void analyze_dname (ldns_buffer *pkt)
 analyze domain name in packet, possibly compressed
static void analyze_rdata (ldns_buffer *pkt, const ldns_rr_descriptor *desc, uint16_t rdlen)
 analyze rdata in packet
static void analyze_rr (ldns_buffer *pkt, int q)
 analyze rr in packet
static void analyze (ldns_buffer *pkt)
 analyse pkt
int main (int argc, char *argv[])
 main program for pktview

Detailed Description

This program shows a dns packet wire format.