#include <sys/ioctl.h>
#include <net/if.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ethercat_soem/oshw.h"
Go to the source code of this file.
Function Documentation
Create list over available network adapters.
- Returns:
- First element in linked list of adapters
Definition at line 57 of file oshw.c.
Free memory allocated memory used by adapter collection.
- Parameters:
-
[in] | adapter | = First element in linked list of adapters EC_NOFRAME. |
Definition at line 121 of file oshw.c.
Host to Network byte order (i.e. to big endian).
Note that Ethercat uses little endian byte order, except for the Ethernet header which is big endian as usual.
Definition at line 36 of file oshw.c.
Network (i.e. big endian) to Host byte order.
Note that Ethercat uses little endian byte order, except for the Ethernet header which is big endian as usual.
Definition at line 48 of file oshw.c.