Changeset 849ed54 in mainline for uspace/lib/net/include/ip_interface.h
- Timestamp:
- 2010-03-30T18:39:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7553689
- Parents:
- 7d6fe4db
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/ip_interface.h
r7d6fe4db r849ed54 42 42 43 43 #include <async.h> 44 45 44 #include <ipc/services.h> 46 45 47 #include "../include/device.h" 46 #include <net_device.h> 47 #include <packet/packet.h> 48 48 49 #include "../structures/packet/packet.h" 50 51 #include "in.h" 52 #include "ip_codes.h" 53 #include "socket_codes.h" 49 #include <in.h> 50 #include <ip_codes.h> 51 #include <socket_codes.h> 54 52 55 53 /** @name IP module interface … … 82 80 * @returns Other error codes as defined for the bind_service() function. 83 81 */ 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);82 extern 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 83 86 84 /** Registers the new device. … … 98 96 * @returns Other error codes as defined for the arp_device_req() function. 99 97 */ 100 int ip_device_req(int ip_phone, device_id_t device_id, services_t netif);98 extern int ip_device_req(int ip_phone, device_id_t device_id, services_t netif); 101 99 102 100 /** Sends the packet queue. … … 110 108 * @returns Other error codes as defined for the generic_send_msg() function. 111 109 */ 112 int ip_send_msg(int ip_phone, device_id_t device_id, packet_t packet, services_t sender, services_t error);110 extern int ip_send_msg(int ip_phone, device_id_t device_id, packet_t packet, services_t sender, services_t error); 113 111 114 112 /** Connects to the IP module. … … 117 115 * @returns 0 if called by the bundle module. 118 116 */ 119 int ip_connect_module(services_t service);117 extern int ip_connect_module(services_t service); 120 118 121 119 /** Adds a route to the device routing table. … … 127 125 * @param[in] gateway The target network gateway. Not used if zero. 128 126 */ 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);127 extern 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 128 131 129 /** Sets the default gateway. … … 135 133 * @param[in] gateway The default gateway. 136 134 */ 137 int ip_set_gateway_req(int ip_phone, device_id_t device_id, in_addr_t gateway);135 extern int ip_set_gateway_req(int ip_phone, device_id_t device_id, in_addr_t gateway); 138 136 139 137 /** Returns the device packet dimension for sending. … … 145 143 * @returns Other error codes as defined for the generic_packet_size_req() function. 146 144 */ 147 int ip_packet_size_req(int ip_phone, device_id_t device_id, packet_dimension_ref packet_dimension);145 extern int ip_packet_size_req(int ip_phone, device_id_t device_id, packet_dimension_ref packet_dimension); 148 146 149 147 /** Notifies the IP module about the received error notification packet. … … 155 153 * @returns EOK on success. 156 154 */ 157 int ip_received_error_msg(int ip_phone, device_id_t device_id, packet_t packet, services_t target, services_t error);155 extern int ip_received_error_msg(int ip_phone, device_id_t device_id, packet_t packet, services_t target, services_t error); 158 156 159 157 /** Returns the device identifier and the IP pseudo header based on the destination address. … … 166 164 * @param[out] headerlen The IP pseudo header length. 167 165 */ 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);166 extern 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 167 170 168 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.