Home | History | Annotate | Download | only in libpcap

Lines Matching refs:linktype

113  * 6 bits of a linktype value in a capture file.
210 hdr.linktype = SWAPLONG(hdr.linktype);
235 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype));
236 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype);
342 if (p->linktype == DLT_EN10MB) {
563 swap_pseudo_headers(p->linktype, hdr, *data);
569 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen)
580 hdr.linktype = linktype;
608 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname)
624 if (sf_write_header(p, f, linktype, p->tzoff, p->snapshot) == -1) {
641 int linktype;
653 linktype = dlt_to_linktype(p->linktype);
654 if (linktype == -1) {
657 fname, p->linktype);
660 linktype |= p->linktype_ext;
677 return (pcap_setup_dump(p, linktype, f, fname));
686 int linktype;
688 linktype = dlt_to_linktype(p->linktype);
689 if (linktype == -1) {
692 p->linktype);
695 linktype |= p->linktype_ext;
697 return (pcap_setup_dump(p, linktype, f, "stream"));