#20523: ATM ABI breakage
---------------------+----------------------------------
  Reporter:  dwmw2   |      Owner:  developers
      Type:  defect  |     Status:  new
  Priority:  normal  |  Milestone:  Chaos Calmer (trunk)
 Component:  kernel  |    Version:  Trunk
Resolution:          |   Keywords:
---------------------+----------------------------------

Comment (by dwmw2):

 No, the end of the struct isn't good enough. If the ''size'' of the
 structure changes, so does the value of SO_ATMQOS. See
 include/uapi/linux/atm.h:
 {{{
 #define __SO_ENCODE(l,n,t)      ((((l) & 0x1FF) << 22) | ((n) << 16) | \
                                 sizeof(t))
 #define __SO_LEVEL_MATCH(c,m)   (((c) >> 22) == ((m) & 0x1FF))
 #define __SO_NUMBER(c)          (((c) >> 16) & 0x3f)
 #define __SO_SIZE(c)            ((c) & 0x3fff)
 ...
 #define SO_ATMQOS       __SO_ENCODE(SOL_ATM,2,struct atm_qos)
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/20523#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to