diff options
Diffstat (limited to 'pythonmod')
| -rw-r--r-- | pythonmod/interface.i | 4 | ||||
| -rw-r--r-- | pythonmod/pythonmod_utils.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pythonmod/interface.i b/pythonmod/interface.i index 0d95613f8c97..df8514b4793b 100644 --- a/pythonmod/interface.i +++ b/pythonmod/interface.i @@ -609,9 +609,9 @@ struct mesh_reply { struct comm_reply query_reply; }; -%rename(_addr) comm_reply::addr; +%rename(_addr) comm_reply::client_addr; struct comm_reply { - struct sockaddr_storage addr; + struct sockaddr_storage client_addr; }; %extend comm_reply { diff --git a/pythonmod/pythonmod_utils.c b/pythonmod/pythonmod_utils.c index 1f6f2512918f..aebe4d2bbb24 100644 --- a/pythonmod/pythonmod_utils.c +++ b/pythonmod/pythonmod_utils.c @@ -172,14 +172,14 @@ int createResponse(struct module_qstate* qstate, sldns_buffer* pkt) } -/* Convert reply->addr to string */ +/* Convert reply->client_addr to string */ void reply_addr2str(struct comm_reply* reply, char* dest, int maxlen) { - int af = (int)((struct sockaddr_in*) &(reply->addr))->sin_family; - void* sinaddr = &((struct sockaddr_in*) &(reply->addr))->sin_addr; + int af = (int)((struct sockaddr_in*) &(reply->client_addr))->sin_family; + void* sinaddr = &((struct sockaddr_in*) &(reply->client_addr))->sin_addr; if(af == AF_INET6) - sinaddr = &((struct sockaddr_in6*)&(reply->addr))->sin6_addr; + sinaddr = &((struct sockaddr_in6*)&(reply->client_addr))->sin6_addr; dest[0] = 0; if (inet_ntop(af, sinaddr, dest, (socklen_t)maxlen) == 0) return; |
