Logic of updating prefix lifetime is big enough that deserves
its own function.
While here, fix style.
Details
Details
- Reviewers
markj glebius bz - Group Reviewers
network - Commits
- rG5f27592e149f: nd6: Break nd6_prefix_lifetime_update out of prelist_update
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 71931 Build 68814: arc lint + arc unit
Event Timeline
| sys/netinet6/nd6_rtr.c | ||
|---|---|---|
| 1589 | These lines look too long. I think you can simplify the code a bit by storing time_uptime - ia6->ia6_createtime in a local variable. | |
| sys/netinet6/nd6_rtr.c | ||
|---|---|---|
| 1589 | Further simplification: set vltime = time_uptime - ia6->ia6_createtime + V_ip6_desync_factor. | |
| sys/netinet6/nd6_rtr.c | ||
|---|---|---|
| 1537 | ||