Lines Matching refs:linktype
113 * 6 bits of a linktype value in a capture file.
177 hdr.linktype = SWAPLONG(hdr.linktype);
189 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype));
190 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype);
244 if (p->linktype == DLT_EN10MB) {
439 switch (p->linktype) {
455 sf_write_header(FILE *fp, int linktype, int thiszone, int snaplen)
466 hdr.linktype = linktype;
494 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname)
510 if (sf_write_header(f, linktype, p->tzoff, p->snapshot) == -1) {
527 int linktype;
539 linktype = dlt_to_linktype(p->linktype);
540 if (linktype == -1) {
543 fname, p->linktype);
546 linktype |= p->linktype_ext;
563 return (pcap_setup_dump(p, linktype, f, fname));
572 int linktype;
574 linktype = dlt_to_linktype(p->linktype);
575 if (linktype == -1) {
578 p->linktype);
581 linktype |= p->linktype_ext;
583 return (pcap_setup_dump(p, linktype, f, "stream"));