| 232 | } |
| 233 | |
| 234 | static err_t udp_sendto_INLWIP(struct tcpip_api_call_data *tcpMsg) |
| 235 | { |
| 236 | LwipMsg msg = (LwipMsg)tcpMsg; |
| 237 | struct pbuf *p = pbuf_alloc(PBUF_TRANSPORT, msg->len, PBUF_RAM); |
| 238 | c_memcpy(p->payload, msg->data, msg->len); |
| 239 | msg->err = udp_sendto(msg->udpPCB, p, &msg->addr, msg->port); |
| 240 | pbuf_free_safe(p); |
| 241 | } |
| 242 | |
| 243 | void udp_sendto_safe(struct udp_pcb *udpPCB, const void *data, uint16_t len, ip_addr_t *dst, uint16_t port, err_t *err) |
| 244 | { |
nothing calls this directly
no test coverage detected