Lines Matching defs:socktmp
65 union sockunion socktmp;
88 memset (&socktmp, 0, sizeof(socktmp));
102 socktmp.sa.sa_family = AF_INET;
103 socktmp.sa.sa_len = sizeof(socktmp.sin);
105 socktmp.sa.sa_family = AF_INET6;
106 socktmp.sa.sa_len = sizeof(socktmp.sin6);
116 if (socktmp.sa.sa_family == AF_INET)
117 memcpy(&socktmp.sin.sin_addr, &pref->prefix,
120 memcpy(&socktmp.sin6.sin6_addr, &pref->prefix,
123 inet_ntoa(p->ldp_id), satos(&socktmp.sa),
126 ldp_peer_add_mapping(p, &socktmp.sa, pref->prelen,
130 lbl_check = label_get_by_prefix(&socktmp.sa,
159 union sockunion socktmp;
172 memset(&socktmp, 0, sizeof(socktmp));
174 socktmp.sa.sa_family = AF_INET;
175 socktmp.sa.sa_len = sizeof(socktmp.sin);
177 socktmp.sa.sa_family = AF_INET6;
178 socktmp.sa.sa_len = sizeof(socktmp.sin6);
187 if (socktmp.sa.sa_family == AF_INET)
188 memcpy(&socktmp.sin.sin_addr, &pref->prefix,
191 memcpy(&socktmp.sin6.sin6_addr, &pref->prefix,
193 debugp("Prefix/Host withdraw: %s/%d\n", satos(&socktmp.sa),
197 ldp_peer_delete_mapping(p, &socktmp.sa, pref->prelen);
203 lab = label_get_by_prefix(&socktmp.sa, pref->prelen);
413 union sockunion socktmp;
423 memset(&socktmp, 0, sizeof(socktmp));
425 socktmp.sa.sa_family = AF_INET;
426 socktmp.sa.sa_len = sizeof(socktmp.sin);
428 socktmp.sa.sa_family = AF_INET6;
429 socktmp.sa.sa_len = sizeof(socktmp.sin6);
439 if (socktmp.sa.sa_family == AF_INET)
440 memcpy(&socktmp.sin.sin_addr, &pref->prefix,
443 memcpy(&socktmp.sin6.sin6_addr, &pref->prefix,
445 debugp("Prefix/Host request: %s/%d\n", satos(&socktmp.sa),
448 lab = label_get_by_prefix(&socktmp.sa, pref->prelen);
453 lrm.length = htons(socktmp.sa.sa_family == AF_INET ? 4 : 16);
455 send_label_tlv(p, &socktmp.sa, pref->prelen, lab->binding,