summaryrefslogtreecommitdiffstats
path: root/sysdep/bsd
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-01 15:58:39 +0200
committerOndrej Filip <feela@network.cz>2004-06-01 15:58:39 +0200
commit7048461df113b335b9cfc56c517bc5802ef7b6c8 (patch)
tree341a24f4160510eb9b860edd114bf1d83f66fdd3 /sysdep/bsd
parente8bf6c0766dba95c4b7ebb8b29dad31392f212b7 (diff)
downloadbird-7048461df113b335b9cfc56c517bc5802ef7b6c8.tar
bird-7048461df113b335b9cfc56c517bc5802ef7b6c8.zip
Code clean up.
Diffstat (limited to 'sysdep/bsd')
-rw-r--r--sysdep/bsd/krt-sock.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index 3b8c50f..f9583d8 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -335,7 +335,6 @@ krt_read_rt(struct ks_msg *msg, struct krt_proto *p, int scan)
a.dest = RTD_NONE;
-
if (flags & RTF_GATEWAY)
{
neighbor *ng = neigh_find(&p->p, &igate, 0);
@@ -376,8 +375,6 @@ krt_read_rt(struct ks_msg *msg, struct krt_proto *p, int scan)
src = KRT_SRC_UNKNOWN; /* FIXME */
-
-
e = rte_get_temp(&a);
e->net = net;
e->u.krt.src = src;
@@ -443,10 +440,7 @@ krt_read_ifinfo(struct ks_msg *msg)
f.flags = 0;
if (fl & IFF_UP)
- {
- //f.flags |= IF_UP; /* FIXME */
f.flags |= IF_LINK_UP;
- }
if (fl & IFF_LOOPBACK) /* Loopback */
f.flags |= IF_MULTIACCESS | IF_LOOPBACK | IF_IGNORE;
else if (fl & IFF_POINTOPOINT) /* PtP */
@@ -538,26 +532,21 @@ krt_read_msg(struct proto *p, struct ks_msg *msg, int scan)
if(!scan) return;
case RTM_ADD:
case RTM_DELETE:
- //log("KRT_ADD/DELETE");
krt_read_rt(msg, (struct krt_proto *)p, scan);
break;
case RTM_IFINFO:
- //log("KRT_IFINFO");
krt_read_ifinfo(msg);
break;
case RTM_NEWADDR:
case RTM_DELADDR:
- //log("KRT_NEWADDR/DELADDR");
krt_read_addr(msg);
break;
#ifdef RTM_IFANNOUNCE
- case RTM_IFANNOUNCE:
- log("KRT_IFANNOUNCE");
- //ifan_read (&buf.ian.ifan);
+ case RTM_IFANNOUNCE: /* FIXME: We should handle it */
break;
#endif /* RTM_IFANNOUNCE */
default:
- log("Unprocessed RTM_type: %d", msg->rtm.rtm_type);
+ log(L_ERR "Unprocessed RTM_type: %d", msg->rtm.rtm_type);
break;
}
}