route.h

Go to the documentation of this file.
00001 /*
00002 ** route.h for  in /home/anoman/work/lse/lseos/lseos-net/inet
00003 ** 
00004 ** Copyright (c)2004 Arthur Kopatsy
00005 ** Login   <kopats_a@epita.fr>
00006 ** 
00007 ** Started on  Wed Nov  3 16:29:30 2004 Arthur Kopatsy
00008 ** Last update Mon Nov 29 10:40:21 2004 Arthur Kopatsy
00009 */
00010 
00011 #ifndef ROUTE_H_
00012 #define ROUTE_H_
00013 
00014 struct s_route_entry
00015 {
00016   LIST_ENTRY(s_route_entry)     rt_next;
00017   int                           rt_ready;
00018   struct s_route                rt;
00019   struct s_iface                *rt_iface;
00020 };
00021 
00022 LIST_HEAD(s_route_table, s_route_entry);
00023 
00024 /* PROTO route.c */
00025 #ifdef __INET__
00026 /* route.c */
00027 struct s_route_entry *find_route(struct in_addr *dst);
00028 int route_create_entry(struct s_entry *father, char *filename, struct s_entry **new);
00029 int route_read(pid_t pid, t_of *of, char *ubuf, size_t usize);
00030 int route_set(struct s_route_entry *route, struct s_subnet *rt_subnet, struct in_addr *rt_gw);
00031 int route_write(pid_t pid, t_of *of, char *ubuf, size_t usize);
00032 #endif /* __INET__ */
00033 #endif

Generated on Wed May 24 23:05:52 2006 for LSE/OS by  doxygen 1.4.6