open a unix device
The function moep_dev_unix_open() is used to open a unix device.
- Parameters
-
devname | the device name; This must be the path of a unix domain socket. |
mtu | the MTU of the device; This includes all headers. |
l2_ops | frame header operations for layer 2 |
- Returns
- This function returns a moep device.
- Return values
-
NULL | on error, errno is set appropriately. |
- Errors
- These are some standard errors generated and returned by this function. Additional errors may be generated and returned from the underlying system calls.
EINVAL | Invalid argument |
EMFILE | Too many open files; Some filedescriptors are too big for select. |
ENOMEM | Not enough memory available |