--- embedaddon/mtr/ui/net.h 2019/10/21 14:25:31 1.1 +++ embedaddon/mtr/ui/net.h 2023/09/27 11:18:58 1.1.1.3 @@ -3,7 +3,7 @@ Copyright (C) 1997,1998 Matt Kimball 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. This program is distributed in the hope that it will be useful, @@ -11,9 +11,9 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Prototypes for functions in net.c */ @@ -33,10 +33,10 @@ extern int net_open( struct mtr_ctl *ctl, - struct hostent *host); + struct addrinfo *res); extern void net_reopen( struct mtr_ctl *ctl, - struct hostent *address); + struct addrinfo *res); extern void net_reset( struct mtr_ctl *ctl); extern void net_close( @@ -56,9 +56,11 @@ extern int net_last( int at); extern ip_t *net_addr( int at); -extern void *net_mpls( +extern int net_err( int at); -extern void *net_mplss( +extern struct mplslen *net_mpls( + int at); +extern struct mplslen *net_mplss( int, int); extern int net_loss( @@ -88,6 +90,8 @@ extern ip_t *net_addrs( int i); extern char *net_localaddr( void); +extern char *net_remoteaddr( + void); extern int net_send_batch( struct mtr_ctl *ctl); @@ -115,12 +119,8 @@ extern void net_save_return( int ms); extern int addrcmp( - char *a, - char *b, - int af); -extern void addrcpy( - char *a, - char *b, + void *a, + void *b, int af); extern void net_add_fds(