You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "Clendenin (via GitHub)" <gi...@apache.org> on 2026/05/27 18:10:23 UTC
[PR] hrw4u: Fix u4wrh cidr() emitting 1-arg form missing IPv6 bits [trafficserver]
Clendenin opened a new pull request, #13205:
URL: https://github.com/apache/trafficserver/pull/13205
## Summary
HRW `%{CIDR:a}` supplies only IPv4 bits and relies on implicit IPv6 defaults,
while Prism `cidr()` requires both `ipv4_bits` and `ipv6_bits`. When u4wrh sees
the single value form, pad with the canonical HRW IPv6 default (48) so the
emitted Prism has valid arity and round-trips stably.
This change also extends the CIDR reverse branch to handle the bare `%{CIDR}`
no-payload form, padding to `cidr(24, 48)` using HRW's canonical defaults so
the forward round-trip satisfies the 2-arg signature.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] hrw4u: Fix u4wrh cidr() emitting 1-arg form missing IPv6 bits [trafficserver]
Posted by "zwoop (via GitHub)" <gi...@apache.org>.
zwoop commented on PR #13205:
URL: https://github.com/apache/trafficserver/pull/13205#issuecomment-5348209447
[approve ci autest 1]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] hrw4u: Fix u4wrh cidr() emitting 1-arg form missing IPv6 bits [trafficserver]
Posted by "zwoop (via GitHub)" <gi...@apache.org>.
zwoop commented on PR #13205:
URL: https://github.com/apache/trafficserver/pull/13205#issuecomment-5514643084
Looking at this, I have some concerns about the fact that this changes behavior from how header_rewrite works. I think this is actually also a bug in header_rewrite itself, so I filed #13620.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] hrw4u: Fix u4wrh cidr() emitting 1-arg form missing IPv6 bits [trafficserver]
Posted by "zwoop (via GitHub)" <gi...@apache.org>.
zwoop commented on PR #13205:
URL: https://github.com/apache/trafficserver/pull/13205#issuecomment-5345134235
[approve ci autest]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] hrw4u: Fix u4wrh cidr() emitting 1-arg form missing IPv6 bits [trafficserver]
Posted by "bryancall (via GitHub)" <gi...@apache.org>.
bryancall commented on PR #13205:
URL: https://github.com/apache/trafficserver/pull/13205#issuecomment-4596828213
[approve ci autest 1]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] hrw4u: Fix u4wrh cidr() emitting 1-arg form missing IPv6 bits [trafficserver]
Posted by "zwoop (via GitHub)" <gi...@apache.org>.
zwoop merged PR #13205:
URL: https://github.com/apache/trafficserver/pull/13205
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org