Changeset d52fbaf in mainline
- Timestamp:
- 2010-10-08T19:03:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a866eeb
- Parents:
- d9e2e0e
- Location:
- uspace/lib
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/packet.h
rd9e2e0e rd52fbaf 27 27 */ 28 28 29 /** @addtogroup packet29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 35 35 */ 36 36 37 #ifndef __NET_PACKET_MESSAGES__38 #define __NET_PACKET_MESSAGES__37 #ifndef LIBC_PACKET_MESSAGES_ 38 #define LIBC_PACKET_MESSAGES_ 39 39 40 40 #include <ipc/ipc.h> 41 41 #include <ipc/net.h> 42 42 43 /** Packet server module messages. 44 */ 43 /** Packet server module messages. */ 45 44 typedef enum { 46 45 /** Create packet message with specified content length. 47 * 46 * @see packet_get_1() 48 47 */ 49 48 NET_PACKET_CREATE_1 = NET_PACKET_FIRST, 50 /** Create packet message with specified address length, prefix, content and suffix. 51 * @see packet_get_4() 49 50 /** 51 * Create packet message with specified address length, prefix, content 52 * and suffix. 53 * @see packet_get_4() 52 54 */ 53 55 NET_PACKET_CREATE_4, 56 54 57 /** Get packet message. 55 * @see packet_return() 56 */ 58 * @see packet_return() */ 57 59 NET_PACKET_GET, 60 58 61 /** Get packet size message. 59 * 62 * @see packet_translate() 60 63 */ 61 64 NET_PACKET_GET_SIZE, 65 62 66 /** Release packet message. 63 * 67 * @see pq_release() 64 68 */ 65 69 NET_PACKET_RELEASE 66 70 } packet_messages; 67 71 68 /** Returns the protocol service message parameter. 69 */ 70 #define ARP_GET_PROTO(call) (services_t) IPC_GET_ARG2(*call) 72 /** Returns the protocol service message parameter. */ 73 #define ARP_GET_PROTO(call) (services_t) IPC_GET_ARG2(*call) 71 74 72 /** Returns the packet identifier message parameter. 73 */ 74 #define IPC_GET_ID(call) (packet_id_t) IPC_GET_ARG1(*call) 75 /** Returns the packet identifier message parameter. */ 76 #define IPC_GET_ID(call) (packet_id_t) IPC_GET_ARG1(*call) 75 77 76 /** Returns the maximal content length message parameter. 77 */ 78 #define IPC_GET_CONTENT(call) (size_t) IPC_GET_ARG1(*call) 78 /** Returns the maximal content length message parameter. */ 79 #define IPC_GET_CONTENT(call) (size_t) IPC_GET_ARG1(*call) 79 80 80 /** Returns the maximal address length message parameter. 81 */ 81 /** Returns the maximal address length message parameter. */ 82 82 #define IPC_GET_ADDR_LEN(call) (size_t) IPC_GET_ARG2(*call) 83 83 84 /** Returns the maximal prefix length message parameter. 85 */ 86 #define IPC_GET_PREFIX(call) (size_t) IPC_GET_ARG3(*call) 84 /** Returns the maximal prefix length message parameter. */ 85 #define IPC_GET_PREFIX(call) (size_t) IPC_GET_ARG3(*call) 87 86 88 /** Returns the maximal suffix length message parameter. 89 */ 90 #define IPC_GET_SUFFIX(call) (size_t) IPC_GET_ARG4(*call) 87 /** Returns the maximal suffix length message parameter. */ 88 #define IPC_GET_SUFFIX(call) (size_t) IPC_GET_ARG4(*call) 91 89 92 90 #endif -
uspace/lib/net/generic/packet_remote.c
rd9e2e0e rd52fbaf 40 40 #include <err.h> 41 41 #include <ipc/ipc.h> 42 #include <ipc/packet.h> 42 43 #include <sys/mman.h> 43 44 … … 46 47 #include <packet/packet_client.h> 47 48 #include <packet/packet_header.h> 48 #include <packet/packet_messages.h>49 49 #include <packet_remote.h> 50 50 -
uspace/lib/socket/packet/packet_server.c
rd9e2e0e rd52fbaf 42 42 #include <fibril_synch.h> 43 43 #include <unistd.h> 44 #include <sys/mman.h> 44 45 45 46 #include <ipc/ipc.h> 46 #include < sys/mman.h>47 #include <ipc/packet.h> 47 48 48 49 #include <net_messages.h> … … 50 51 #include <packet/packet_client.h> 51 52 #include <packet/packet_header.h> 52 #include <packet/packet_messages.h>53 53 #include <packet/packet_server.h> 54 54
Note:
See TracChangeset
for help on using the changeset viewer.