Changes in uspace/srv/net/include/ip_interface.h [aadf01e:91478aa] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/include/ip_interface.h
raadf01e r91478aa 70 70 * @returns EOK on success. 71 71 */ 72 typedef int ( *tl_received_msg_t)(device_id_t device_id, packet_t packet, services_t receiver, services_t error);72 typedef int ( * tl_received_msg_t )( device_id_t device_id, packet_t packet, services_t receiver, services_t error ); 73 73 74 74 /** Creates bidirectional connection with the ip module service and registers the message receiver. … … 82 82 * @returns Other error codes as defined for the bind_service() function. 83 83 */ 84 int ip_bind_service(services_t service, int protocol, services_t me, async_client_conn_t receiver, tl_received_msg_t tl_received_msg);84 int ip_bind_service( services_t service, int protocol, services_t me, async_client_conn_t receiver, tl_received_msg_t tl_received_msg ); 85 85 86 86 /** Registers the new device. … … 98 98 * @returns Other error codes as defined for the arp_device_req() function. 99 99 */ 100 int ip_device_req(int ip_phone, device_id_t device_id, services_t netif);100 int ip_device_req( int ip_phone, device_id_t device_id, services_t netif ); 101 101 102 102 /** Sends the packet queue. … … 110 110 * @returns Other error codes as defined for the generic_send_msg() function. 111 111 */ 112 int ip_send_msg(int ip_phone, device_id_t device_id, packet_t packet, services_t sender, services_t error);112 int ip_send_msg( int ip_phone, device_id_t device_id, packet_t packet, services_t sender, services_t error ); 113 113 114 114 /** Connects to the IP module. … … 117 117 * @returns 0 if called by the bundle module. 118 118 */ 119 int ip_connect_module(services_t service);119 int ip_connect_module( services_t service ); 120 120 121 121 /** Adds a route to the device routing table. … … 127 127 * @param[in] gateway The target network gateway. Not used if zero. 128 128 */ 129 int ip_add_route_req(int ip_phone, device_id_t device_id, in_addr_t address, in_addr_t netmask, in_addr_t gateway);129 int ip_add_route_req( int ip_phone, device_id_t device_id, in_addr_t address, in_addr_t netmask, in_addr_t gateway ); 130 130 131 131 /** Sets the default gateway. … … 135 135 * @param[in] gateway The default gateway. 136 136 */ 137 int ip_set_gateway_req(int ip_phone, device_id_t device_id, in_addr_t gateway);137 int ip_set_gateway_req( int ip_phone, device_id_t device_id, in_addr_t gateway ); 138 138 139 139 /** Returns the device packet dimension for sending. … … 145 145 * @returns Other error codes as defined for the generic_packet_size_req() function. 146 146 */ 147 int ip_packet_size_req(int ip_phone, device_id_t device_id, packet_dimension_ref packet_dimension);147 int ip_packet_size_req( int ip_phone, device_id_t device_id, packet_dimension_ref packet_dimension ); 148 148 149 149 /** Notifies the IP module about the received error notification packet. … … 155 155 * @returns EOK on success. 156 156 */ 157 int ip_received_error_msg(int ip_phone, device_id_t device_id, packet_t packet, services_t target, services_t error);157 int ip_received_error_msg( int ip_phone, device_id_t device_id, packet_t packet, services_t target, services_t error ); 158 158 159 159 /** Returns the device identifier and the IP pseudo header based on the destination address. … … 166 166 * @param[out] headerlen The IP pseudo header length. 167 167 */ 168 int ip_get_route_req(int ip_phone, ip_protocol_t protocol, const struct sockaddr * destination, socklen_t addrlen, device_id_t * device_id, ip_pseudo_header_ref * header, size_t * headerlen);168 int ip_get_route_req( int ip_phone, ip_protocol_t protocol, const struct sockaddr * destination, socklen_t addrlen, device_id_t * device_id, ip_pseudo_header_ref * header, size_t * headerlen ); 169 169 170 170 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.