<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 24 Sep 2020 at 22:37, Paul Wouters <<a href="mailto:paul@nohats.ca">paul@nohats.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 24 Sep 2020, Andrew Cagney wrote:<br>
<br>
> Once ddns resolves a name it updates .host_addr (from AF_UNSPEC to a valid address).<br>
> This, in turn, can update .client to .host_addr/32.<br>
> And updating .client changes .maskbits from 0 to 32, say.<br>
> Since c->prio is based on .maskbits, should it too be updated?<br>
<br>
Ahh yes it should.<br>
<br><br></blockquote><div><br></div><div>but things are starting to look weird.  Since this happens before orient():<br></div><div><br></div>  c->policy_prio = (((policy_prio_t)c->spd.this.client.maskbits << 17) |<br>                      ((policy_prio_t)c->spd.that.client.maskbits << 8) |<br>                         ((policy_prio_t)1));<br>}</div><div class="gmail_quote"><br></div><div class="gmail_quote">.this and .that could end up being completely backardwards.<br></div></div>