* Return the scope identifier or zero. */
| 456 | * Return the scope identifier or zero. |
| 457 | */ |
| 458 | uint16_t |
| 459 | in6_getscope(const struct in6_addr *in6) |
| 460 | { |
| 461 | |
| 462 | if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6)) |
| 463 | return (in6->s6_addr16[1]); |
| 464 | |
| 465 | return (0); |
| 466 | } |
| 467 | |
| 468 | /* |
| 469 | * Returns scope zone id for the unicast address @in6. |
no outgoing calls
no test coverage detected