Changeset efedee77 in mainline for uspace/lib/net/include/ip_interface.h
- Timestamp:
- 2010-11-02T22:38:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af894a21
- Parents:
- aab02fb (diff), e06ef614 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/ip_interface.h
raab02fb refedee77 27 27 */ 28 28 29 /** @addtogroup ip30 * 29 /** @addtogroup libnet 30 * @{ 31 31 */ 32 32 33 #ifndef __NET_IP_INTERFACE_H__34 #define __NET_IP_INTERFACE_H__33 #ifndef LIBNET_IP_INTERFACE_H_ 34 #define LIBNET_IP_INTERFACE_H_ 35 35 36 #include <net/socket_codes.h> 36 37 #include <async.h> 37 38 #include <ipc/services.h> 38 39 39 #include <net _device.h>40 #include < packet/packet.h>40 #include <net/device.h> 41 #include <net/packet.h> 41 42 42 #include <in.h> 43 #include <ip_codes.h> 44 #include <socket_codes.h> 45 46 #ifdef CONFIG_IL_TL_BUNDLE 47 48 #include <ip_local.h> 49 50 #define ip_received_error_msg ip_received_error_msg_local 51 #define ip_set_gateway_req ip_set_gateway_req_local 52 #define ip_packet_size_req ip_packet_size_req_local 53 #define ip_device_req ip_device_req_local 54 #define ip_add_route_req ip_add_route_req_local 55 #define ip_send_msg ip_send_msg_local 56 #define ip_get_route_req ip_get_route_req_local 57 58 #else 43 #include <net/in.h> 44 #include <net/ip_codes.h> 59 45 60 46 #include <ip_remote.h> … … 68 54 #define ip_get_route_req ip_get_route_req_remote 69 55 70 #endif71 72 56 /** @name IP module interface 73 * 57 * This interface is used by other modules. 74 58 */ 75 59 /*@{*/ 76 60 77 61 /** The transport layer notification function type definition. 78 * Notifies the transport layer modules about the received packet/s. 79 * @param[in] device_id The device identifier. 80 * @param[in] packet The received packet or the received packet queue. 81 * @param[in] receiver The receiving module service. 82 * @param[in] error The packet error reporting service. Prefixes the received packet. 83 * @returns EOK on success. 62 * 63 * Notifies the transport layer modules about the received packet/s. 64 * 65 * @param[in] device_id The device identifier. 66 * @param[in] packet The received packet or the received packet queue. 67 * @param[in] receiver The receiving module service. 68 * @param[in] error The packet error reporting service. Prefixes the 69 * received packet. 70 * @returns EOK on success. 84 71 */ 85 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, 73 services_t receiver, services_t error); 86 74 87 /** Creates bidirectional connection with the ip module service and registers the message receiver. 88 * @param[in] service The IP module service. 89 * @param[in] protocol The transport layer protocol. 90 * @param[in] me The requesting module service. 91 * @param[in] receiver The message receiver. Used for remote connection. 92 * @param[in] tl_received_msg The message processing function. Used if bundled together. 93 * @returns The phone of the needed service. 94 * @returns EOK on success. 95 * @returns Other error codes as defined for the bind_service() function. 96 */ 97 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); 98 99 /** Connects to the IP module. 100 * @param service The IP module service. Ignored parameter. 101 * @returns The IP module phone on success. 102 * @returns 0 if called by the bundle module. 103 */ 104 extern int ip_connect_module(services_t service); 75 extern int ip_bind_service(services_t, int, services_t, async_client_conn_t); 76 extern int ip_connect_module(services_t); 105 77 106 78 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.