Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/t4_clip.c
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | CK_STAILQ_FOREACH(ia, &V_in6_ifaddrhead, ia_link) { | ||||
rc = add_lip(sc, lip); | rc = add_lip(sc, lip); | ||||
if (rc == 0) | if (rc == 0) | ||||
TAILQ_INSERT_TAIL(&sc->clip_table, ce, link); | TAILQ_INSERT_TAIL(&sc->clip_table, ce, link); | ||||
else { | else { | ||||
char ip[INET6_ADDRSTRLEN]; | char ip[INET6_ADDRSTRLEN]; | ||||
inet_ntop(AF_INET6, &ce->lip, &ip[0], | inet_ntop(AF_INET6, &ce->lip, &ip[0], | ||||
sizeof(ip)); | sizeof(ip)); | ||||
if (sc->flags & KERN_TLS_OK || | if (sc->flags & KERN_TLS_ON || | ||||
sc->active_ulds != 0) { | sc->active_ulds != 0) { | ||||
log(LOG_ERR, | log(LOG_ERR, | ||||
"%s: could not add %s (%d)\n", | "%s: could not add %s (%d)\n", | ||||
__func__, ip, rc); | __func__, ip, rc); | ||||
} | } | ||||
free(ce, M_CXGBE); | free(ce, M_CXGBE); | ||||
} | } | ||||
next: | next: | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |