Page MenuHomeFreeBSD
Feed Advanced Search

Jan 24 2020

melifaro added a comment to D21812: ipfw(8): When checking for IPv4 in add_src() and add_dat(), don't assume !IPv6 is IPv4.

Could you please consider avoiding putting the diffs without the context next time?

Jan 24 2020, 8:50 PM
melifaro closed D22877: libalias: Add support for RFC 6598/Carrier Grade NAT subnets.
Jan 24 2020, 8:36 PM
melifaro committed rS357092: Add support for RFC 6598/Carrier Grade NAT subnets. to libalias and ipfw..
Add support for RFC 6598/Carrier Grade NAT subnets. to libalias and ipfw.
Jan 24 2020, 8:36 PM
melifaro accepted D22877: libalias: Add support for RFC 6598/Carrier Grade NAT subnets.
Jan 24 2020, 8:21 PM

Jan 23 2020

melifaro added a comment to D22877: libalias: Add support for RFC 6598/Carrier Grade NAT subnets.
In D22877#511064, @neel_neelc.org wrote:

Nevermind, I think I'll skip the tests if this can be committed anyways.

UPDATE: Maybe I'll try writing tests.

UPDATE 2: Actually, I'll skip it.

The problem is that my interface name may not be yours when plugging into ipfw. There may be inactive NICs, or NICs that are LAN-only. And I can't assume a fixed IP address either.

Yes, that's a common problem for these kind of tests. The typical solution used is (a) - using virtual interfaces such as epair /w VNET and (b) - using IPv4 documentation prefixes. This makes it easy to setup & teardown a testing environment.

I'll commit this change, however I highly encourage you on trying to write the tests for this. I did a bunch of similar tests yesterday: D23316.

For instance, my desktop uses Realtek NICs while my home server has Broadcom. You may have Intel or Atheros NICs.

So I'll skip writing tests.

That's a bad one to write as a comment! :-)

Jan 23 2020, 12:03 PM
melifaro committed rS357039: Bring indentation back to normal after r357038..
Bring indentation back to normal after r357038.
Jan 23 2020, 9:47 AM
melifaro abandoned D22988: Bring back redirect route expiration..

This change got reviewed and committed in D23047 and D23075.
Closing.

Jan 23 2020, 9:35 AM
melifaro committed rS357038: Fix epoch-related panic in ipdivert, ensuring in_broadcast() is called.
Fix epoch-related panic in ipdivert, ensuring in_broadcast() is called
Jan 23 2020, 9:14 AM
melifaro closed D23317: Fix epoch-related panic in ipdivert & refactor div_output..
Jan 23 2020, 9:14 AM

Jan 22 2020

melifaro updated the summary of D23317: Fix epoch-related panic in ipdivert & refactor div_output..
Jan 22 2020, 3:03 PM
melifaro created D23317: Fix epoch-related panic in ipdivert & refactor div_output..
Jan 22 2020, 2:45 PM
melifaro updated the summary of D23316: Add basic tests for IPDIVERT write functionality..
Jan 22 2020, 2:36 PM
melifaro created D23316: Add basic tests for IPDIVERT write functionality..
Jan 22 2020, 2:32 PM
melifaro closed D23075: Bring back redirect route expiration..
Jan 22 2020, 1:53 PM
melifaro committed rS356984: Bring back redirect route expiration..
Bring back redirect route expiration.
Jan 22 2020, 1:53 PM

Jan 21 2020

melifaro added inline comments to D23075: Bring back redirect route expiration..
Jan 21 2020, 10:21 PM
melifaro updated the summary of D23297: Enforce compatibility of 'struct sctp_net_route' and 'struct route'..
Jan 21 2020, 1:21 PM
melifaro created D23297: Enforce compatibility of 'struct sctp_net_route' and 'struct route'..
Jan 21 2020, 1:20 PM
melifaro committed rS356939: Document requirements for the 'struct route' variations..
Document requirements for the 'struct route' variations.
Jan 21 2020, 12:00 PM
melifaro added a comment to D22877: libalias: Add support for RFC 6598/Carrier Grade NAT subnets.

Sure, will do.

Thank you!

Also, do you think it would be possible to write some auto-test with atf-sh, testing this functionality?

It may be possible, but I don't think it's too trivial. You will have to emulate clients. Those can be done with Jails, or loopback interfaces.

Testing from Jails may be a slight bit harder, as you would have to create and tear down the Jails, and loopback interfaces mean the client needs to be directed to use the loopback NAT instead of the default NIC.

In fact, we already have most of the heavy-lifting done, with vnet wrappers & epair.
netinet6/exthdr.sh can be a good example.
I spent 30 minutes today to add an IPv4 redirect test here: D23075.

