48,14 → 48,13 |
#include "structures/packet/packet.h" |
|
#define NET_NETIF_COUNT 6 |
#define NET_NET_COUNT 9 |
#define NET_NET_COUNT 3 |
#define NET_NIL_COUNT 7 |
#define NET_ETH_COUNT 0 |
#define NET_IL_COUNT 6 |
#define NET_IP_COUNT 4 |
#define NET_ARP_COUNT 5 |
#define NET_RARP_COUNT 0 |
#define NET_ICMP_COUNT 7 |
#define NET_ICMP_COUNT 6 |
#define NET_TL_COUNT 1 |
#define NET_UDP_COUNT 0 |
#define NET_TCP_COUNT 0 |
82,9 → 81,7 |
|
#define NET_ARP_FIRST ( NET_IP_LAST + 0 ) |
#define NET_ARP_LAST ( NET_ARP_FIRST + NET_ARP_COUNT ) |
#define NET_RARP_FIRST ( NET_ARP_LAST + 0 ) |
#define NET_RARP_LAST ( NET_RARP_FIRST + NET_RARP_COUNT ) |
#define NET_ICMP_FIRST ( NET_RARP_LAST + 0 ) |
#define NET_ICMP_FIRST ( NET_ARP_LAST + 0 ) |
#define NET_ICMP_LAST ( NET_ICMP_FIRST + NET_ICMP_COUNT ) |
|
#define NET_TL_FIRST ( NET_ICMP_LAST + 0 ) |
113,7 → 110,6 |
#define IS_NET_IL_MESSAGE( call ) IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_IL_FIRST, NET_IL_LAST ) |
#define IS_NET_IP_MESSAGE( call ) IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_IP_FIRST, NET_IP_LAST ) |
#define IS_NET_ARP_MESSAGE( call ) IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_ARP_FIRST, NET_ARP_LAST ) |
#define IS_NET_RARP_MESSAGE( call ) IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_RARP_FIRST, NET_RARP_LAST ) |
#define IS_NET_ICMP_MESSAGE( call ) IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_ICMP_FIRST, NET_ICMP_LAST ) |
#define IS_NET_TL_MESSAGE( call ) IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_TL_FIRST, NET_TL_LAST ) |
#define IS_NET_UDP_MESSAGE( call ) IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_UDP_FIRST, NET_UDP_LAST ) |
152,28 → 148,7 |
#define IPC_SET_CONTENT( answer ) (( size_t * ) & IPC_GET_ARG3( * answer )) |
#define IPC_SET_SUFFIX( answer ) (( size_t * ) & IPC_GET_ARG4( * answer )) |
|
typedef enum { |
/* () not supported, registers new device */ |
NET_NET_DEVICE = NET_NET_FIRST, |
/* ( NULL, count ), measured_strings_send( names ), measured_strings_return( values ) */ |
NET_NET_GET_CONF, |
/* ( device_id, count ), measured_strings_send( names ), measured_strings_return( values ) */ |
NET_NET_GET_DEVICE_CONF, |
/* () not supported, measured_strings_send( names ), measured_strings_send( values ) */ |
NET_NET_SET_CONF, |
/* ( device_id, count ) not supported, measured_strings_send( names ), measured_strings_send( values ) */ |
NET_NET_SET_DEVICE_CONF, |
/* () */ |
NET_NET_STARTUP, |
/* ( device_id ) */ |
NET_NET_START, |
/* ( device_id ) */ |
NET_NET_STOP, |
/* ( device_id ) ipc_data_read( stats ) */ |
NET_NET_STATS, |
} net_messages; |
|
static inline int generic_get_addr( int phone, int message, device_id_t device_id, measured_string_ref * address, char ** data ){ |
static inline int generic_get_addr_req( int phone, int message, device_id_t device_id, measured_string_ref * address, char ** data ){ |
aid_t message_id; |
ipcarg_t result; |
int string; |