|
|
| version 1.1.1.2, 2021/03/17 00:07:30 | version 1.1.1.3, 2023/09/27 11:18:58 |
|---|---|
| Line 4 | Line 4 |
| Copyright (C) 2005 R.E.Wolff@BitWizard.nl | Copyright (C) 2005 R.E.Wolff@BitWizard.nl |
| This program is free software; you can redistribute it and/or modify | This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License version 2 as | it under the terms of the GNU General Public License version 2 as |
| published by the Free Software Foundation. | published by the Free Software Foundation. |
| This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, |
| Line 23 | Line 23 |
| #include "config.h" | #include "config.h" |
| #include <stdint.h> | #include <stdint.h> |
| #include <netdb.h> | |
| #include <sys/socket.h> | #include <sys/socket.h> |
| #include <arpa/inet.h> | #include <arpa/inet.h> |
| Line 32 | Line 33 |
| /* Typedefs */ | /* Typedefs */ |
| #ifdef ENABLE_IPV6 | #ifdef ENABLE_IPV6 |
| #define DEFAULT_AF AF_UNSPEC | |
| typedef struct in6_addr ip_t; | typedef struct in6_addr ip_t; |
| #else | #else |
| #define DEFAULT_AF AF_INET | |
| typedef struct in_addr ip_t; | typedef struct in_addr ip_t; |
| #endif | #endif |
| Line 82 struct mtr_ctl { | Line 85 struct mtr_ctl { |
| int MaxPing; | int MaxPing; |
| float WaitTime; | float WaitTime; |
| float GraceTime; | float GraceTime; |
| char *Hostname; | const char *Hostname; |
| char *InterfaceName; | char *InterfaceName; |
| char *InterfaceAddress; | char *InterfaceAddress; |
| char LocalHostname[128]; | char LocalHostname[128]; |
| Line 145 struct mplslen { | Line 148 struct mplslen { |
| #else | #else |
| #define running_as_root() (getuid() == 0) | #define running_as_root() (getuid() == 0) |
| #endif | #endif |
| int get_addrinfo_from_name( | |
| struct mtr_ctl *ctl, | |
| struct addrinfo **res, | |
| const char *name); | |
| #endif /* MTR_MTR_H */ | #endif /* MTR_MTR_H */ |