Skip to content

Commit

Permalink
use rti_flags in bsdi4 only
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmei committed Jun 16, 2000
1 parent 6cae7d9 commit 1d58ad1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kame/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
/* $KAME: nd6_rtr.c,v 1.41 2000/06/14 07:35:06 jinmei Exp $ */
/* $KAME: nd6_rtr.c,v 1.42 2000/06/16 12:38:15 jinmei Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -459,7 +459,10 @@ defrouter_msg(cmd, rt)
struct rt_addrinfo info;

bzero((caddr_t)&info, sizeof(info));
#if (defined(__bsdi__) && _BSDI_VERSION >= 199802) /* BSDI4 */
/* maybe this is unnecessary */
info.rti_flags = rt->rt_flags;
#endif
info.rti_info[RTAX_DST] = rt_key(rt);
info.rti_info[RTAX_GATEWAY] = rt->rt_gateway;
info.rti_info[RTAX_NETMASK] = rt_mask(rt);
Expand Down

0 comments on commit 1d58ad1

Please sign in to comment.