81,6 → 81,15 |
*/ |
int arp_proto_create( arp_proto_ref * proto, services_t service, measured_string_ref address ); |
|
/** Clears the device specific data. |
* @param device The device specific data. |
*/ |
void clear_device( arp_device_ref device ); |
|
/** @name Message processing functions |
*/ |
/*@{*/ |
|
/** Registers the device. |
* Creates new device entry in the cache or updates the protocol address if the device with the device identifier and the driver service exists. |
* @param device_id The device identifier. Input parameter. |
114,7 → 123,7 |
* @param packet The received packet. Input/output parameter. |
* @returns EOK on success and the packet is no longer needed. |
* @returns 1 on success and the packet has been reused. |
* @returns EINVAL if the packet is too small to carry the ARP packet. |
* @returns EINVAL if the packet is too small to carry an ARP packet. |
* @returns EINVAL if the received address lengths differs from the registered values. |
* @returns ENOENT if the device is not found in the cache. |
* @returns ENOENT if the protocol for the device is not found in the cache. |
122,18 → 131,16 |
*/ |
int arp_receive_message( device_id_t device_id, packet_t packet ); |
|
/** Clears the device specific data. |
* @param device The device specific data. |
*/ |
void clear_device( arp_device_ref device ); |
|
/** Updates the device content length according to the new MTU value. |
* @param device_id The device identifier. Input parameter. |
* @param mtu The new mtu value. Input parameter. |
* @returns ENOENT if device is not found. |
* @returns EOK on success. |
*/ |
int arp_mtu_changed_msg( device_id_t device_id, size_t mtu ); |
int arp_mtu_changed_message( device_id_t device_id, size_t mtu ); |
|
/*@}*/ |
|
DEVICE_MAP_IMPLEMENT( arp_cache, arp_device_t ) |
|
INT_MAP_IMPLEMENT( arp_protos, arp_proto_t ) |
492,7 → 499,7 |
return EOK; |
} |
|
int arp_mtu_changed_msg( device_id_t device_id, size_t mtu ){ |
int arp_mtu_changed_message( device_id_t device_id, size_t mtu ){ |
arp_device_ref device; |
|
fibril_rwlock_write_lock( & arp_globals.lock ); |
567,7 → 574,7 |
} |
return ERROR_CODE; |
case NET_IL_MTU_CHANGED: |
return arp_mtu_changed_msg( IPC_GET_DEVICE( call ), IPC_GET_MTU( call )); |
return arp_mtu_changed_message( IPC_GET_DEVICE( call ), IPC_GET_MTU( call )); |
} |
return ENOTSUP; |
} |