Lines Matching defs:nexthop
16 /* int transport_lookup(info, address, rcpt_domain, channel, nexthop)
21 /* VSTRING *nexthop;
27 /* user@domain addresses to (channel, nexthop) tuples.
36 /* transport_lookup() finds the channel and nexthop for the given
134 VSTRING *nexthop)
138 * :[nexthop] means don't change the channel, and don't change the
139 * nexthop unless a non-default nexthop is specified. Thus, a right-hand
142 if (*new_channel == 0) { /* :[nexthop] */
144 vstring_strcpy(nexthop, new_nexthop);
148 * transport[:[nexthop]] means change the channel, and reset the nexthop
149 * to the default unless a non-default nexthop is specified.
154 vstring_strcpy(nexthop, new_nexthop);
156 vstring_strcpy(nexthop, rcpt_domain);
158 vstring_strcpy(nexthop, "Address is undeliverable");
166 VSTRING *channel, VSTRING *nexthop)
194 channel, nexthop);
205 VSTRING *nexthop = vstring_alloc(10);
208 * Both channel and nexthop may be zero-length strings. Therefore we must
231 if (find_transport_entry(tp, WILDCARD, "", FULL, channel, nexthop)) {
234 tp->wildcard_nexthop = nexthop;
237 vstring_str(channel), vstring_str(nexthop));
241 vstring_free(nexthop);
252 VSTRING *channel, VSTRING *nexthop)
278 if (find_transport_entry(tp, addr, rcpt_domain, FULL, channel, nexthop))
291 channel, nexthop);
317 if (find_transport_entry(tp, name, rcpt_domain, PARTIAL, channel, nexthop))
337 rcpt_domain, channel, nexthop);