mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/seth/pcap_findalldevs'
- Minor adjustments to whitespace/formatting * origin/topic/seth/pcap_findalldevs: Finishing changes from code review. Update src/iosource/pcap/pcap.bif Update src/iosource/pcap/pcap.bif Update scripts/base/init-bare.zeek Update src/iosource/pcap/pcap.bif I accidentally missed a paren New bif to wrap pcap_findalldevs
This commit is contained in:
commit
961532a8f7
4 changed files with 88 additions and 1 deletions
|
@ -4976,6 +4976,26 @@ export {
|
|||
## Number of Mbytes to provide as buffer space when capturing from live
|
||||
## interfaces.
|
||||
const bufsize = 128 &redef;
|
||||
|
||||
## The definition of a "pcap interface".
|
||||
type Interface: record {
|
||||
## The interface/device name.
|
||||
name: string;
|
||||
## A human-readable description of the device.
|
||||
description: string &optional;
|
||||
## The network addresses associated with the device.
|
||||
addrs: set[addr];
|
||||
## Whether the device is a loopback interface. E.g. addresses
|
||||
## of ``127.0.0.1`` or ``[::1]`` are used by loopback interfaces.
|
||||
is_loopback: bool;
|
||||
|
||||
## Whether the device is up. Not set when that info is unavailable.
|
||||
is_up: bool &optional;
|
||||
## Whether the device is running. Not set when that info is unavailable.
|
||||
is_running: bool &optional;
|
||||
};
|
||||
|
||||
type Interfaces: set[Pcap::Interface];
|
||||
} # end export
|
||||
|
||||
module DCE_RPC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue