Diff for /embedaddon/mtr/ui/mtr.h between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2019/10/21 14:25:31 version 1.1.1.2, 2021/03/17 00:07:30
Line 12 Line 12
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.      GNU General Public License for more details.
   
    You should have received a copy of the GNU General Public License    You should have received a copy of the GNU General Public License along
    along with this program; if not, write to the Free Software    with this program; if not, write to the Free Software Foundation, Inc.,
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */  */
   
 #ifndef MTR_MTR_H  #ifndef MTR_MTR_H
Line 61  typedef int time_t; Line 61  typedef int time_t;
   
 /* net related definitions */  /* net related definitions */
 #define SAVED_PINGS 200  #define SAVED_PINGS 200
#define MAXPATH 8#define MAX_PATH 8
 #define MaxHost 256  #define MaxHost 256
 #define MinPort 1024  #define MinPort 1024
 #define MaxPort 65535  #define MaxPort 65535
Line 83  struct mtr_ctl { Line 83  struct mtr_ctl {
     float WaitTime;      float WaitTime;
     float GraceTime;      float GraceTime;
     char *Hostname;      char *Hostname;
       char *InterfaceName;
     char *InterfaceAddress;      char *InterfaceAddress;
     char LocalHostname[128];      char LocalHostname[128];
     int ipinfo_no;      int ipinfo_no;
Line 132  extern const struct fields data_fields[MAXFLD]; Line 133  extern const struct fields data_fields[MAXFLD];
 /* MPLS label object */  /* MPLS label object */
 struct mplslen {  struct mplslen {
     unsigned long label[MAXLABELS];     /* label value */      unsigned long label[MAXLABELS];     /* label value */
    uint8_t exp[MAXLABELS];     /* experimental bits */    uint8_t tc[MAXLABELS];     /* Traffic Class bits */
     uint8_t ttl[MAXLABELS];     /* MPLS TTL */      uint8_t ttl[MAXLABELS];     /* MPLS TTL */
     char s[MAXLABELS];          /* bottom of stack */      char s[MAXLABELS];          /* bottom of stack */
     char labels;                /* how many labels did we get? */      char labels;                /* how many labels did we get? */
 };  };
   
   
   #ifdef USING_CYGWIN
   #define running_as_root() 1
   #else
   #define running_as_root() (getuid() == 0)
   #endif
   
 #endif                          /* MTR_MTR_H */  #endif                          /* MTR_MTR_H */

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>