102 struct pcap_pkthdr *pkt_hdr,
const u_char *pkt);
nmsg_res nmsg_ipdg_parse_pcap(struct nmsg_ipdg *dg, nmsg_pcap_t pcap, struct pcap_pkthdr *pkt_hdr, const u_char *pkt)
Parse IP datagrams from the data link layer, performing reassembly if necessary.
nmsg_res nmsg_ipdg_parse_pcap_raw(struct nmsg_ipdg *dg, int datalink, const uint8_t *pkt, size_t len)
Like nmsg_ipdg_parse_pcap(), but performs no fragment handling.
nmsg_res nmsg_ipdg_parse(struct nmsg_ipdg *dg, unsigned etype, size_t len, const u_char *pkt)
Parse IP packets from the network layer, discarding fragments.
const u_char * network
pointer to network header
int proto_transport
transport protocol
const u_char * transport
pointer to transport header
unsigned len_transport
length starting from transport
unsigned len_network
length starting from network
unsigned len_payload
length starting from payload
int proto_network
PF_* value.
const u_char * payload
pointer to application payload