version 1.1.1.1, 2019/10/21 14:25:31
|
version 1.1.1.3, 2023/09/27 11:18:58
|
Line 3
|
Line 3
|
Copyright (C) 1997,1998 Matt Kimball |
Copyright (C) 1997,1998 Matt Kimball |
|
|
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 11
|
Line 11
|
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. |
*/ |
*/ |
|
|
/* Prototypes for functions in net.c */ |
/* Prototypes for functions in net.c */ |
Line 33
|
Line 33
|
|
|
extern int net_open( |
extern int net_open( |
struct mtr_ctl *ctl, |
struct mtr_ctl *ctl, |
struct hostent *host); | struct addrinfo *res); |
extern void net_reopen( |
extern void net_reopen( |
struct mtr_ctl *ctl, |
struct mtr_ctl *ctl, |
struct hostent *address); | struct addrinfo *res); |
extern void net_reset( |
extern void net_reset( |
struct mtr_ctl *ctl); |
struct mtr_ctl *ctl); |
extern void net_close( |
extern void net_close( |
Line 56 extern int net_last(
|
Line 56 extern int net_last(
|
int at); |
int at); |
extern ip_t *net_addr( |
extern ip_t *net_addr( |
int at); |
int at); |
extern void *net_mpls( | extern int net_err( |
int at); |
int at); |
extern void *net_mplss( | extern struct mplslen *net_mpls( |
| int at); |
| extern struct mplslen *net_mplss( |
int, |
int, |
int); |
int); |
extern int net_loss( |
extern int net_loss( |
Line 88 extern ip_t *net_addrs(
|
Line 90 extern ip_t *net_addrs(
|
int i); |
int i); |
extern char *net_localaddr( |
extern char *net_localaddr( |
void); |
void); |
|
extern char *net_remoteaddr( |
|
void); |
|
|
extern int net_send_batch( |
extern int net_send_batch( |
struct mtr_ctl *ctl); |
struct mtr_ctl *ctl); |
Line 115 extern void net_save_return(
|
Line 119 extern void net_save_return(
|
int ms); |
int ms); |
|
|
extern int addrcmp( |
extern int addrcmp( |
char *a, | void *a, |
char *b, | void *b, |
int af); | |
extern void addrcpy( | |
char *a, | |
char *b, | |
int af); |
int af); |
|
|
extern void net_add_fds( |
extern void net_add_fds( |