Lines Matching +defs:user +defs:t
113 * in 2106 it runs out for good. pcapng doesn't have that problem,
181 * This isn't exported on Windows, because it would only work if both
341 * user wants?
348 * The file has nanoseconds, the user
356 * user wants microseconds; nothing to do.
366 * user wants nanoseconds; nothing to do.
371 * The file has microseconds, the user
429 * backwards and retries the reads, which doesn't work
431 * that strategy won't work; we'd have to buffer some
450 * We can't easily tell whether the capture was done
455 * out why a capture doesn't have all the packet data,
458 * But don't grow the snapshot length past the
473 * if necessary. That way, we don't allocate a huge chunk of
524 bpf_u_int32 t;
574 * File has microseconds, user wants nanoseconds; convert
582 * File has nanoseconds, user wants microseconds; convert
599 * so presumably they weren't swapped.
606 t = hdr->caplen;
608 hdr->len = t;
620 * (We don't treat that as an error if it's not
648 * even though they don't set a snapshot length in bufmod
666 * length; we don't want to hand our caller a packet
735 * Adjust caplen accordingly, so we don't get confused later
820 pcap_dump(u_char *user, const struct pcap_pkthdr *h, const u_char *sp)
825 f = (FILE *)user;
827 * If the output file handle is in an error state, don't write
832 * freed), we have possibly left a broken file already, and won't
836 * might be able to insure that we don't produce a corrupted file,
862 * This doesn't prevent us from having corrupted output, and if we
863 * for some reason don't get a complete write we don't have any
891 errno, "Can't write to %s", fname);
909 * If this pcap_t hasn't been activated, it doesn't have a
910 * link-layer type, so we can't use it.
921 "%s: link-layer type %d isn't supported in savefiles",
996 "stream: link-layer type %d isn't supported in savefiles",
1016 "%s: link-layer type %d isn't supported in savefiles",
1031 * but will cause it to be created if it doesn't. It will
1036 * or if it doesn't.
1057 * it wasn't obvious from the Single UNIX Specification
1063 errno, "Can't seek to the beginning of %s", fname);
1096 * the link-layer header types don't match;
1098 * the snapshot lengths don't match;
1175 * A header isn't present; attempt to write it.
1179 errno, "Can't write to %s", fname);
1188 * XXX - this shouldn't be necessary, given that we're opening
1194 errno, "Can't seek to the end of %s", fname);
1237 * We don't have ftello() or _ftelli64(), so fall back on ftell().
1241 * write files > 2^31-1, so it won't matter anyway.