125 * \brief Enqueue a packetbuf on a packet queue.
126 * \param q A pointer to a struct packetqueue.
127 * \param lifetime The maximum time that the packet should stay in the packet queue, or zero if the packet should stay on the packet queue indefinitely.
128 * \param ptr An opaque, user-defined pointer that can be used to identify the packet when it later is dequeued.
129 * \retval Zero If memory could not be allocated for the packet.
130 * \retval Non-zero If the packet was successfully enqueued.
131 *
132 *
133 * This function enqueues the \ref packetbuf "packetbuf"
134 * to the packet queue pointed to by the q parameter. The
135 * packet queue must previously have been defined with
136 * PACKETQUEUE() and initialized with packetqueue_init().
137 *
138 * Each packet queue item has a maximum lifetime. When the
139 * lifetime expires, the packet queue item is
140 * automatically removed from the packet queue. If the
141 * lifetime parameter is given as zero, the packet never
142 * times out from the packet queue.
143 *
144 * Each packet queue item is tagged with a user-defined
145 * pointer. This pointer can be used to identify packets
146 * as they later are dequeued from the queue. This is
147 * useful if two modules is using the same packet queue:
148 * the modules can use the pointer to distinguish to which