[PATCH ulogd2 v2 0/4] Add support for logging ARP packets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hithero, ulogd has only fully supported handling ARP headers that are present
in `AF_BRIDGE` packets.  This patch-set adds support for handling ARP packets
in their own right.

* Patch 1 contains a fixes for some minor problems that I spotted while
  working on this.
* Patch 2 refactors the IP2* filters to be a bit more efficient.
* Patches 3 & 4 add support for logging ARP packets.

Changes since v1

* Patches 1 & 3 from v1 have been merged.
* Patch 2 from v1 (now patch 1) has been reworked in light of Florian's
  feed-back to use the size of `struct in6_addr`, rather than `((struct
  in6_addr){}).s6_addr`.

Jeremy Sowden (4):
  db, IP2BIN: correct `format_ipv6()` output buffer sizes
  IP2BIN, IP2HBIN, IP2STR: refactor `interp` call-backs
  Use `NFPROTO_*` constants for protocol families
  Add support for logging ARP packets

 filter/raw2packet/ulogd_raw2packet_BASE.c |  11 +-
 filter/ulogd_filter_IP2BIN.c              | 121 +++++++++++++---------
 filter/ulogd_filter_IP2HBIN.c             |  86 +++++++++------
 filter/ulogd_filter_IP2STR.c              |  86 ++++++++-------
 include/ulogd/ulogd.h                     |  11 +-
 input/flow/ulogd_inpflow_NFCT.c           |  23 ++--
 input/packet/ulogd_inppkt_UNIXSOCK.c      |   7 +-
 util/db.c                                 |   2 +-
 util/printpkt.c                           |  10 +-
 9 files changed, 215 insertions(+), 142 deletions(-)

-- 
2.47.2





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux