This will ease and speed up comparisons in FD lookups.
int options; /* socket options as LI_O_* */
char *iface;
char *namespace;
+ int if_namelen;
+ int ns_namelen;
struct xfer_sock_list *prev;
struct xfer_sock_list *next;
struct sockaddr_storage addr;
}
memcpy(xfer_sock->namespace, &tmpbuf[curoff], len);
xfer_sock->namespace[len] = 0;
+ xfer_sock->ns_namelen = len;
curoff += len;
}
if (curoff >= maxoff) {
}
memcpy(xfer_sock->iface, &tmpbuf[curoff], len);
xfer_sock->iface[len] = 0;
+ xfer_sock->if_namelen = len;
curoff += len;
}
if (curoff + sizeof(int) > maxoff) {