Changeset a9c6b966 in mainline for uspace/lib/net/generic/packet_client.c
- Timestamp:
- 2010-11-19T22:04:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b4a67a, fdbc3ff
- Parents:
- a7811f17 (diff), 1bfd3d3 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/generic/packet_client.c
ra7811f17 ra9c6b966 53 53 * @param[in] data The data to be copied. 54 54 * @param[in] length The length of the copied data. 55 * @return sEOK on success.56 * @return sEINVAL if the packet is not valid.57 * @return sENOMEM if there is not enough memory left.55 * @return EOK on success. 56 * @return EINVAL if the packet is not valid. 57 * @return ENOMEM if there is not enough memory left. 58 58 */ 59 59 int packet_copy_data(packet_t packet, const void *data, size_t length) … … 78 78 * @param[in] length The space length to be allocated at the beginning of the 79 79 * packet content. 80 * @return sThe pointer to the allocated memory.81 * @return sNULL if there is not enough memory left.80 * @return The pointer to the allocated memory. 81 * @return NULL if there is not enough memory left. 82 82 */ 83 83 void *packet_prefix(packet_t packet, size_t length) … … 99 99 * @param[in] length The space length to be allocated at the end of the 100 100 * packet content. 101 * @return sThe pointer to the allocated memory.102 * @return sNULL if there is not enough memory left.101 * @return The pointer to the allocated memory. 102 * @return NULL if there is not enough memory left. 103 103 */ 104 104 void *packet_suffix(packet_t packet, size_t length) … … 120 120 * @param[in] suffix The suffix length to be removed from the end of the 121 121 * packet content. 122 * @return sEOK on success.123 * @return sEINVAL if the packet is not valid.124 * @return sENOMEM if there is not enough memory left.122 * @return EOK on success. 123 * @return EINVAL if the packet is not valid. 124 * @return ENOMEM if there is not enough memory left. 125 125 */ 126 126 int packet_trim(packet_t packet, size_t prefix, size_t suffix) … … 140 140 * 141 141 * @param[in] packet The packet. 142 * @return sThe packet identifier.143 * @return sZero if the packet is not valid.142 * @return The packet identifier. 143 * @return Zero if the packet is not valid. 144 144 */ 145 145 packet_id_t packet_get_id(const packet_t packet) … … 153 153 * @param[out] src The source address. May be NULL if not desired. 154 154 * @param[out] dest The destination address. May be NULL if not desired. 155 * @return sThe stored addresses length.156 * @return sZero if the addresses are not present.157 * @return sEINVAL if the packet is not valid.155 * @return The stored addresses length. 156 * @return Zero if the addresses are not present. 157 * @return EINVAL if the packet is not valid. 158 158 */ 159 159 int packet_get_addr(const packet_t packet, uint8_t **src, uint8_t **dest) … … 174 174 * 175 175 * @param[in] packet The packet. 176 * @return sThe packet content length in bytes.177 * @return sZero if the packet is not valid.176 * @return The packet content length in bytes. 177 * @return Zero if the packet is not valid. 178 178 */ 179 179 size_t packet_get_data_length(const packet_t packet) … … 188 188 * 189 189 * @param[in] packet The packet. 190 * @return sThe pointer to the beginning of the packet content.191 * @return sNULL if the packet is not valid.190 * @return The pointer to the beginning of the packet content. 191 * @return NULL if the packet is not valid. 192 192 */ 193 193 void *packet_get_data(const packet_t packet) … … 205 205 * @param[in] dest The new destination address. May be NULL. 206 206 * @param[in] addr_len The addresses length. 207 * @return sEOK on success.208 * @return sEINVAL if the packet is not valid.209 * @return sENOMEM if there is not enough memory left.207 * @return EOK on success. 208 * @return EINVAL if the packet is not valid. 209 * @return ENOMEM if there is not enough memory left. 210 210 */ 211 211 int … … 254 254 * @param[in] phone The packet server module phone. 255 255 * @param[in] packet The original packet. 256 * @return sThe packet copy.257 * @return sNULL on error.256 * @return The packet copy. 257 * @return NULL on error. 258 258 */ 259 259 packet_t packet_get_copy(int phone, packet_t packet)
Note:
See TracChangeset
for help on using the changeset viewer.