Deleted Added
full compact
route6d.c (331722) route6d.c (338279)
1/* $FreeBSD: stable/11/usr.sbin/route6d/route6d.c 331722 2018-03-29 02:50:57Z eadler $ */
1/* $FreeBSD: stable/11/usr.sbin/route6d/route6d.c 338279 2018-08-23 21:24:22Z markj $ */
2/* $KAME: route6d.c,v 1.104 2003/10/31 00:30:20 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 2188 unchanged lines hidden (view full) ---

2198 trace(1, "route: %s/%d: "
2199 "already registered (%s)\n",
2200 inet6_n2p(&np->rip6_dest), np->rip6_plen,
2201 ifcp->ifc_name);
2202 }
2203 goto next;
2204 }
2205
2/* $KAME: route6d.c,v 1.104 2003/10/31 00:30:20 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 2188 unchanged lines hidden (view full) ---

2198 trace(1, "route: %s/%d: "
2199 "already registered (%s)\n",
2200 inet6_n2p(&np->rip6_dest), np->rip6_plen,
2201 ifcp->ifc_name);
2202 }
2203 goto next;
2204 }
2205
2206 TAILQ_REMOVE(&riprt_head, rrt, rrt_next);
2207 delroute(&rrt->rrt_info, &rrt->rrt_gw);
2206 TAILQ_REMOVE(&riprt_head, search_rrt, rrt_next);
2207 delroute(&search_rrt->rrt_info,
2208 &search_rrt->rrt_gw);
2209 free(search_rrt);
2208 }
2209 /* Attach the route to the list */
2210 trace(1, "route: %s/%d: register route (%s)\n",
2211 inet6_n2p(&np->rip6_dest), np->rip6_plen,
2212 ifcp->ifc_name);
2213 TAILQ_INSERT_HEAD(&riprt_head, rrt, rrt_next);
2214 addroute(rrt, &rrt->rrt_gw, ifcp);
2215 rrt = NULL;

--- 1408 unchanged lines hidden ---
2210 }
2211 /* Attach the route to the list */
2212 trace(1, "route: %s/%d: register route (%s)\n",
2213 inet6_n2p(&np->rip6_dest), np->rip6_plen,
2214 ifcp->ifc_name);
2215 TAILQ_INSERT_HEAD(&riprt_head, rrt, rrt_next);
2216 addroute(rrt, &rrt->rrt_gw, ifcp);
2217 rrt = NULL;

--- 1408 unchanged lines hidden ---