Page MenuHomeFreeBSD

connorbailey777_gmail.com (Connor Bailey)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 2 2022, 8:42 PM (214 w, 18 h)

Recent Activity

Sep 16 2022

connorbailey777_gmail.com updated the diff for D36585: bootloader prompt: Add support for editing, history, and command/argument completion.
  • Remove trailing tabs
  • Style fixes, mainly cuddle comments and add newlines at end of file
  • Lock behind LOADER_EDITING_SUPPORT option
  • Don't clobber extended ASCII
Sep 16 2022, 12:32 AM

Sep 14 2022

connorbailey777_gmail.com updated the diff for D36585: bootloader prompt: Add support for editing, history, and command/argument completion.
  • Add license comments
  • Remove __FBSDID, fix style, use ctype functions for parsing
Sep 14 2022, 10:25 PM
connorbailey777_gmail.com requested review of D36585: bootloader prompt: Add support for editing, history, and command/argument completion.
Sep 14 2022, 9:31 PM

Jun 14 2022

connorbailey777_gmail.com added inline comments to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.
Jun 14 2022, 8:30 PM
connorbailey777_gmail.com updated the diff for D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Don't allow invalid values for -f, fix typo, replace "shadow" with "overlap" in usage

Jun 14 2022, 8:25 PM
connorbailey777_gmail.com updated the diff for D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Add compatibility section, clarify a few options, cut down on some repetition

Jun 14 2022, 6:43 PM
connorbailey777_gmail.com added a comment to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

I've added the compatibility section, and I realized that almost all of the options work together, so I changed it to only mention options which aren't compatible instead.

Jun 14 2022, 6:42 PM

Jun 10 2022

connorbailey777_gmail.com updated the diff for D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Make suggested changes, squash shadowing commit and warning commit

Jun 10 2022, 5:53 PM
connorbailey777_gmail.com added inline comments to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.
Jun 10 2022, 5:52 PM
connorbailey777_gmail.com retitled D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters from usbdump: Fix filters being OR'd instead of AND'd, fixed bad parsing for `-f`
Jun 10 2022, 2:58 AM
connorbailey777_gmail.com added a comment to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

I totally forgot that I need to update the revision when I make a new commit, sorry about the delay!

Jun 10 2022, 2:49 AM
connorbailey777_gmail.com updated the diff for D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Update man page for pruning byte default and the concept of shadowing

Jun 10 2022, 2:45 AM

Jun 6 2022

connorbailey777_gmail.com added a comment to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Alright, sounds good to me. This definitely isn't an urgent change so I'll switch to pruning by default and get the man page updated, then this should be good to go.

Jun 6 2022, 8:29 PM
connorbailey777_gmail.com added a comment to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

My only worry with pruning by default is breaking any existing uses. Despite how unlikely it is that someone built a script/automation around usbdump output with conflicting filters, there's a chance that their filters were wrong but seemed to work thanks to shadowing.

Jun 6 2022, 8:14 PM
connorbailey777_gmail.com updated the diff for D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Don't AND filters, but do try to correct/warn when filters might end up having unexpected results.

Jun 6 2022, 6:29 PM
connorbailey777_gmail.com added a comment to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

I've thought about this more, and I think that the real problem is that OR-ing a unit and unit.endpoint filter for the same unit isn't intuitive, since the lone unit filter will always match and make the unit.endpoint filter pointless. I'm not sure if it is fair to expect someone writing a filter to know this and avoid unit.-1 filters when using unit.endpoint or -1.endpoint filters though (and the implicit unit filter for -d ugenX.Y muddies the waters a bit more).
So, I've come up with two potential solutions:

Jun 6 2022, 6:27 PM

Jun 4 2022

connorbailey777_gmail.com added a comment to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Hmm, looking back the same "bug" is present in match_filter and dates all the way back to the initial commit for the utility, so you're right about it being intentional. I had always been invoking with the full -d argument which implicitly added a X.-1 filter for -d ugenY.X, which was why I was so convinced it was wrong (as far as I could at the time, no matter what was entered for -f it had no effect).

Jun 4 2022, 4:25 AM

Jun 3 2022

connorbailey777_gmail.com added inline comments to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.
Jun 3 2022, 8:36 PM
connorbailey777_gmail.com retitled D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters from usbdump: Fix filters being OR'd instead of AND'd, fix endianness mixup in endpoint filters, fixed bad parsing for `-f` to usbdump: Fix filters being OR'd instead of AND'd, fixed bad parsing for `-f`.
Jun 3 2022, 7:44 PM
connorbailey777_gmail.com added a comment to D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Oops, yeah, I got a bit caught up in following the template that I wasn't sure what all to include.

Jun 3 2022, 7:43 PM
connorbailey777_gmail.com updated the diff for D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.

Split into seperate commits.

Jun 3 2022, 7:25 PM
connorbailey777_gmail.com requested review of D35397: usbdump: Remove unit filters which shadow more specific unit.endpoint/.endpoint filters, extend parsing for filters.
Jun 3 2022, 5:51 PM