diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-20 14:30:17 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-20 14:30:17 +0000 |
commit | 6f7d1a69e5905f5e56740a8d8b93ee46c56a195b (patch) | |
tree | 61de512a143a4c973cac3dc39218ce295f1598ce /dns/nsping/files/patch-nsping.h | |
parent | Update to 0.08. (diff) |
- Support IPv6
PR: ports/77608
Submitted by: Vladimir Kotal <vlada@devnull.cz>
Approved by: maintainer timeout (5 months)
Notes
Notes:
svn path=/head/; revision=139706
Diffstat (limited to '')
-rw-r--r-- | dns/nsping/files/patch-nsping.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dns/nsping/files/patch-nsping.h b/dns/nsping/files/patch-nsping.h new file mode 100644 index 000000000000..fc73b5804e87 --- /dev/null +++ b/dns/nsping/files/patch-nsping.h @@ -0,0 +1,25 @@ +--- nsping.h.orig Wed Jul 20 15:23:39 2005 ++++ nsping.h Tue Feb 15 17:29:55 2005 +@@ -27,7 +27,7 @@ + #endif + + #define QUERY_BACKLOG 1024 +-#define DNS_PORT 53 ++#define DNS_PORT "53" + #define DEFAULT_SECOND_INTERVAL 1 + #define DEFAULT_USECOND_INTERVAL 0 + +@@ -40,11 +40,10 @@ + void summarize(int); + double trip_time(struct timeval *send_time, struct timeval *rcv); + struct timeval *timeval_subtract(struct timeval *out, struct timeval *in); +-char *addr_string(u_int32_t address); +-int bind_udp_socket(u_int32_t address, u_int16_t port); ++int bind_udp_socket(char *port); + void dprintf(char *fmt, ...); + void usage(void); + char *xstrdup(char *v); +-u_int32_t resolve(char *name); ++struct addrinfo *resolve(char *name, char *port); + + #endif |