Changeset 89c57b6 in mainline for uspace/lib/net/include/icmp_remote.h
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/icmp_remote.h
rcefb126 r89c57b6 27 27 */ 28 28 29 /** @addtogroup icmp29 /** @addtogroup libnet 30 30 * @{ 31 31 */ 32 32 33 /** @file 34 * ICMP module common interface. 33 #ifndef LIBNET_ICMP_REMOTE_H_ 34 #define LIBNET_ICMP_REMOTE_H_ 35 36 #include <net/socket_codes.h> 37 #include <sys/types.h> 38 39 #include <net/device.h> 40 #include <adt/measured_strings.h> 41 #include <net/packet.h> 42 #include <net/inet.h> 43 #include <net/ip_codes.h> 44 #include <net/icmp_codes.h> 45 #include <net/icmp_common.h> 46 47 /** @name ICMP module interface 48 * This interface is used by other modules. 35 49 */ 50 /*@{*/ 36 51 37 #ifndef __NET_ICMP_COMMON_H__ 38 #define __NET_ICMP_COMMON_H__ 52 extern int icmp_destination_unreachable_msg(int, icmp_code_t, icmp_param_t, 53 packet_t *); 54 extern int icmp_source_quench_msg(int, packet_t *); 55 extern int icmp_time_exceeded_msg(int, icmp_code_t, packet_t *); 56 extern int icmp_parameter_problem_msg(int, icmp_code_t, icmp_param_t, 57 packet_t *); 39 58 40 #include <ipc/services.h> 41 42 #include <sys/time.h> 43 44 /** Default timeout for incoming connections in microseconds. 45 */ 46 #define ICMP_CONNECT_TIMEOUT (1 * 1000 * 1000) 47 48 /** Connects to the ICMP module. 49 * @param service The ICMP module service. Ignored parameter. 50 * @param[in] timeout The connection timeout in microseconds. No timeout if set to zero (0). 51 * @returns The ICMP module phone on success. 52 * @returns The ICMP socket identifier if called by the bundle module. 53 * @returns ETIMEOUT if the connection timeouted. 54 */ 55 extern int icmp_connect_module(services_t service, suseconds_t timeout); 59 /*@}*/ 56 60 57 61 #endif
Note:
See TracChangeset
for help on using the changeset viewer.