Lines Matching defs:sid
67 * The scope6_lock protects the global sid default stored in
100 struct scope6_id *sid;
102 sid = (struct scope6_id *)malloc(sizeof(*sid), M_IFADDR, M_WAITOK);
103 bzero(sid, sizeof(*sid));
109 sid->s6id_list[IPV6_ADDR_SCOPE_INTFACELOCAL] = ifp->if_index;
110 sid->s6id_list[IPV6_ADDR_SCOPE_LINKLOCAL] = ifp->if_index;
113 sid->s6id_list[IPV6_ADDR_SCOPE_SITELOCAL] = 1;
114 sid->s6id_list[IPV6_ADDR_SCOPE_ORGLOCAL] = 1;
117 return sid;
121 scope6_ifdetach(struct scope6_id *sid)
124 free(sid, M_IFADDR);
156 struct scope6_id *sid = NULL;
159 sid = SID(ifp);
161 if (!sid) { /* paranoid? */
178 idlist->s6id_list[i] != sid->s6id_list[i]) {
206 sid->s6id_list[i] = idlist->s6id_list[i];
217 struct scope6_id *sid;
221 sid = SID(ifp);
222 if (sid == NULL) { /* paranoid? */
227 *idlist = *sid;
443 struct scope6_id *sid;
465 sid = SID(ifp);
466 zoneid = sid->s6id_list[scope];