Lines Matching refs:so_pref
56 label_add(union sockunion * so_dest, union sockunion * so_pref,
71 assert(so_pref);
72 assert(so_dest->sa.sa_family == so_pref->sa.sa_family);
75 memcpy(&l->so_pref, so_pref, sizeof(union sockunion));
88 strlcpy(spreftmp, union_ntoa(so_pref), INET_ADDRSTRLEN);
93 from_union_to_cidr(so_pref), l->binding);
131 if (get_route(&rg, &l->so_dest, &l->so_pref, 1) == LDP_E_OK) {
132 delete_route(&l->so_dest, &l->so_pref, NO_FREESO);
133 add_route(&l->so_dest, &l->so_pref, &l->so_gate, NULL, NULL,
135 } else if (from_union_to_cidr(&l->so_pref) == 32 &&
142 add_route(&l->so_dest, &l->so_pref,
146 delete_route(&l->so_dest, &l->so_pref, NO_FREESO);
168 l->so_pref.sin.sin_addr.s_addr)
228 union sockunion *so_dest, *so_pref;
232 so_pref = from_cidr_to_union(prefixlen);
234 l = label_get(so_dest, so_pref);
237 free(so_pref);
268 from_union_to_cidr(&(l->so_pref)));
271 from_union_to_cidr(&(l->so_pref)),