diff options
author | Ondrej Filip <feela@network.cz> | 2004-05-31 15:25:00 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-05-31 15:25:00 +0200 |
commit | b1a1fabac70201e9b05aeb9fd6af703f0fbffdb4 (patch) | |
tree | c03705e3b77b1fd2d39e2179eea9f85932f3af61 /sysdep/bsd/krt-sock.h | |
parent | 781aa475aaa7503d4a86f0d4b8771cd027d30c04 (diff) | |
download | bird-b1a1fabac70201e9b05aeb9fd6af703f0fbffdb4.tar bird-b1a1fabac70201e9b05aeb9fd6af703f0fbffdb4.zip |
*BSD port added. (Tested on FreeBSD and NetBSD)
Diffstat (limited to 'sysdep/bsd/krt-sock.h')
-rw-r--r-- | sysdep/bsd/krt-sock.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sysdep/bsd/krt-sock.h b/sysdep/bsd/krt-sock.h new file mode 100644 index 0000000..41ff9c5 --- /dev/null +++ b/sysdep/bsd/krt-sock.h @@ -0,0 +1,47 @@ +/* + * BIRD -- Unix Kernel Route Syncer -- Setting + * + * (c) 2004 Ondrej Filip <feela@network.cz> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#ifndef _BIRD_KRT_SOCK_H_ +#define _BIRD_KRT_SOCK_H_ + +#include <sys/socket.h> +#include <net/route.h> +#include "lib/socket.h" + +#ifndef RTAX_MAX +#define RTAX_MAX 8 +#endif + + +struct ks_msg +{ + struct rt_msghdr rtm; + struct sockaddr_storage buf[RTAX_MAX]; +}; + + + +extern int krt_set_sock; + +struct krt_set_params { +}; + +struct krt_set_status { +}; + +struct krt_if_params { +}; + +struct krt_if_status { +}; + +static int krt_set_hook(sock *sk, int size); +static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; } +void krt_read_msg(struct proto *p, struct ks_msg *msg, int scan); + +#endif |