Crate libdlpi_sys

Source

Structs§

dl_priority_t
Defines priority for DLPI traffic sent.
dlpi_recvinfo_t
Information from received DLPI traffic.
dlpi_sendinfo_t
Information used to send DLPI traffic.

Enums§

dlpi_addrtype_t
Indicates if an address is unicast or not.
dlpi_handle_t
Opaque handle to a DLPI link instance.

Constants§

DLPI_DEVIPNET
Open IP DLPI link under /dev/ipnet.
DLPI_DEVONLY
Open DLPI link under /dev only.
DLPI_EBADLINK
bad DLPI link
DLPI_EBADMSG
bad DLPI message
DLPI_EINHANDLE
invalid DLPI handle
DLPI_EINVAL
invalid argument
DLPI_EIPNETINFONOTSUP
DLPI_IPNETINFO not supported
DLPI_ELINKNAMEINVAL
invalid DLPI linkname
DLPI_EMODENOTSUP
unsupported DLPI connection mode
DLPI_ENOLINK
DLPI link does not exist
DLPI_ENOTEIDINVAL
invalid DLPI notification id
DLPI_ENOTEINVAL
invalid DLPI notification type
DLPI_ENOTENOTSUP
DLPI notif. not supported by link
DLPI_ENOTSTYLE2
DLPI style-2 node reports style-1
DLPI_ERAWNOTSUP
DLPI raw mode not supported
DLPI_ETIMEDOUT
DLPI operation timed out
DLPI_EUNAVAILSAP
unavailable DLPI SAP
DLPI_EVERNOTSUP
unsupported DLPI Version
DLPI_EXCL
DLPI Flags Exclusive open.
DLPI_FAILURE
DLPI operation failed
DLPI_IPNETINFO
Request ipnetinfo headers.
DLPI_NATIVE
Open DLPI link in native mode.
DLPI_NOATTACH
Do not attach PPA.
DLPI_PASSIVE
Open DLPI link in passive mode.
DLPI_PHYSADDR_MAX
Maximum size for a physical address.
DLPI_RAW
Open DLPI link in raw mode.
DLPI_SERIAL
Synchronous serial line interface.
DLPI_SUCCESS
DLPI operation succeeded
DL_PROMISC_MULTI
Promiscuous mode for multicast
DL_PROMISC_PHYS
Promiscuous mode at the phys level
DL_PROMISC_RX_ONLY
Promiscuous mode for rx only
DL_PROMISC_SAP
Promiscuous mode at the sap level
DL_SYSERR
Indicates a non-DLPI specific system error in a DLPI call.

Functions§

dlpi_bind
Attempt to bind the provided DLPI handle to the service access point sap.
dlpi_close
Closes the open DLPI link instance associated with the provided handle.
dlpi_disabmulti
Disable reception of messages destined to the multicast address pointed to by addrp.
dlpi_enabmulti
Enable reception of messages destined to the multicast address pointed to by addrp.
dlpi_fd
Returns a file descriptor that can be used to directly operate on the open DLPI stream associated with the provided handle.
dlpi_open
Creates an instance of the DLPI version 2 link named by linnkname.
dlpi_promiscoff
Disable promiscuous mode for the specified handle. See DL_PROMISC_* for levels.
dlpi_promiscon
Enable promiscuous mode for the specified handle. See DL_PROMISC_* for levels.
dlpi_recv
Attempt to receive data messages over the DLIP link instance associated with the provided DLPI handle.
dlpi_send
Attempt to send the contets of msgbuf over the DLPI link instance associated with the provided DLPI handle.
null_dlpi_handle
A convenience method for creating a null dlpi handle to be later initialized by dlpi_open.