]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make named objects set-aware. Now it is possible to create named
authorae <ae@FreeBSD.org>
Tue, 17 May 2016 07:47:23 +0000 (07:47 +0000)
committerae <ae@FreeBSD.org>
Tue, 17 May 2016 07:47:23 +0000 (07:47 +0000)
commitf79f8e9de833c40831a97da242c164c934e5545f
tree05982837ffaa99ea3b631bc237aa7da86ff75cf6
parenteba4e792410a58591e672dc7b07805b617a7db7a
Make named objects set-aware. Now it is possible to create named
objects with the same name in different sets.

Add optional manage_sets() callback to objects rewriting framework.
It is intended to implement handler for moving and swapping named
object's sets. Add ipfw_obj_manage_sets() function that implements
generic sets handler. Use new callback to implement sets support for
lookup tables.
External actions objects are global and they don't support sets.
Modify eaction_findbyname() to reflect this.
ipfw(8) now may fail to move rules or sets, because some named objects
in target set may have conflicting names.
Note that ipfw_obj_ntlv type was changed, but since lookup tables
actually didn't support sets, this change is harmless.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC
sbin/ipfw/ipfw2.c
sys/netinet/ip_fw.h
sys/netpfil/ipfw/ip_fw_eaction.c
sys/netpfil/ipfw/ip_fw_private.h
sys/netpfil/ipfw/ip_fw_sockopt.c
sys/netpfil/ipfw/ip_fw_table.c