Lines Matching defs:linktype
280 hdr.linktype = SWAPLONG(hdr.linktype);
308 if (LT_RESERVED1(hdr.linktype) != 0) {
310 "savefile linktype reserved field not zero (0x%08x)",
311 LT_RESERVED1(hdr.linktype));
329 p->linktype = linktype_to_dlt(LT_LINKTYPE(hdr.linktype));
330 p->linktype_ext = LT_LINKTYPE_EXT(hdr.linktype);
331 p->snapshot = pcapint_adjust_snapshot(p->linktype, hdr.snaplen);
437 if (p->linktype == DLT_EN10MB) {
615 if (hdr->caplen > max_snaplen_for_dlt(p->linktype)) {
632 max_snaplen_for_dlt(p->linktype));
786 pcapint_post_process(p->linktype, p->swapped, hdr, *data);
792 sf_write_header(pcap_t *p, FILE *fp, int linktype, int snaplen)
808 hdr.linktype = linktype;
873 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname)
889 if (sf_write_header(p, f, linktype, p->snapshot) == -1) {
906 int linktype;
918 linktype = dlt_to_linktype(p->linktype);
919 if (linktype == -1) {
922 fname, p->linktype);
925 linktype |= p->linktype_ext;
949 return (pcap_setup_dump(p, linktype, f, fname));
991 int linktype;
993 linktype = dlt_to_linktype(p->linktype);
994 if (linktype == -1) {
997 p->linktype);
1000 linktype |= p->linktype_ext;
1002 return (pcap_setup_dump(p, linktype, f, "stream"));
1009 int linktype;
1013 linktype = dlt_to_linktype(p->linktype);
1014 if (linktype == -1) {
1017 fname, linktype);
1027 return (pcap_setup_dump(p, linktype, stdout, "standard output"));
1161 if ((bpf_u_int32)linktype != ph.linktype) {
1163 "%s: different linktype, cannot append to file", fname);
1177 if (sf_write_header(p, f, linktype, p->snapshot) == -1) {