vxworks/oshw.c
Go to the documentation of this file.
1 /*
2  * Licensed under the GNU General Public License version 2 with exceptions. See
3  * LICENSE file in the project root for full license information
4  */
5 
6 #include <sys/ioctl.h>
7 #include <net/if.h>
8 #include <sys/socket.h>
9 #include <arpa/inet.h>
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include <assert.h>
14 #include "oshw.h"
15 
23 {
24  uint16 network = htons (host);
25  return network;
26 }
27 
35 {
36  uint16 host = ntohs (network);
37  return host;
38 }
39 
44 {
45  ec_adaptert * ret_adapter = NULL;
46  /* Not implemented */
47  assert(0);
48 
49  return ret_adapter;
50 }
51 
57 {
58  /* Not implemented */
59  assert(0);
60 }
ec_adaptert * oshw_find_adapters(void)
Definition: vxworks/oshw.c:43
uint16 oshw_htons(uint16 host)
Definition: vxworks/oshw.c:22
uint16_t uint16
Definition: osal.h:29
Headerfile for oshw.c.
uint16 oshw_ntohs(uint16 network)
Definition: vxworks/oshw.c:34
void oshw_free_adapters(ec_adaptert *adapter)
Definition: vxworks/oshw.c:56


soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21