AIX BPF DRIVER DOWNLOAD
Otherwise, it returns a value of -1 and sets errno to indicate the error. The underlying interface or network is down. The arg parameter is a pointer to the indicated type. 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. Error Codes The ioctl commands fail under the following general conditions: Insufficient memory was available to process the request. A signal was caught during an ioctl operation.
|Date Added:||27 February 2017|
|File Size:||50.78 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Returns the name of the hardware interface that the device is listening on. Enables or disables the immediate mode, based on the truth value of the arg parameter.
Returns the buffer length for reads on BPF devices. Error Codes The ioctl commands fail under the following general conditions: The underlying interface or network is down.
Forces the interface into promiscuous mode. All other fields are undefined. The fd argument is a BPF device descriptor.
ioctl BPF Control Operations
The specified address is not available for interface. An incompatible filter might result in undefined behavior. The problem can be remedied with an appropriate filter. A command or argument, which is not valid, was specified.
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. Returns the major and minor version numbers of the filter language currently recognized by the kernel. This parameter is initialized to zero by an open, indicating no timeout. The BPF device could not be set up. Sets the filter program used by the kernel to discard uninteresting packets.
Parameters Item Description fd Specifies an open file descriptor that refers to a BPF ajx created using the open call. The arg parameter is a pointer to the indicated type.
The arg parameter specifies the length of time to wait before a read request times out. Before installing a filter, applications must check that the current version is compatible with the running kernel.
A listener that opened its interface nonpromiscuously can receive packets promiscuously, because more than one device can be listening on a given interface. Bp the type of the data link layer underlying the attached interface.
A signal was caught during an ioctl operation. The underlying interface is not found.
Selects the control function to be performed. The permission was denied for the specified operation. Otherwise, a read will be blocked until either the kernel buffer becomes full or a timeout occurs. Ax the read timeout value.
The available memory is not enough. All packets, not just those destined for the local host, are processed.
libpcap – Increasing number of BPF devices on AIX – Stack Overflow
Return Values Upon successful completion, ioctl returns a value of 0. Otherwise, it returns a value of -1 and sets errno to indicate the error. When the immediate mode is enabled, reads return immediately upon packet reception. 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. Specifies an open file descriptor that refers to a BPF device created using the open call.
For aiix descriptors, functions performed by this call are unspecified.