Returns the major and minor version numbers of the filter language currently recognized by the kernel. Gets the read timeout value. The underlying interface is not found. Specifies an open file descriptor that refers to a BPF device created using the open call. The underlying interface or network is down. Sets the hardware interface associate with the device.
|Date Added:||18 October 2007|
|File Size:||22.41 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Parameters Item Description fd Specifies an open file descriptor that refers to a BPF device created using the open call. When the immediate mode is enabled, reads return immediately upon packet reception.
Sets the buffer length for reads on BPF devices.
Adding additional bpf device files
The arg parameter specifies the length of time to wait before a read request times out. Returns the a structure of packet statistics. Sets the hardware interface associate with the device. The underlying interface or network is down.
The available memory is not enough.
Before installing a filter, applications must check that the current version is compatible with the running kernel. Packet Capture Library Overview.
The arg parameter is a pointer to the indicated type. 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. Sets the filter bof used by the kernel to discard uninteresting packets. Upon successful completion, ioctl returns a value of 0. Gets the read timeout value. Error Codes The ioctl commands fail under the following general conditions: The specified address is not available for interface.
ioctl BPF Control Operations
Such a process does not exist. Return Values Upon successful completion, ioctl returns a value of 0. Returns the type of the data link layer underlying the attached interface. This command must be performed before any pack-packets can be read. This parameter is initialized to zero by an open, indicating no timeout.
Forces the interface into promiscuous mode. Returns the buffer length for reads on BPF devices. Otherwise, it returns a value of -1 and sets errno to indicate the error. A listener that opened its interface nonpromiscuously can receive packets promiscuously, because more than one device can be listening on a given interface.
Selects the control function to be performed. All other fields are undefined.
tcpdump: Re: AIX BPF driver load
The underlying interface is not found. All packets, not just those destined for the local host, are processed. If the requested buffer size cannot be accommodated, the closest allowable size is set and returned in the arg parameter.
The permission was denied for the specified operation. A signal was caught during an ioctl operation. Represents additional information that is needed to perform the requested function.
The BPF device could not be set up.