|
|
1.1 root 1: /* routes.h - support for MIB support of the routing tables */
2:
3: /*
4: * $Header: /f/osi/snmp/RCS/routes.h,v 7.0 89/11/23 22:23:22 mrose Rel $
5: *
6: * Contributed by NYSERNet Inc. This work was partially supported by the
7: * U.S. Defense Advanced Research Projects Agency and the Rome Air Development
8: * Center of the U.S. Air Force Systems Command under contract number
9: * F30602-88-C-0016.
10: *
11: *
12: * $Log: routes.h,v $
13: * Revision 7.0 89/11/23 22:23:22 mrose
14: * Release 6.0
15: *
16: */
17:
18: /*
19: * NOTICE
20: *
21: * Acquisition, use, and distribution of this module and related
22: * materials are subject to the restrictions of a license agreement.
23: * Consult the Preface in the User's Manual for the full terms of
24: * this agreement.
25: *
26: */
27:
28:
29: #ifdef BSD44
30: #include <sys/param.h>
31: #include <machine/endian.h>
32: #include <machine/machparam.h>
33: #endif
34: #include <sys/mbuf.h>
35: #include <net/route.h>
36:
37: /* */
38:
39: #define METRIC_NONE (-1) /* ipRouteMetric[1234] */
40:
41: #define TYPE_OTHER 1 /* ipRouteType */
42: #define TYPE_DIRECT 3
43: #define TYPE_REMOTE 4
44:
45: #define PROTO_OTHER 1 /* ipRouteProto */
46: #define PROTO_ICMP 4
47: #define PROTO_ESIS 10
48:
49: /* */
50:
51: struct rtetab {
52: #define RT_SIZE 20 /* object instance */
53: unsigned int rt_instance[RT_SIZE + 1];
54: int rt_insize;
55:
56: int rt_magic; /* for multiple routes to the
57: same destination */
58:
59: struct rtentry rt_rt; /* from kernel */
60:
61: union sockaddr_un rt_dst; /* key */
62: union sockaddr_un rt_gateway; /* value */
63:
64: struct rtetab *rt_next;
65: };
66:
67: extern struct rtetab *rts_inet;
68: #ifdef BSD44
69: extern struct rtetab *rts_iso;
70: #endif
71:
72:
73: int get_routes ();
74: struct rtetab *get_rtent ();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.