Conversation
This helps to better understand why something fails.
check-raw is very strict. Relaxing it gives uefi-raw more freedom, which is especially needed for the more high-level IpAddress type changes.
|
Can you say more about why the
|
|
Ah, interesting. I actually wanted to make it a struct and drop the union. If always all bytes are initialized, some things get much easier. But I didn't know the problem with packed wrappers. Counter idea: we keep the union but make the fields private. Via a public constructor we can ensure that always all bytes are initialized, even for v4 addresses. What do you think about this? |
|
I think |
While I definitely see this as perfectly fine for the majority of the code base, I believe that this may be a valid exception. Preventing undefined bytes here would be a low-hanging fruit. I don't have a very strong opinion, but a tendency. Let me continue my "experiments" to simplify and improve the network code and then I'd leave some more comments on this. |
Prerequisite for #1699 where I want to use
in uefi-raw.
Checklist