aboutsummaryrefslogtreecommitdiff
path: root/nametoaddr.h
Commit message (Collapse)AuthorAgeFilesLines
* Clean up DECnet address handling.Denis Ovsienko2023-03-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | In gen_scode() make any id invalid DECnet address. In gen_ncode() make {N} invalid DECnet address. In __pcap_atodn() replace sscanf() with an FSM to parse the entire input string and to require a valid nominal DECnet address syntax. Remove __pcap_nametodnaddr(), which worked on Ultrix only. Add various comments to explain the context better. In pcap-filter(3PCAP) clarify the nominal DECnet address syntax and remove mentions of the host name translation. Before: filtertest: decnet name support not included, 'abc' cannot be translated 1 -- no error 100.2000 -- no error 1.2.3 -- no error 1.2.3.4 -- no error After: filtertest: invalid DECnet address 'abc' filtertest: invalid DECnet address '1' filtertest: invalid DECnet address '100.2000' filtertest: invalid DECnet address '1.2.3' filtertest: invalid DECnet address '1.2.3.4'
* Revert "Don't wrap chunks of headers with extern "C" { ... }."Guy Harris2021-03-171-3/+11
| | | | | | | This reverts commit 8b6b13d4cbb685db047af04c49817ed81fff7c35. That solution allowed you to intermix declarations/definitions and before the extern "C", so you can see what's being imported.
* Don't wrap chunks of headers with extern "C" { ... }.Guy Harris2021-03-171-11/+3
| | | | | | | | | | | Instead, explictly flag individual functions with extern "C" by adding it to the tag we're already using for exported functions, and creating a new tag to use for non-exported functions. Rename those tags, and the tags used for exported data, to say what they do, rather than saying "this is an API" (we may export things we don't want to be treated as part of the API, but that we have to export because some programs use them).
* Don't use global state for the BPF compiler.Guy Harris2016-02-111-1/+1
| | | | | | | | This allows multiple pcap_compile() calls to be in progress on different pcap_t's in different threads. (No, you can't count on that behavior in older versions of libpcap, so only do that if you know you're using a newer version of libpcap.)
* Sigh, didn't add these to the previous commit.Guy Harris2015-12-271-0/+48