[BACK]Return to show.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / netstat

Diff for /src/usr.bin/netstat/show.c between version 1.56 and 1.57

version 1.56, 2020/09/15 20:28:27 version 1.57, 2021/01/16 17:42:52
Line 341 
Line 341 
                  * XXX: This is a special workaround for KAME kernels.                   * XXX: This is a special workaround for KAME kernels.
                  * sin6_scope_id field of SA should be set in the future.                   * sin6_scope_id field of SA should be set in the future.
                  */                   */
                 if (IN6_IS_ADDR_LINKLOCAL(in6) ||                  if ((IN6_IS_ADDR_LINKLOCAL(in6) ||
                     IN6_IS_ADDR_MC_LINKLOCAL(in6) ||                      IN6_IS_ADDR_MC_LINKLOCAL(in6) ||
                     IN6_IS_ADDR_MC_INTFACELOCAL(in6)) {                      IN6_IS_ADDR_MC_INTFACELOCAL(in6)) &&
                       sa6->sin6_scope_id == 0) {
                         /* XXX: override is ok? */                          /* XXX: override is ok? */
                         sa6->sin6_scope_id = (u_int32_t)ntohs(*(u_short *)                          sa6->sin6_scope_id = (u_int32_t)ntohs(*(u_short *)
                             &in6->s6_addr[2]);                              &in6->s6_addr[2]);

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57