Jan 21 2020, 10:40 AM
melifaro updated the diff for D23075: Bring back redirect route expiration..

Fix forgotten variable declaration in expire_callout().

Jan 21 2020, 10:18 AM
melifaro updated the diff for D23075: Bring back redirect route expiration..

Add redirect test for IPv4.
Add a bit more wording on host/network redirects.

Jan 21 2020, 10:09 AM
melifaro accepted D23242: Enter network epoch for network interrupts.
Jan 21 2020, 8:39 AM
melifaro abandoned D14920: Fix locking for the bpf TX path.
Jan 21 2020, 8:05 AM

Jan 20 2020

melifaro abandoned D5009: Convert fastworwarding output path to the new routing KPI..

Committed as r309257.

Jan 20 2020, 10:57 PM
melifaro abandoned D4794: Remove per-ifa outgoing packet accounting from ip[6]_output..

Dropping this revision in favour of a larger upcoming change.

Jan 20 2020, 10:53 PM
melifaro updated the diff for D23075: Bring back redirect route expiration..

Update review to address comments.

Jan 20 2020, 10:44 PM
melifaro added inline comments to D23075: Bring back redirect route expiration..
Jan 20 2020, 10:39 PM

Jan 19 2020

melifaro added a comment to D22877: libalias: Add support for RFC 6598/Carrier Grade NAT subnets.

LGTM. Thank you for submitting the patch!

Jan 19 2020, 9:03 PM

Jan 10 2020

melifaro added inline comments to D23075: Bring back redirect route expiration..
Jan 10 2020, 1:31 PM
melifaro added inline comments to D23075: Bring back redirect route expiration..
Jan 10 2020, 1:13 PM
melifaro committed rS356596: Include human-readable list of rtm flags along with bitmask in error messages.
Include human-readable list of rtm flags along with bitmask in error messages
Jan 10 2020, 8:55 AM

Jan 9 2020

melifaro added inline comments to D23114: Document two new conventions:.
Jan 9 2020, 11:17 PM
melifaro updated the diff for D23075: Bring back redirect route expiration..

Add forgotten tests.

Jan 9 2020, 6:31 PM
melifaro updated the diff for D23075: Bring back redirect route expiration..

Update the diff to reflect the committed pre-requisites.

Jan 9 2020, 6:10 PM
melifaro closed D23047: Add fibnum, family and vnet pointer to each rib head..
Jan 9 2020, 5:21 PM
melifaro committed rS356559: Add fibnum, family and vnet pointer to each rib head..
Add fibnum, family and vnet pointer to each rib head.
Jan 9 2020, 5:21 PM
melifaro added a comment to D23047: Add fibnum, family and vnet pointer to each rib head..
In D23047#506342, @bz wrote:

Thank you so much for splitting this out. It really helps a lot! спасибо большой!

Thank you for reviewing this!

I assume this will not be MFCed due to KPI change?

Well, actually I thought of MFC'ing the version which would keep dom_rtattach() and other functions the same, while filling in rib_family and rib_fibnum directly in the vnet_route_init() after call to the dom_rtattach().
Do you have any concerns about this?

Jan 9 2020, 1:24 PM

Jan 7 2020

melifaro added a comment to D22988: Bring back redirect route expiration..
In D22988#504244, @bz wrote:

Just to be sure we're on the same page and I understand it correctly:
(a) - review1 means adding rib_fibnum, rib_family, rib_vnet to struct rib_head, along with changes in dom_rtattach(), rt_table_init() and so on, while
(b) - review2 is the same review w/o these changes, right?

da!

Raised D23047 for the former.

Raised D23075 for the latter. However, diffs w/o context are a bit harder to review.

Jan 7 2020, 10:34 PM
melifaro updated the summary of D23075: Bring back redirect route expiration..
Jan 7 2020, 10:33 PM
melifaro created D23075: Bring back redirect route expiration..
Jan 7 2020, 10:31 PM
melifaro abandoned D23074: Bring back redirect route expiration..

Wrong commit was used to generate this revision.

Jan 7 2020, 10:27 PM
melifaro created D23074: Bring back redirect route expiration..
Jan 7 2020, 10:26 PM
melifaro closed D22974: Fix rtsock route message generation for interface addresses..
Jan 7 2020, 9:16 PM
melifaro committed rS356473: Fix rtsock route message generation for interface addresses..
Fix rtsock route message generation for interface addresses.
Jan 7 2020, 9:16 PM
melifaro updated the diff for D23051: Allow address lookups in rn_match()..

Use internal __containerof() macro.

Jan 7 2020, 8:15 PM

Jan 6 2020

