HomeFreeBSD

MFC r344018:

Description

MFC r344018:

Remove `set' field from state structure and use set from parent rule.

Initially it was introduced because parent rule pointer could be freed,
and rule's information could become inaccessible. In r341471 this was
changed. And now we don't need this information, and also it can become
stale. E.g. rule can be moved from one set to another. This can lead
to parent's set and state's set will not match. In this case it is
possible that static rule will be freed, but dynamic state will not.
This can happen when `ipfw delete set N` command is used to delete
rules, that were moved to another set.
To fix the problem we will use the set number from parent rule.

Obtained from:	Yandex LLC
Sponsored by:	Yandex LLC

Details

Provenance
aeAuthored on
Parents
rS344250: MFC: r343164
Branches
Unknown
Tags
Unknown