| 6128 | }; |
| 6129 | |
| 6130 | static int |
| 6131 | TSHostLookupTrampoline(TSCont contp, TSEvent ev, void *data) |
| 6132 | { |
| 6133 | auto c = reinterpret_cast<INKContInternal *>(contp); |
| 6134 | // Set up the local context. |
| 6135 | TSResolveInfo ri; |
| 6136 | ri.record = static_cast<HostDBRecord *>(data); |
| 6137 | if (ri.record) { |
| 6138 | ri.record->rr_info()[0].data.ip.toSockAddr(ri.addr); |
| 6139 | } |
| 6140 | auto *target = reinterpret_cast<INKContInternal *>(c->mdata); |
| 6141 | // Deliver the message. |
| 6142 | target->handleEvent(ev, &ri); |
| 6143 | // Cleanup. |
| 6144 | c->destroy(); |
| 6145 | return TS_SUCCESS; |
| 6146 | }; |
| 6147 | |
| 6148 | TSAction |
| 6149 | TSHostLookup(TSCont contp, const char *hostname, size_t namelen) |
nothing calls this directly
no test coverage detected