Bug 29992 - ip_tables.h и ip6_tables.h, возможно, содержат ошибку в ipt_get_target()
Summary: ip_tables.h и ip6_tables.h, возможно, содержат ошибку в ipt_get_target()
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: glibc-kernheaders (show other bugs)
Version: unstable
Hardware: all Linux
: P3 minor
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-11 12:34 MSK by Sergey Y. Afonin
Modified: 2017-10-28 04:25 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Y. Afonin 2014-04-11 12:34:30 MSK
При сборке пакета xorp выдаётся такое предупреждение:

WARNING: Netfilter include files are broken or do not exist.
  This means the Linux firewall support will not be compiled in.
  To fix, you may edit: /usr/include/linux/netfilter_ipv4/ip_tables.h
  line 222 or so, to look like this:
  /* Helper functions */
  static __inline__ struct ipt_entry_target *
  ipt_get_target(struct ipt_entry *e)
{
        /* BEN:  Was void* */
        return (struct ipt_entry_target *)((char*)e + e->target_offset);
}

You will also want to edit similar code around line 282 of:
/usr/include/linux/netfilter_ipv6/ip6_tables.h
NOTE:  Recent kernels use struct xt_entry_target for the argument
   for these methods, so use that instead of ipt_entry_target if that
   is the case for your system.

xorp, соответственно, собирается без поддержки netfilter.
Comment 1 Dmitry V. Levin 2014-04-11 16:54:33 MSK
Это файлы из ядра, я не буду их трогать, все вопросы в lkml. :)
Comment 2 Dmitry V. Levin 2017-10-28 04:25:32 MSK
Нынче с этими файлами всё в порядке.