Skip to content

pcap_compile() support for name files - ethers, hosts, protocols, services, other? #844

@bubbasnmp

Description

@bubbasnmp

Is it documented somewhere that pcap_compile() does not support name resolution?

Npcap Development Tutorial
Filtering the traffic

pcap_compile() takes a string containing a high-level Boolean (filter) expression and produces a low-level byte code that can be interpreted by the fileter engine in the packet driver. The syntax of the boolean expression can be found in the Filtering expression syntax section of this documentation. (typo: fileter)

pcap-filter — Npcap API
One example:

Protocol can be a number or one of the names recognized by getprotobyname(3) (as in e.g. `getent(1) protocols'), typically from an entry in /etc/protocols,

Was there a writing filters document that would have covered name resolution?
Purpose of this manual

the section called “Developing software with Npcap” is for programmers who need to use Npcap from an application: it contains information about functions and data structures exported by the Npcap API, a manual for writing packet filters,

Developing software with Npcap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions