Source: ntp
Version: 1:4.2.8p13+dfsg-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: m68k

Hello!

Due to its native alignment being 16 bits wide, m68k needs an additional
padding in the struct conf_restrict:

--- ntp-4.2.8p13+dfsg.orig/include/ntp_request.h
+++ ntp-4.2.8p13+dfsg/include/ntp_request.h
@@ -672,6 +672,7 @@ struct conf_restrict {
        short ippeerlimit;      /* ip peer limit */
        u_short flags;          /* restrict flags */
        u_short mflags;         /* match flags */
+       u_short unused1;        /* (unused) */
        u_int v6_flag;          /* is this v6 or not */
        struct in6_addr addr6;  /* match address (v6) */
        struct in6_addr mask6;  /* match mask (v6) */
--- ntp-4.2.8p13+dfsg.orig/ntpdc/layout.std
+++ ntp-4.2.8p13+dfsg/ntpdc/layout.std
@@ -275,6 +275,7 @@ offsetof(mask) = 4
 offsetof(ippeerlimit) = 8
 offsetof(flags) = 10
 offsetof(mflags) = 12
+offsetof(unused1) = 14
 offsetof(v6_flag) = 16
 offsetof(addr6) = 20
 offsetof(mask6) = 36

Could you include the attached patch to fix the build? I'm going
to send the patch upstream unless that has happened already.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Description: Add additional padding to struct conf_restrict
 Fixes FTBFS on m68k.
Author: John Paul Adrian Glaubitz <[email protected]>
Last-Update: 2019-07-08

--- ntp-4.2.8p13+dfsg.orig/include/ntp_request.h
+++ ntp-4.2.8p13+dfsg/include/ntp_request.h
@@ -672,6 +672,7 @@ struct conf_restrict {
        short ippeerlimit;      /* ip peer limit */
        u_short flags;          /* restrict flags */
        u_short mflags;         /* match flags */
+       u_short unused1;        /* (unused) */
        u_int v6_flag;          /* is this v6 or not */
        struct in6_addr addr6;  /* match address (v6) */
        struct in6_addr mask6;  /* match mask (v6) */
--- ntp-4.2.8p13+dfsg.orig/ntpdc/layout.std
+++ ntp-4.2.8p13+dfsg/ntpdc/layout.std
@@ -275,6 +275,7 @@ offsetof(mask) = 4
 offsetof(ippeerlimit) = 8
 offsetof(flags) = 10
 offsetof(mflags) = 12
+offsetof(unused1) = 14
 offsetof(v6_flag) = 16
 offsetof(addr6) = 20
 offsetof(mask6) = 36

Reply via email to