-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GetSets] Fetching Sets from table with maps fails #171
Comments
I don’t understand what the problems are. At the very minimum, please always include a standalone program that illustrates what the problem is. You might have to dig into the code yourself to fix this in the short term, I don’t know how much time I have to look into this. |
Ok, will fix the issue, we need to also check for concatenation types when fetching the sets otherwise the types will not match. |
FYI: The problem lies here: https://github.com/google/nftables/blob/main/set.go#L705 In case the datatype is concatenated we need to call the
|
Will run some more tests maybe also include the possibility to decode a concatenated type (separate function), so that one can easily compare the data types before changing the set. |
Problem1
As soon as I want to fetch Sets of a table which has a map included the nflib reports an error:
Error Fetching Sets - could not determine data type 1cd
When I delete the Map Fetching Sets works perfect.
Problem 2
Fetching tables reports very high numbers for
Use uint32 // NFTA_TABLE_USE (Number of chains in table)
for example:Table has only 2 chains but GetTable reports very high number:
2022/06/07 09:41:28 &{filter 100663296 0 1}
Is there maybe a short workaround to make it work?
The text was updated successfully, but these errors were encountered: