The underlying interface is not found. Returns the major and minor version numbers of the filter language currently recognized by the kernel. The arg parameter is a pointer to the indicated type. This command must be performed before any pack-packets can be read. Otherwise, it returns a value of -1 and sets errno to indicate the error.
|Date Added:||21 January 2004|
|File Size:||40.34 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
A signal was caught during an ioctl operation.
tcpdump: Re: AIX BPF driver load
Returns the type of the data link layer underlying the attached interface. The underlying interface is not found.
The cmd parameter and an optional third parameter with varying types are passed to and interpreted by the BPF ioctl function to perform an appropriate control operation that is specified by the user. For non-packet-capture descriptors, functions performed by this call are unspecified.
ioctl BPF Control Operations
Upon successful completion, ioctl returns a value of 0. The type of the arg parameter is either an integer or a pointer to a BPF-specific data structure, depending on the particular control request. Insufficient memory was available to process the request. The fd argument is a BPF device descriptor. An incompatible filter might result in undefined behavior. Otherwise, a read will be blocked until either the kernel buffer becomes full or a timeout occurs.
Forces the interface into promiscuous mode. Represents additional information that is needed to perform the requested function. The available memory is not enough. Packet Capture Library Overview.
The specified address is not available for interface. The problem can be remedied with an appropriate filter. If the requested buffer size cannot be accommodated, the closest allowable size is set and returned in the arg parameter.
The arg parameter is a pointer to the indicated type. Return Values Upon successful completion, ioctl returns a value of 0.
A command or argument, which is not valid, was specified. Sets the filter program used by the kernel to discard uninteresting packets.
Returns the a structure of packet statistics. A listener that opened its interface nonpromiscuously can receive packets promiscuously, because more than one device can be listening on a given interface. Such a process does not exist.
libpcap – Increasing number of BPF devices on AIX – Stack Overflow
Sets the buffer length for reads on BPF devices. The underlying interface or network is down. Returns the major and minor version numbers of the filter language currently recognized by the kernel.
Enables or disables the immediate mode, based on the truth value of the arg bpd. All other fields are undefined. Sets the hardware interface associate with the device. Specifies an open file descriptor that refers to a BPF device created using the open call. Returns the buffer length for reads on BPF devices. Selects the control function to be performed. Parameters Item Description fd Specifies an open file descriptor that refers to a BPF device created using the open call.