Network interface drivers
[Networking Stack]


Modules

 Loopback Service
 NE2000 network interface service

Defines

#define nil_bind_service(service, device_id, me, receiver)   bind_service(service, device_id, me, 0, receiver)
#define nil_device_req(nil_phone, device_id, mtu, netif_service)
#define nil_get_addr_req(nil_phone, device_id, address, data)   generic_get_addr_req(nil_phone, NET_NIL_ADDR, device_id, address, data)
#define nil_get_broadcast_addr_req(nil_phone, device_id, address, data)
#define nil_packet_size_req(nil_phone, device_id, packet_dimension)
#define nil_send_msg(nil_phone, device_id, packet, sender)

Functions

int nil_device_state_msg (int, device_id_t, int)
 Notify the network interface layer about the device state change.
int nil_received_msg (int, device_id_t, packet_t *, services_t)
 Pass the packet queue to the network interface layer.

Function Documentation

int nil_device_state_msg ( int  nil_phone,
device_id_t  device_id,
int  state 
)

Notify the network interface layer about the device state change.

Parameters:
[in] nil_phone Network interface layer phone.
[in] device_id Device identifier.
[in] state New device state.
Returns:
EOK on success.

Other error codes as defined for each specific module device state function.

Definition at line 56 of file nil_remote.c.

int nil_received_msg ( int  nil_phone,
device_id_t  device_id,
packet_t packet,
services_t  target 
)

Pass the packet queue to the network interface layer.

Process and redistribute the received packet queue to the registered upper layers.

Parameters:
[in] nil_phone Network interface layer phone.
[in] device_id Source device identifier.
[in] packet Received packet or the received packet queue.
[in] target Target service. Ignored parameter.
Returns:
EOK on success.

Other error codes as defined for each specific module received function.

Definition at line 77 of file nil_remote.c.


Generated on Thu Jun 2 07:45:55 2011 for HelenOS/USB by  doxygen 1.4.7