lwip port: remove context struct members that are now in endpoint

This commit is contained in:
chrysn committed 2015-01-16 08:45:10 +01:00
1 parent fc18a4992b
commit 2680f038b0
2 files changed
+1 -9

No files matched your search

+1 -4
View File
@@ -397,9 +397,6 @@ coap_free_context(coap_context_t *context) {
#endif /* WITH_POSIX || WITH_LWIP */
coap_free_endpoint(context->endpoint);
#ifdef WITH_LWIP
udp_remove(context->pcb);
#endif /* WITH_LWIP */
#ifndef WITH_CONTIKI
coap_free_type(COAP_CONTEXT, context);
#endif/* not WITH_CONTIKI */
@@ -563,7 +560,7 @@ coap_send_impl(coap_context_t *context,
pbuf_realloc(p, pdu->length);
udp_sendto(context->pcb, p,
udp_sendto(context->endpoint->pcb, p,
&dst->addr, dst->port);
pbuf_header(p, -(ptrdiff_t)((uint8_t*)pdu - (uint8_t*)p->payload) - sizeof(coap_pdu_t)); /* FIXME hack around udp_sendto not restoring; see http://lists.gnu.org/archive/html/lwip-users/2013-06/msg00008.html. for udp over ip over ethernet, this was -42; as we're doing ppp too, this has to be calculated generically */
-5
View File
@@ -120,11 +120,6 @@ typedef struct coap_context_t {
struct etimer notify_timer; /**< used to check resources periodically */
#endif /* WITH_CONTIKI */
#ifdef WITH_LWIP
struct udp_pcb *pcb; /**< the underlying lwIP UDP PCB */
struct pbuf *pending_package; /**< pbuf containing the last received package if not handled yet. This is only used to pass the package from the udp_recv callback into the coap_read function, which frees the pbuf and clears this field. */
ip_addr_t pending_address; /**< the address associated with pending_package */
u16_t pending_port; /**< the port associated with pending_package */
uint8_t timer_configured; /**< Set to 1 when a retransmission is scheduled using lwIP timers for this context, otherwise 0. */
#endif /* WITH_LWIP */