+/*
+ * Check for alternatives when higher level complains
+ * about service problems. For now, invalidate cached
+ * routing information. If the route was created dynamically
+ * (by a redirect), time to try a default gateway again.
+ */
+in_losing(inp)
+ struct inpcb *inp;
+{
+ register struct rtentry *rt;
+
+ if ((rt = inp->inp_route.ro_rt)) {
+ if (rt->rt_flags & RTF_DYNAMIC)
+ rtrequest(SIOCDELRT, rt);
+ rtfree(rt);
+ inp->inp_route.ro_rt = 0;
+ /*
+ * A new route can be allocated
+ * the next time output is attempted.
+ */
+ }
+}
+