User Details
- User Since
- Aug 26 2022, 6:24 PM (189 w, 1 d)
Yesterday
kind ping @ziaee.
Update copyright email to freebsd.
Update the copyright email to my freebsd account.
rebase to parent revision.
Add spdx tag to geneve header and replace its email with my freebsd email.
Final style check before landing.
@markj kind ping.
kind ping @bz.
Fri, Apr 10
Thank you.
@bz Should I tag it with relnotes?
Appearantly, there is a difference between:
tools/build/options/makeman > share/man/man5/src.conf.5
and
./makeman > /usr/src/share/man/man5/src.conf.5
I didn't know I should run it inside its directory.
@bz done.
Replace err(3) with errx(3) for better error message.
Thu, Apr 9
Add error message.
Add RTA_PRIORITY.
Remove bitwise mask.
There is a specific netlink attribute for metric.
Use that instead.
Update structure to make it compile separately.
+ fix minor issues.
Refactor to use union instead.
This is much more cleaner.
Wed, Apr 8
These changes can be tested in latter route revisions in the revision stack.
Also this revision will NOT change expected routing behavior (POLA) since we never allow users to set weight more than 24-bit.
Now we don't, but we use it for metric.
I intentionally used the term metric instead of administrative distance. You know the difference.
Here is how it works:
[root@ftsr1] [~] # route -n6 add -net 3fff::/64 -gateway 2a01:e140:10:10::6 -weight 33554435
change net 3fff::/64: gateway 2a01:e140:10:10::6 fib 0
[root@ftsr1] [~] # route -n6 add -net 3fff::1/64 -gateway 2a01:e140:10:10::1 -weight 2
add net 3fff::1/64: gateway 2a01:e140:10:10::1 fib 0
[root@ftsr1] [~] # route -n6 get 3fff::/64
route to: 3fff::
destination: 3fff::
mask: ffff:ffff:ffff:ffff::
gateway: 2a01:e140:10:10::6
fib: 0
interface: vtnet0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu metric weight expire
0 0 0 0 1500 2 3 0
[root@ftsr1] [~] # route -on6 get 3fff::/64
route to: 3fff::
destination: 3fff::
mask: ffff:ffff:ffff:ffff::
fib: 0
flags: <UP,GATEWAY,DONE,STATIC>
nhops: 2
via gw 2a01:e140:10:10::1 iface vtnet0 metric 0 weight 2 mtu 1500 table inet6.0
via gw 2a01:e140:10:10::6 iface vtnet0 metric 2 weight 3 mtu 1500
[root@ftsr1] [~] # netstat -rn6W | grep 3fff
3fff::/64 2a01:e140:10:10::1 UGS 0 1500 vtnet0
3fff::/64 2a01:e140:10:10::6 UGS 0 1500 vtnet0
[root@ftsr1] [~] # netstat -On6W
Nexthop groups dataAlso return the weight of selected nhop from nhgrp.
Remove nvlist/ioctl support.
Tue, Apr 7
kind ping @zlei
This LGTM, but here's an idea: why not do it the other way around?
It makes more sense not to acquire the lock on every vnet_destroy, since many modules don't require ifnet_detach_sxlock.
Of course it requires more work, but IMHO it's worth it.
Sat, Apr 4
I want to work on metric or administrative distance too.
But I'm waiting on @melifaro response to some of my questions.
Fri, Apr 3
@bz
I'd appreciate if your review this again when you have time.
I won't proceed without your approval.
Address @bz comment.
Address @markj comment
Thu, Apr 2
Remove the whole EXPERIMENTAL kernel option as noted by @bz.
@bz done.
Address @markj comment.
Thank you
Wed, Apr 1
kind ping: @markj
Address @zlei comment.
Fix some of the linter warning. rest is intentional.
ignore rti default route with lifetimer bigger than UINT16_MAX until I update its structure in another review.
Enable not yet part again.
Address @markj comments.
Thank you so much for your review.
Address @zlei comments.
Tue, Mar 31
I forgot I already had this one open, abandon in favor of D56202
I didn't include the sys/netinet6/nd6_rtr.c part yet, so there is no dependency with other ndp revisions.
But I want to push them at once. (ofc, if approved)
@ae, that's where I said we would probably have conflict over the reserved flags.