netbuf_fromaddr_ip6() — Obtain the sender's IPv6 address for a netbuf


struct ip6_addr *netbuf_fromaddr (struct netbuf *buf );


Returns the IPv6 address of the host the netbuf buf was received from. If the netbuf has not been received from the network, the return value of this function is undefined. The function netbuf_fromport() can be used to obtain the port number of the remote host.