int tcp_get_bind_iface(tcp_sock_t *tcp, char **ifname) { ASSERT(tcp); ASSERT(ifname); return ip_get_bind_iface(&tcp->ip, ifname); }
int tcp_get_bind_iface(tcp_sock_t *p_self, char **ifname) { if (p_self == NULL || ifname == NULL) { return RC_INVALID_POINTER; } return ip_get_bind_iface(&p_self->super, ifname); }