Logo Search packages:      
Sourcecode: scamper version File versions  Download package

scamper_rtsock.h

/*
 * 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 */

Generated by  Doxygen 1.6.0   Back to index