diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-12-14 17:26:49 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-12-14 17:26:49 +0100 |
commit | aec98a903f19ae408fe699ff0963b90990c46d83 (patch) | |
tree | 81e29db8121d293e50b8f91c214ed29160aadc8a | |
parent | ee487be879431b5babea11218bf42b2d6d20809f (diff) |
astraceroute: Use proper type for ctx.sd_len
The sd_len member of struct ctx stores a copy of struct addrinfo member
ai_addrlen which is of type socklen_t. Also it is used in a sendto()
call which also expects a socklen_t. Adjust sd_len to be socklen_t too.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | astraceroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/astraceroute.c b/astraceroute.c index a78cf4c..ae40ff6 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -49,9 +49,10 @@ struct ctx { char *host, *port, *dev, *payload, *bind_addr; size_t totlen, rcvlen; + socklen_t sd_len; int init_ttl, max_ttl, dns_resolv, queries, timeout; int syn, ack, ecn, fin, psh, rst, urg, tos, nofrag, proto, show; - int sd_len, dport, latitude; + int dport, latitude; }; struct proto_ops { |