Module for sending UDP packets through uIP.
#include "contiki-conf.h"
#include "net/ip/uip-udp-packet.h"
#include "uip-mcast6.h"
#include <string.h>
Functions | |
int | uip_udp_packet_send (struct uip_udp_conn *c, const void *data, int len) |
int | uip_udp_packet_sendto (struct uip_udp_conn *c, const void *data, int len, const uip_ipaddr_t *toaddr, uint16_t toport) |
Variables | |
uint16_t | uip_slen |
int uip_udp_packet_send | ( | struct uip_udp_conn * | c, |
const void * | data, | ||
int | len | ||
) |
References c, len, NULL, uip_mcast6_driver::out, ret, uip_udp_conn::ripaddr, tcpip_ipv6_output(), tcpip_output(), uip_buf, UIP_BUFSIZE, UIP_IPUDPH_LEN, uip_is_addr_mcast_routable, uip_len, UIP_LLH_LEN, UIP_MCAST6, uip_process(), uip_slen, and UIP_UDP_SEND_CONN.
Referenced by handle_incoming_rerr(), handle_incoming_rreq(), send_rerr(), send_rreq(), send_udp_packet(), sendto(), udp_socket_send(), and uip_udp_packet_sendto().
int uip_udp_packet_sendto | ( | struct uip_udp_conn * | c, |
const void * | data, | ||
int | len, | ||
const uip_ipaddr_t * | toaddr, | ||
uint16_t | toport | ||
) |
References NULL, ret, uip_udp_conn::ripaddr, uip_udp_conn::rport, uip_ipaddr_copy, and uip_udp_packet_send().
Referenced by simple_udp_send(), simple_udp_sendto(), simple_udp_sendto_port(), and udp_socket_sendto().