Lines Matching refs:dstsock
363 struct sockaddr_in6 *dstsock, in rip6_output() argument
402 if (CFIL_DGRAM_FILTERED(so) && !dstsock) { in rip6_output()
411 dstsock = cfil_sin6; in rip6_output()
427 if (dstsock != NULL) { in rip6_output()
440 dstsock = &tmp; in rip6_output()
442 if (dstsock == NULL) { in rip6_output()
446 tmp = *dstsock; in rip6_output()
447 dstsock = &tmp; in rip6_output()
451 if (dstsock->sin6_scope_id == 0) { /* not change if specified */ in rip6_output()
452 dstsock->sin6_scope_id = scope6_addr2default(&dstsock->sin6_addr); in rip6_output()
472 if (dstsock != NULL && IN6_IS_ADDR_V4MAPPED(&dstsock->sin6_addr)) { in rip6_output()
481 ip6oa.ip6oa_boundif = dstsock->sin6_scope_id; in rip6_output()
500 dst = &dstsock->sin6_addr; in rip6_output()
597 } else if (dstsock->sin6_scope_id) { in rip6_output()
604 if (if_index < dstsock->sin6_scope_id) { in rip6_output()
611 = htons(dstsock->sin6_scope_id & 0xffff); /*XXX*/ in rip6_output()
613 difscope = dstsock->sin6_scope_id; in rip6_output()
634 in6a = in6_selectsrc(dstsock, optp, in6p, in rip6_output()