#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 "oshw.h"
Go to the source code of this file.
Functions | |
ec_adaptert * | oshw_find_adapters (void) |
void | oshw_free_adapters (ec_adaptert *adapter) |
uint16 | oshw_htons (uint16 host) |
uint16 | oshw_ntohs (uint16 network) |
ec_adaptert* oshw_find_adapters | ( | void | ) |
Create list over available network adapters.
Definition at line 42 of file rtems/oshw.c.
void oshw_free_adapters | ( | ec_adaptert * | adapter | ) |
Free memory allocated memory used by adapter collection.
[in] | adapter | = First element in linked list of adapters EC_NOFRAME. |
Definition at line 106 of file rtems/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 21 of file rtems/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 33 of file rtems/oshw.c.