Lines Matching defs:packet
130 coap_socket_recv(coap_socket_t *sock, coap_packet_t *packet) {
132 (void)packet;
201 coap_free_packet(coap_packet_t *packet) {
202 coap_free_type(COAP_PACKET, packet);
220 coap_packet_t *packet;
228 packet = coap_malloc_type(COAP_PACKET, sizeof(coap_packet_t));
230 /* this is fatal because due to the short life of the packet, never should
232 LWIP_ASSERT("Insufficient coap_packet_t resources.", packet != NULL);
234 memset(&packet->addr_info, 0, sizeof(packet->addr_info));
235 packet->length = p->len;
236 packet->payload = p->payload;
237 packet->addr_info.remote.port = port;
238 packet->addr_info.remote.addr = *addr;
239 packet->addr_info.local.port = upcb->local_port;
240 packet->addr_info.local.addr = *ip_current_dest_addr();
241 packet->ifindex = netif_get_index(ip_current_netif());
245 session = coap_endpoint_get_session(ep, packet, now);
273 coap_free_packet(packet);
284 coap_free_packet(packet);