diff options
author | Ondrej Filip <feela@network.cz> | 2004-05-31 13:25:00 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-05-31 13:25:00 +0000 |
commit | b1a1fabac70201e9b05aeb9fd6af703f0fbffdb4 (patch) | |
tree | c03705e3b77b1fd2d39e2179eea9f85932f3af61 /sysdep/unix/krt-set.c | |
parent | 781aa475aaa7503d4a86f0d4b8771cd027d30c04 (diff) |
*BSD port added. (Tested on FreeBSD and NetBSD)
Diffstat (limited to 'sysdep/unix/krt-set.c')
-rw-r--r-- | sysdep/unix/krt-set.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdep/unix/krt-set.c b/sysdep/unix/krt-set.c index bd564486..67f32b89 100644 --- a/sysdep/unix/krt-set.c +++ b/sysdep/unix/krt-set.c @@ -13,6 +13,7 @@ #include <net/route.h> #undef LOCAL_DEBUG +#define LOCAL_DEBUG #include "nest/bird.h" #include "nest/iface.h" @@ -36,7 +37,7 @@ krt_capable(rte *e) (a->dest == RTD_ROUTER || a->dest == RTD_DEVICE #ifdef RTF_REJECT - || a->dest == RTD_UNREACHABLE + || a->dest == RTD_UNREACHABLE /* FIXME Blackhole, prohibited?? */ #endif ); } @@ -45,12 +46,12 @@ static void krt_ioctl(int ioc, rte *e, char *name) { net *net = e->net; - struct rtentry re; + struct ortentry re; rta *a = e->attrs; bzero(&re, sizeof(re)); fill_in_sockaddr((struct sockaddr_in *) &re.rt_dst, net->n.prefix, 0); - fill_in_sockaddr((struct sockaddr_in *) &re.rt_genmask, ipa_mkmask(net->n.pxlen), 0); + //fill_in_sockaddr((struct sockaddr_in *) &re.rt_genmask, ipa_mkmask(net->n.pxlen), 0); re.rt_flags = RTF_UP; if (net->n.pxlen == 32) re.rt_flags |= RTF_HOST; @@ -61,7 +62,7 @@ krt_ioctl(int ioc, rte *e, char *name) re.rt_flags |= RTF_GATEWAY; break; case RTD_DEVICE: - re.rt_dev = a->iface->name; + //re.rt_dev = a->iface->name; break; #ifdef RTF_REJECT case RTD_UNREACHABLE: |