diff options
Diffstat (limited to 'usr.sbin/ldpd/lde.c')
-rw-r--r-- | usr.sbin/ldpd/lde.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/usr.sbin/ldpd/lde.c b/usr.sbin/ldpd/lde.c index f9756334754..521d7076356 100644 --- a/usr.sbin/ldpd/lde.c +++ b/usr.sbin/ldpd/lde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lde.c,v 1.5 2009/08/01 13:30:55 michele Exp $ */ +/* $OpenBSD: lde.c,v 1.6 2009/09/28 09:48:46 michele Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -385,15 +385,6 @@ lde_dispatch_parent(int fd, short event, void *bula) break; case IMSG_NETWORK_DEL: - if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(rr)) { - log_warnx("lde_dispatch_parent: " - "wrong imsg len"); - break; - } - memcpy(&rr, imsg.data, sizeof(rr)); - - break; - case IMSG_KROUTE_GET: if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) { log_warnx("lde_dispatch_parent: " "wrong imsg len"); @@ -401,14 +392,8 @@ lde_dispatch_parent(int fd, short event, void *bula) } memcpy(&kr, imsg.data, sizeof(kr)); -/* if ((rn = rt_find(kr.prefix.s_addr, kr.prefixlen, - DT_NET)) != NULL) - lde_send_change_kroute(rn); - else*/ - /* should not happen */ - imsg_compose_event(iev_main, - IMSG_KLABEL_DELETE, 0, - 0, -1, &kr, sizeof(kr)); + lde_kernel_remove(&kr); + break; case IMSG_RECONF_CONF: if ((nconf = malloc(sizeof(struct ldpd_conf))) == |