Rev 4351 | Rev 4705 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4351 | Rev 4395 | ||
---|---|---|---|
Line 135... | Line 135... | ||
135 | */ |
135 | */ |
136 | void * packet_get_data( const packet_t packet ); |
136 | void * packet_get_data( const packet_t packet ); |
137 | 137 | ||
138 | /** Returns the stored packet addresses and their length. |
138 | /** Returns the stored packet addresses and their length. |
139 | * @param packet The packet. Input parameter. |
139 | * @param packet The packet. Input parameter. |
140 | * @param src The source address. Output parameter. |
140 | * @param src The source address. May be NULL if not desired. Output parameter. |
141 | * @param dest The destination address. Output parameter. |
141 | * @param dest The destination address. May be NULL if not desired. Output parameter. |
142 | * @returns The addresses length. |
142 | * @returns The stored addresses length. |
143 | * @returns Zero (0) if the addresses are not present. |
143 | * @returns Zero (0) if the addresses are not present. |
144 | * @returns EINVAL if the packet is not valid. |
144 | * @returns EINVAL if the packet is not valid. |
145 | * @returns EINVAL if the src and/or the dest parameter is NULL. |
- | |
146 | */ |
145 | */ |
147 | int packet_get_addr( const packet_t packet, uint8_t ** src, uint8_t ** dest ); |
146 | int packet_get_addr( const packet_t packet, uint8_t ** src, uint8_t ** dest ); |
148 | 147 | ||
149 | /** Sets the packet addresses. |
148 | /** Sets the packet addresses. |
150 | * @param packet The packet. Input parameter. |
149 | * @param packet The packet. Input parameter. |
151 | * @param src The new source address. Output parameter. |
150 | * @param src The new source address. May be NULL. Input parameter. |
152 | * @param dest The new destination address. Output parameter. |
151 | * @param dest The new destination address. May be NULL. Input parameter. |
153 | * @param addr_len The addresses length. |
152 | * @param addr_len The addresses length. |
154 | * @returns EOK on success. |
153 | * @returns EOK on success. |
155 | * @returns EINVAL if the packet is not valid. |
154 | * @returns EINVAL if the packet is not valid. |
156 | * @returns ENOMEM if there is not enough memory left. |
155 | * @returns ENOMEM if there is not enough memory left. |
157 | */ |
156 | */ |