summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-06-14 21:57:58 +0200
committerFlorian Westphal <fw@strlen.de>2022-08-05 01:46:39 +0200
commit0542a431e8dccfa86fa5b1744f536e61a0b204f3 (patch)
tree6e57672f1de3fab3bac04667bf2a48cd3dbc986d /include
parent8efab5527cbcb15cd9bff462b7549c0d6181c003 (diff)
netlink_delinearize: allow postprocessing on concatenated elements
Currently there is no case where the individual expressions inside a mapped concatenation need to be munged. However, to support proper delinearization for an input like 'rule netdev nt nc set update ether saddr . vlan id timeout 5s @macset' we need to allow this. Right now, this gets listed as: update @macset { @ll,48,48 . @ll,112,16 & 0xfff timeout 5s } because the ethernet protocol is replaced by vlan beforehand, so we fail to map @ll,48,48 to a vlan protocol. Likewise, we can't map the vlan info either because we cannot cope with the 'and' operation properly, nor is it removed. Prepare for this by deleting and re-adding so that we do not corrupt the linked list. After this, the list can be safely changed and a followup patch can start to delete/reallocate expressions. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions