+bad:
+ splx(s);
+ return (error);
+}
+
+/*
+ * Set up a routing table entry, normally
+ * for an interface.
+ */
+rtinit(dst, gateway, flags)
+ struct sockaddr *dst, *gateway;
+ int flags;
+{
+ struct rtentry route;
+ struct route ro;
+
+ bzero((caddr_t)&route, sizeof (route));
+ route.rt_dst = *dst;
+ route.rt_gateway = *gateway;
+ route.rt_flags = flags;
+ (void) rtrequest(SIOCADDRT, &route);