aboutsummaryrefslogtreecommitdiff
path: root/pcap_datalink.3pcap.in
Commit message (Collapse)AuthorAgeFilesLines
* Mention DLT_LINUX_SLL2 as a type for the "any" device.Guy Harris2020-03-301-0/+2
| | | | | | When we scold programmers don't to assume that everything is Ethernet, mention both DLT_LINUX_SLL and DLT_LINUX_SLL2 as possible link types for the "any" device.
* Style cleanup.Guy Harris2019-11-231-3/+3
| | | | | | | | Use the BSD house style, in which, in foobar() returns 17 on success and 137 on failure. "foobar" is boldfaced but "()" isn't.
* Fix manpage reference formatting to be consistent.Daniel Miller2018-08-241-3/+4
| | | | | | | All manpage references such as pcap_create(3PCAP) will now be formatted with the identifier (e.g. "pcap_create") in **bold** and the section name (e.g. "(3PCAP)") in roman (default) face. This is how most manpages seem to be formatted and makes things more consistent.
* Refine references in some man pages, round 3.Denis Ovsienko2018-07-171-2/+2
| | | | [skip ci]
* Use HTTPS in the www.tcpdump.org URLs.Denis Ovsienko2018-07-091-1/+1
| | | | [skip ci]
* update last modified date in man page(s)Denis Ovsienko2015-12-181-1/+1
|
* refresh last midification dates for some man pagesDenis Ovsienko2014-04-071-1/+1
| | | | | This change reflects only meaningful (i.e. not purely editorial) changes in the text.
* remove libpcap's own CVS keywordsDenis Ovsienko2014-01-031-2/+0
| | | | | | This change removes CVS keywords that express that the file belongs to libpcap repository. All such keywords represented the revision and timestamp by the end of 2008 or even older.
* Hammer into users' heads the idea that they must use pcap_datalink().Guy Harris2013-10-131-0/+19
| | | | | | | | | | | | | | Note for pcap_loop()/pcap_dispatch(), and for pcap_next()/pcap_next_ex(), that in order to interpret the packets you have to know the link-layer header type for the pcap_t, as returned by pcap_datalink(). Note in all the places we discuss the value returned by pcap_datalink() that the program *MUST NOT ASSUME* that it will return a particular value, and specifically note that the Linux "any" device has a pcap_datalink() value of DLT_LINUX_SLL even if all the network interfaces on the system happen to have some other link-layer header type.
* Just return PCAP_ERROR_NOT_ACTIVATED for some calls.Guy Harris2013-09-171-0/+10
| | | | | | | | | | | Return PCAP_ERROR_NOT_ACTIVATED, not PCAP_ERROR (-1), for calls to pcap_datalink(), pcap_datalink_ext(), and pcap_list_datalinks() if called on a non-activated pcap_t. Pre-pcap_create() code will never see PCAP_ERROR_NOT_ACTIVATED, and code using pcap_create() will either not see it (if it's correct) or is already getting bogus results (if it's not correct). Document that while we're at it.
* Consistently use "link-layer header type".Guy Harris2010-08-221-2/+2
| | | | | | Use "link-layer header type" as the term for DLT_ values; it doesn't necessarily correspond to the actual data link type of the device (802.11 devices, for example, can supply Ethernet headers).
* Don't hard-wire section 4 as the section for the pcap-filter andguy2008-10-211-0/+41
pcap-linktype man pages; it should be section 7 for UN*Xes using the V7/BSD conventions (this includes *BSD, Linux, and Mac OS X), and section 5 for UN*Xes using the System V conventions (this includes Solaris and HP-UX, and possibly AIX).