pcap_get_tstamp_precision.3pcap 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .\"Copyright (c) 2013, Michal Sekletar
  2. .\"All rights reserved.
  3. .\"
  4. .\"Redistribution and use in source and binary forms, with or without
  5. .\"modification, are permitted provided that the following conditions
  6. .\"are met:
  7. .\"
  8. .\" 1. Redistributions of source code must retain the above copyright
  9. .\" notice, this list of conditions and the following disclaimer.
  10. .\" 2. Redistributions in binary form must reproduce the above copyright
  11. .\" notice, this list of conditions and the following disclaimer in
  12. .\" the documentation and/or other materials provided with the
  13. .\" distribution.
  14. .\" 3. The names of the authors may not be used to endorse or promote
  15. .\" products derived from this software without specific prior
  16. .\" written permission.
  17. .\"
  18. .\"THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  19. .\"IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  20. .\"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. .TH PCAP_GET_TSTAMP_PRECISION 3PCAP "18 December 2013"
  22. .SH NAME
  23. pcap_get_tstamp_precision \- get the time stamp precision returned in
  24. captures
  25. .SH SYNOPSIS
  26. .nf
  27. .ft B
  28. #include <pcap/pcap.h>
  29. .ft
  30. .LP
  31. .ft B
  32. int pcap_get_tstamp_precision(pcap_t *p);
  33. .ft
  34. .fi
  35. .SH DESCRIPTION
  36. .B pcap_get_tstamp_precision()
  37. returns the precision of the time stamp returned in packet captures on the pcap
  38. descriptor.
  39. .SH RETURN VALUE
  40. .B pcap_get_tstamp_precision()
  41. returns
  42. .B PCAP_TSTAMP_PRECISION_MICRO
  43. or
  44. .BR PCAP_TSTAMP_PRECISION_NANO ,
  45. which indicates
  46. that pcap captures contains time stamps in microseconds or nanoseconds
  47. respectively.
  48. .SH SEE ALSO
  49. pcap(3PCAP),
  50. pcap_set_tstamp_precision(3PCAP),
  51. pcap-tstamp(7)