[syslinux] [PATCH 1/4] efi/udp: core_udp_connect should use SubnetMask not StationAddress for netmask

Gene Cumm gene.cumm at gmail.com
Wed May 31 03:56:06 PDT 2017


On Wed, May 31, 2017 at 3:56 AM, Julien Viard de Galbert via Syslinux
<syslinux at zytor.com> wrote:
> Signed-off-by: Julien Viard de Galbert <jviarddegalbert at online.net>
> ---
>  efi/udp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/efi/udp.c b/efi/udp.c
> index 1088f47..b0f13ad 100644
> --- a/efi/udp.c
> +++ b/efi/udp.c
> @@ -163,7 +163,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip,
>      } else {
>         udata.UseDefaultAddress = FALSE;
>         memcpy(&udata.StationAddress, &IPInfo.myip, sizeof(IPInfo.myip));
> -       memcpy(&udata.StationAddress, &IPInfo.netmask, sizeof(IPInfo.netmask));
> +       memcpy(&udata.SubnetMask, &IPInfo.netmask, sizeof(IPInfo.netmask));
>      }
>      memcpy(&udata.RemoteAddress, &ip, sizeof(ip));
>      udata.RemotePort = port;

Thanks for catching this.  Done.

-- 
-Gene


More information about the Syslinux mailing list