melifaro updated the summary of D23051: Allow address lookups in rn_match()..
Jan 6 2020, 9:46 AM
melifaro created D23051: Allow address lookups in rn_match()..
Jan 6 2020, 9:45 AM
melifaro added a comment to D22988: Bring back redirect route expiration..
In D22988#504244, @bz wrote:

Just to be sure we're on the same page and I understand it correctly:
(a) - review1 means adding rib_fibnum, rib_family, rib_vnet to struct rib_head, along with changes in dom_rtattach(), rt_table_init() and so on, while
(b) - review2 is the same review w/o these changes, right?

da!

Raised D23047 for the former.

It would make the change history much more clear and also make it easier to review things.

Sure. Would be happy to do it.

PS: I am happy some of the FIB KPI gets cleaned up again, i.e. in6_rtredirect() going away. I hated adding them based on the IPv4 model when I did the initial IPv6 FIB work.

More changes will come soon :-)

:-)

Jan 6 2020, 12:06 AM
melifaro updated the diff for D23047: Add fibnum, family and vnet pointer to each rib head..

Remove forgotten fields from rib_head.

Jan 6 2020, 12:06 AM
melifaro updated the summary of D23047: Add fibnum, family and vnet pointer to each rib head..
Jan 6 2020, 12:03 AM
melifaro created D23047: Add fibnum, family and vnet pointer to each rib head..
Jan 6 2020, 12:01 AM

Jan 2 2020

melifaro added a comment to D22988: Bring back redirect route expiration..
In D22988#504231, @bz wrote:

I have a very annoying question: how much extra work would it be to split this up into: (a) adding rib_fibnum, rib_family and rib_vnet fields and changing the KPI for them by adding them to the current calls and then (b) adding the new functionality (and changing the support function logic beyond just passing the extra fields around)?

Just to be sure we're on the same page and I understand it correctly:
(a) - review1 means adding rib_fibnum, rib_family, rib_vnet to struct rib_head, along with changes in dom_rtattach(), rt_table_init() and so on, while
(b) - review2 is the same review w/o these changes, right?

Jan 2 2020, 10:01 PM
melifaro added a comment to D22988: Bring back redirect route expiration..
In D22988#503966, @lutz_donnerhacke.de wrote:

Is it possible to default the "redirect" settings to an "automatic mode" where redirects are disabled if a certain, hardcoded size of the routing table is crossed?

Normally the admin can not know all implementation details on each sysctl setting. So unless the setting was not modified by hand, the system is expected to choose the "best" path for the workload. Traversing the large routing table every 10 minutes causes a performance glitch which is very hard to find.

Jan 2 2020, 12:58 PM
melifaro updated the diff for D22988: Bring back redirect route expiration..

Add python code to generate IPv6 redirect.

Jan 2 2020, 10:08 AM
melifaro updated the diff for D22988: Bring back redirect route expiration..

Remove unrelevant changes, add forgotten license header.

Jan 2 2020, 9:24 AM
melifaro closed D22980: Plug loopback ifaddr refcount leak..
Jan 2 2020, 9:09 AM
melifaro committed rS356268: Plug loopback idaddr refcount leak..
Plug loopback idaddr refcount leak.
Jan 2 2020, 9:09 AM

Jan 1 2020

melifaro added a comment to D22988: Bring back redirect route expiration..

Missing rtedirect.py is here. Phabricator refuses to add python files to the diff due to the lack of pep8 binary installed on phabric server..

Jan 1 2020, 11:02 PM
melifaro created P349 redirect.py.
Jan 1 2020, 11:01 PM
melifaro updated the diff for D22988: Bring back redirect route expiration..

Add ND redirect test, fix panic in redirect handling code.

Jan 1 2020, 11:00 PM
melifaro updated the test plan for D22988: Bring back redirect route expiration..
Jan 1 2020, 2:37 PM
melifaro updated the diff for D22988: Bring back redirect route expiration..

Add tests for route expiration.

Jan 1 2020, 2:34 PM
melifaro updated the diff for D22988: Bring back redirect route expiration..

Add forgotten route_temporal.c

Jan 1 2020, 2:02 PM
melifaro updated the summary of D22988: Bring back redirect route expiration..
Jan 1 2020, 1:59 PM
melifaro created D22988: Bring back redirect route expiration..
Jan 1 2020, 1:45 PM

Dec 31 2019

melifaro added a member for transport: melifaro.
Dec 31 2019, 5:59 PM
melifaro committed rS356237: Fix NOINET6 build broken by r356236..
Fix NOINET6 build broken by r356236.
Dec 31 2019, 5:57 PM
melifaro closed D22864: Split gigantic rtsock route_output() into a bunch of smaller functions..
Dec 31 2019, 5:27 PM
melifaro committed rS356236: Split gigantic rtsock route_output() into smaller functions..
Split gigantic rtsock route_output() into smaller functions.
Dec 31 2019, 5:27 PM
melifaro abandoned D3868: Change the way of passing IPv6 packets via loopback..

