in rtinit, allow for deleting pt to pt hosts, by requiring
authorKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Sun, 10 Nov 1985 07:51:09 +0000 (23:51 -0800)
committerKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Sun, 10 Nov 1985 07:51:09 +0000 (23:51 -0800)
SCCS-vsn: sys/net/route.c 6.13

usr/src/sys/net/route.c

index 15d61c8..70b240b 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)route.c     6.12 (Berkeley) %G%
+ *     @(#)route.c     6.13 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -319,19 +319,12 @@ bad:
  * Set up a routing table entry, normally
  * for an interface.
  */
  * Set up a routing table entry, normally
  * for an interface.
  */
-rtinit(dst, gateway, flags)
+rtinit(dst, gateway, cmd, flags)
        struct sockaddr *dst, *gateway;
        struct sockaddr *dst, *gateway;
-       int flags;
+       int cmd, flags;
 {
        struct rtentry route;
 {
        struct rtentry route;
-       int cmd;
 
 
-       if (flags == -1) {
-               cmd = (int)SIOCDELRT;
-               flags = 0;
-       } else {
-               cmd = (int)SIOCADDRT;
-       }
        bzero((caddr_t)&route, sizeof (route));
        route.rt_dst = *dst;
        route.rt_gateway = *gateway;
        bzero((caddr_t)&route, sizeof (route));
        route.rt_dst = *dst;
        route.rt_gateway = *gateway;