Add align_from attribute to PadField
Checklist:
- [ ] If you are new to Scapy: I have checked CONTRIBUTING.md (esp. section submitting-pull-requests)
- [ ] I squashed commits belonging together
- [ ] I added unit tests or explained why they are not relevant
- [ ] I executed the regression tests (using
cd test && ./run_testsortox) - [ ] If the PR is still not finished, please create a Draft Pull Request
fixes #xxx
@gpotter2 Why would f._align be a tuple?
https://github.com/secdev/scapy/blob/c38a5de175be8e59742be473f4fb2dd6edef5503/scapy/packet.py#L2528-L2535
Do you have a use case for this PR? Is there a protocol that needs something like that?
In any case, please add a unit test.
Do you have a use case for this PR? Is there a protocol that needs something like that?
In any case, please add a unit test.
@gpotter2 Certainly, I will ensure to include the unit test as I work on resolving the bug. Would you kindly explain why f._align is anticipated to be a tuple?
Again,
Is there a protocol that needs something like that?
Regarding
Would you kindly explain why f._align is anticipated to be a tuple?
I honnestly have no idea :) You could try removing it and see if something breaks
Closing for inactivity.