Not required anymore.

Dec 31 2019, 5:00 PM
melifaro updated the summary of D22980: Plug loopback ifaddr refcount leak..
Dec 31 2019, 11:46 AM
melifaro created D22980: Plug loopback ifaddr refcount leak..
Dec 31 2019, 11:44 AM

Dec 30 2019

melifaro added reviewers for D22974: Fix rtsock route message generation for interface addresses.: eugen_grosbein.net, olivier.
Dec 30 2019, 11:14 PM
melifaro updated the summary of D22974: Fix rtsock route message generation for interface addresses..
Dec 30 2019, 11:11 PM
melifaro created D22974: Fix rtsock route message generation for interface addresses..
Dec 30 2019, 9:46 PM

Dec 28 2019

melifaro committed rS356146: Add userland tests for route table/lltable rtsock operations..
Add userland tests for route table/lltable rtsock operations.
Dec 28 2019, 12:17 PM
melifaro closed D22860: Add userland tests for route table/lltable rtsock operations..
Dec 28 2019, 12:16 PM

Dec 25 2019

melifaro added inline comments to D22110: netgraph/ng_car: Add color marking code.
Dec 25 2019, 11:56 AM
melifaro accepted D22912: Plug some ifaddr refcount leaks..

Any chance you have some dtrace / kgdb scripts verifying refcounting that can be added to the test suite?

Dec 25 2019, 10:07 AM

Dec 19 2019

melifaro committed rS355910: ipfw: Don't rollback state in alloc_table_vidx() if atomicity is not required..
ipfw: Don't rollback state in alloc_table_vidx() if atomicity is not required.
Dec 19 2019, 10:22 AM
melifaro closed D22662: ipfw: Don't rollback state in alloc_table_vidx() if atomicity is not required..
Dec 19 2019, 10:22 AM
melifaro committed rS355909: Revert r355908 to commit it with a proper message..
Revert r355908 to commit it with a proper message.
Dec 19 2019, 10:20 AM
melifaro committed rS355908: svn-commit.tmp.
svn-commit.tmp
Dec 19 2019, 9:19 AM

Dec 18 2019

melifaro committed rS355888: Remove useless code from in6_rmx.c.
Remove useless code from in6_rmx.c
Dec 18 2019, 10:11 PM
melifaro closed D22865: Remove dead code from in6_rmx.c.
Dec 18 2019, 10:11 PM
melifaro added a comment to D22865: Remove dead code from in6_rmx.c.
In D22865#500605, @ae wrote:

However, someone in the mail list recently complained that we have not a method for route expiring, probably we can rework this code to implement such feature.

Yes, proper route expiration in AF-independent way is on my todo list.
Not sure if there are any reusable pieces in the current code..

Dec 18 2019, 11:44 AM
melifaro updated the summary of D22865: Remove dead code from in6_rmx.c.
Dec 18 2019, 11:30 AM
melifaro created D22865: Remove dead code from in6_rmx.c.
Dec 18 2019, 11:27 AM
melifaro updated the test plan for D22864: Split gigantic rtsock route_output() into a bunch of smaller functions..
Dec 18 2019, 10:06 AM
melifaro updated the test plan for D22864: Split gigantic rtsock route_output() into a bunch of smaller functions..
Dec 18 2019, 10:01 AM
melifaro updated the diff for D22864: Split gigantic rtsock route_output() into a bunch of smaller functions..

Add forgotten kern_jail to the diff.

Dec 18 2019, 9:56 AM
melifaro created D22864: Split gigantic rtsock route_output() into a bunch of smaller functions..
Dec 18 2019, 9:54 AM

Dec 17 2019

melifaro updated the diff for D22860: Add userland tests for route table/lltable rtsock operations..

Update tests descriptions.

Dec 17 2019, 11:58 PM
melifaro updated the summary of D22860: Add userland tests for route table/lltable rtsock operations..
Dec 17 2019, 11:58 PM
melifaro updated the diff for D22860: Add userland tests for route table/lltable rtsock operations..

Update default mac address.

Dec 17 2019, 11:34 PM
melifaro updated the summary of D22860: Add userland tests for route table/lltable rtsock operations..
Dec 17 2019, 11:33 PM
melifaro created D22860: Add userland tests for route table/lltable rtsock operations..
Dec 17 2019, 11:15 PM

Dec 16 2019

melifaro added inline comments to D22834: Convert routing stats to VNET_PCPUSTAT.
Dec 16 2019, 7:00 PM
melifaro added inline comments to D22834: Convert routing stats to VNET_PCPUSTAT.
Dec 16 2019, 6:58 PM