diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-03 14:53:05 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-03 14:53:05 +0000 |
commit | e90c50ef1e680cf6d41ba406eb0e767bbfef0fbd (patch) | |
tree | 5115e07037911501d5c29de756fc7d40e5e542d0 /sys/netinet/ip_gre.c | |
parent | f011df21d7190430bdfb5446677e0c2fcd867dd1 (diff) |
add support for ifconfig clone/destroy; ok henning deraadt
Diffstat (limited to 'sys/netinet/ip_gre.c')
-rw-r--r-- | sys/netinet/ip_gre.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_gre.c b/sys/netinet/ip_gre.c index 32577201e83..e476c4d61ae 100644 --- a/sys/netinet/ip_gre.c +++ b/sys/netinet/ip_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_gre.c,v 1.22 2003/07/09 22:03:16 itojun Exp $ */ +/* $OpenBSD: ip_gre.c,v 1.23 2003/12/03 14:52:23 markus Exp $ */ /* $NetBSD: ip_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -390,9 +390,8 @@ gre_lookup(m, proto) { struct ip *ip = mtod(m, struct ip *); struct gre_softc *sc; - int i; - for (i = 0, sc = gre; i < ngre; i++, sc++) { + LIST_FOREACH(sc, &gre_softc_list, sc_list) { if ((sc->g_dst.s_addr == ip->ip_src.s_addr) && (sc->g_src.s_addr == ip->ip_dst.s_addr) && (sc->g_proto == proto) && |