Changeset 89c57b6 in mainline for uspace/lib/c/include/net/ip_protocols.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/c/include/net/ip_protocols.h
rcefb126 r89c57b6 27 27 */ 28 28 29 /** @addtogroup icmp29 /** @addtogroup libc 30 30 * @{ 31 31 */ 32 32 33 33 /** @file 34 * ICMP common interface implementation. 35 * @see icmp_common.h 34 * Internet protocol numbers according to the on-line IANA - Assigned Protocol 35 * numbers: 36 * 37 * http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml 36 38 */ 37 39 38 #i nclude <async.h>39 # include <ipc/services.h>40 #ifndef LIBC_IP_PROTOCOLS_H_ 41 #define LIBC_IP_PROTOCOLS_H_ 40 42 41 #include <net_modules.h> 42 #include <icmp_common.h> 43 #include <icmp_messages.h> 43 /** @name IP protocols definitions */ 44 /*@{*/ 44 45 45 int icmp_connect_module(services_t service, suseconds_t timeout){ 46 int phone; 46 #define IPPROTO_ICMP 1 47 #define IPPROTO_TCP 6 48 #define IPPROTO_UDP 17 47 49 48 phone = connect_to_service_timeout(SERVICE_ICMP, timeout); 49 if(phone >= 0){ 50 async_req_0_0(phone, NET_ICMP_INIT); 51 } 52 return phone; 53 } 50 /*@}*/ 51 52 #endif 54 53 55 54 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.