<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div class="gmail_quote"><div class="gmail_attr">Yes, sorry about that. I apparently haven't added the subject tweak to this repo yet.</div><div class="gmail_attr"><br></div><div class="gmail_attr">Thanks,</div><div class="gmail_attr">Kinsey<br></div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">On Thu, Sep 21, 2023 at 7:02 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</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">I assume this is in the network services repo?<br>
<br>
OK and thanks<br>
<br>
Chris<br>
<br>
On 22/9/2023 4:38 am, Kinsey Moore wrote:<br>
> lwIP includes more than the bare address structures in its accounting of<br>
> the total addrinfo struct size. Ensure that lwIP gets the correct<br>
> address size.<br>
> ---<br>
> bsd/freebsd/contrib/ntp/ntpq/ntpq.c | 8 ++++++++<br>
> 1 file changed, 8 insertions(+)<br>
> <br>
> diff --git a/bsd/freebsd/contrib/ntp/ntpq/ntpq.c b/bsd/freebsd/contrib/ntp/ntpq/ntpq.c<br>
> index 1cea922..0ea6c08 100644<br>
> --- a/bsd/freebsd/contrib/ntp/ntpq/ntpq.c<br>
> +++ b/bsd/freebsd/contrib/ntp/ntpq/ntpq.c<br>
> @@ -828,6 +828,14 @@ openhost(<br>
> #ifdef SYS_VXWORKS<br>
> (connect(sockfd, (struct sockaddr *)&hostaddr,<br>
> sizeof(hostaddr)) == -1)<br>
> +#elif defined(__rtems__)<br>
> + /*<br>
> + * lwIP's ai_addrlen covers the entire struct which includes<br>
> + * padding for extra data and is not accurate for calls which<br>
> + * validate the size of the address structure. Use sa_len instead<br>
> + */<br>
> + (connect(sockfd, (struct sockaddr *)ai->ai_addr,<br>
> + ai->ai_addr->sa_len) == -1)<br>
> #else<br>
> (connect(sockfd, (struct sockaddr *)ai->ai_addr,<br>
> ai->ai_addrlen) == -1)<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div>