Adding gem5 source to svn.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1819 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
35
simulators/gem5/ext/dnet/route.h
Normal file
35
simulators/gem5/ext/dnet/route.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* route.c
|
||||
*
|
||||
* Kernel route table operations.
|
||||
*
|
||||
* Copyright (c) 2000 Dug Song <dugsong@monkey.org>
|
||||
*
|
||||
* $Id: route.h,v 1.6 2002/02/04 04:02:22 dugsong Exp $
|
||||
*/
|
||||
|
||||
#ifndef DNET_ROUTE_H
|
||||
#define DNET_ROUTE_H
|
||||
|
||||
/*
|
||||
* Routing table entry
|
||||
*/
|
||||
struct route_entry {
|
||||
struct addr route_dst; /* destination address */
|
||||
struct addr route_gw; /* gateway address */
|
||||
};
|
||||
|
||||
typedef struct route_handle route_t;
|
||||
|
||||
typedef int (*route_handler)(const struct route_entry *entry, void *arg);
|
||||
|
||||
__BEGIN_DECLS
|
||||
route_t *route_open(void);
|
||||
int route_add(route_t *r, const struct route_entry *entry);
|
||||
int route_delete(route_t *r, const struct route_entry *entry);
|
||||
int route_get(route_t *r, struct route_entry *entry);
|
||||
int route_loop(route_t *r, route_handler callback, void *arg);
|
||||
route_t *route_close(route_t *r);
|
||||
__END_DECLS
|
||||
|
||||
#endif /* DNET_ROUTE_H */
|
||||
Reference in New Issue
Block a user