1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/*
* scamper_rtsock.h
*
* $Id: scamper_rtsock.h,v 1.9 2007/03/14 01:12:38 mjl Exp $
*
* Copyright (C) 2004-2007 The University of Waikato
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __SCAMPER_RTSOCK_H
#define __SCAMPER_RTSOCK_H
int scamper_rtsock_init(void);
void scamper_rtsock_cleanup(void);
int scamper_rtsock_open(void);
int scamper_rtsock_open_fd(void);
void scamper_rtsock_read_cb(const int fd, void *param);
#ifdef __SCAMPER_ADDR_H
#ifdef __SCAMPER_FD_H
int scamper_rtsock_getroute(scamper_fd_t *fdn, scamper_addr_t *addr);
#endif
typedef struct scamper_rt_rec
{
int error;
int ifindex;
scamper_addr_t *gwaddr;
} scamper_rt_rec_t;
#endif
#endif /* SCAMPER_RTSOCK_H */
|