diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-01 12:57:13 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-01 12:57:13 +0000 |
commit | 8281ff201e1eebe35cb8e7716565361bed77a6cd (patch) | |
tree | 8ae60ae9f98433c27d70af36c3bf70d6af5886ca /sysdep | |
parent | 77772dbc6555dfb9aa76c812bcd1792ab503cbe1 (diff) |
Reverting last patch.
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/bsd/krt-sock.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 4a77bec9..3b8c50fb 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -107,7 +107,6 @@ krt_sock_send(int cmd, rte *e, char *name) struct ks_msg msg; char *body = (char *)msg.buf; sockaddr gate, mask, dst; - static struct iface *loop = NULL; DBG("krt-sock: send %I/%d via %I", net->n.prefix, net->n.pxlen, a->gw); @@ -146,20 +145,16 @@ krt_sock_send(int cmd, rte *e, char *name) */ if(!i) { - if(!loop) - { - i = HEAD(iface_list); + i = HEAD(iface_list); - WALK_LIST(j, iface_list) + WALK_LIST(j, iface_list) + { + if (j->flags & IF_LOOPBACK) { - if (j->flags & IF_LOOPBACK) - { - i = j; - break; - } + i = j; + break; } } - i = loop; } switch (a->dest) |