Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/net/ip_protocols.h

    rcefb126 r89c57b6  
    2727 */
    2828
    29 /** @addtogroup icmp
     29/** @addtogroup libc
    3030 *  @{
    3131 */
    3232
    3333/** @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
    3638 */
    3739
    38 #include <async.h>
    39 #include <ipc/services.h>
     40#ifndef LIBC_IP_PROTOCOLS_H_
     41#define LIBC_IP_PROTOCOLS_H_
    4042
    41 #include <net_modules.h>
    42 #include <icmp_common.h>
    43 #include <icmp_messages.h>
     43/** @name IP protocols definitions */
     44/*@{*/
    4445
    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
    4749
    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
    5453
    5554/** @}
Note: See TracChangeset for help on using the changeset viewer.