summaryrefslogtreecommitdiffstats
path: root/sbin/routed/rdisc.c
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-08-02 11:38:20 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-08-02 11:38:20 +0000
commitcb57b94ee39b660cfc6b617c2551208cf58317b5 (patch)
treefb36327bc743d30e739b5789da2091cd8d482bb4 /sbin/routed/rdisc.c
parent5f91d2827b0e159f290b14dfc001cedaeed3ba0b (diff)
downloadFreeBSD-src-cb57b94ee39b660cfc6b617c2551208cf58317b5.zip
FreeBSD-src-cb57b94ee39b660cfc6b617c2551208cf58317b5.tar.gz
Resolve conflicts from vendor merge.
Diffstat (limited to 'sbin/routed/rdisc.c')
-rw-r--r--sbin/routed/rdisc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/routed/rdisc.c b/sbin/routed/rdisc.c
index dd99b8d..764463a 100644
--- a/sbin/routed/rdisc.c
+++ b/sbin/routed/rdisc.c
@@ -86,7 +86,7 @@ struct dr { /* accumulated advertisements */
struct interface *dr_ifp;
naddr dr_gate; /* gateway */
time_t dr_ts; /* when received */
- time_t dr_life; /* lifetime */
+ time_t dr_life; /* lifetime in host byte order */
n_long dr_recv_pref; /* received but biased preference */
n_long dr_pref; /* preference adjusted by metric */
} *cur_drp, drs[MAX_ADS];
@@ -567,7 +567,7 @@ static void
parse_ad(naddr from,
naddr gate,
n_long pref, /* signed and in network order */
- u_short life,
+ u_short life, /* in host byte order */
struct interface *ifp)
{
static struct msg_limit bad_gate;
@@ -649,7 +649,7 @@ parse_ad(naddr from,
new_drp->dr_ifp = ifp;
new_drp->dr_gate = gate;
new_drp->dr_ts = now.tv_sec;
- new_drp->dr_life = ntohs(life);
+ new_drp->dr_life = life;
new_drp->dr_recv_pref = pref;
/* bias functional preference by metric of the interface */
new_drp->dr_pref = PREF(pref,ifp);
OpenPOWER on IntegriCloud