- fixed byte order of route lifetimes in route info opptions.
- corrected wording in a log message. Obtained from: KAME MFC after: 1 week
This commit is contained in:
parent
843aa7b528
commit
a9379b2924
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113325
@ -478,7 +478,7 @@ getconfig(intface)
|
||||
MAYHAVE(val, entbuf, 0);
|
||||
rti->rtpref = val & ND_RA_FLAG_RTPREF_MASK;
|
||||
if (rti->rtpref == ND_RA_FLAG_RTPREF_RSV) {
|
||||
syslog(LOG_ERR, "<%s> invalid router preference",
|
||||
syslog(LOG_ERR, "<%s> invalid route preference",
|
||||
__FUNCTION__);
|
||||
exit(1);
|
||||
}
|
||||
@ -1056,7 +1056,7 @@ make_packet(struct rainfo *rainfo)
|
||||
ndopt_rti->nd_opt_rti_len = 1 + psize;
|
||||
ndopt_rti->nd_opt_rti_prefixlen = rti->prefixlen;
|
||||
ndopt_rti->nd_opt_rti_flags = 0xff & rti->rtpref;
|
||||
ndopt_rti->nd_opt_rti_lifetime = rti->ltime;
|
||||
ndopt_rti->nd_opt_rti_lifetime = htonl(rti->ltime);
|
||||
memcpy(ndopt_rti + 1, &rti->prefix, psize * 8);
|
||||
buf += sizeof(struct nd_opt_route_info) + psize * 8;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user