Changeset c6588ce in mainline for uspace/lib/c/include/inet/inetping.h
- Timestamp:
- 2012-05-05T08:12:17Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee04c28
- Parents:
- 2cc7f16 (diff), d21e935c (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/inet/inetping.h
r2cc7f16 rc6588ce 1 1 /* 2 * Copyright (c) 20 09 Lukas Mejdrech2 * Copyright (c) 2012 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup lib net29 /** @addtogroup libc 30 30 * @{ 31 31 */ 32 /** @file 33 */ 32 34 33 #ifndef LIB NET_PACKET_REMOTE_H_34 #define LIB NET_PACKET_REMOTE_H_35 #ifndef LIBC_INET_INETPING_H_ 36 #define LIBC_INET_INETPING_H_ 35 37 36 #include < net/packet.h>38 #include <inet/inet.h> 37 39 #include <sys/types.h> 38 #include <async.h>39 40 40 extern int packet_translate_remote(async_sess_t *, packet_t **, packet_id_t); 41 extern packet_t *packet_get_4_remote(async_sess_t *, size_t, size_t, size_t, 42 size_t); 43 extern packet_t *packet_get_1_remote(async_sess_t *, size_t); 44 extern void pq_release_remote(async_sess_t *, packet_id_t); 41 typedef struct { 42 inet_addr_t src; 43 inet_addr_t dest; 44 uint16_t seq_no; 45 void *data; 46 size_t size; 47 } inetping_sdu_t; 48 49 typedef struct inetping_ev_ops { 50 int (*recv)(inetping_sdu_t *); 51 } inetping_ev_ops_t; 52 53 extern int inetping_init(inetping_ev_ops_t *); 54 extern int inetping_send(inetping_sdu_t *); 55 extern int inetping_get_srcaddr(inet_addr_t *, inet_addr_t *); 56 45 57 46 58 #endif
Note:
See TracChangeset
for help on using the changeset viewer.