HelenOS sources

inet_get_srcaddr  149 uspace/lib/inet/src/inet.c errno_t inet_get_srcaddr(inet_addr_t *remote, uint8_t tos, inet_addr_t *local)
inet_get_srcaddr  223 uspace/srv/net/inetsrv/inetsrv.c errno_t inet_get_srcaddr(inet_addr_t *remote, uint8_t tos, inet_addr_t *local)
HelenOS homepage, sources at GitHub