-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nlsocket: Implement improved batch handling
Currently, the handling of batch messages is difficult as nlm_request sends each message separately and listens for responses from a single message sequence number only. Therefore, this commit introduces `nlm_request_batch`, which can be supplied with a list of messages. The function will then listen for expected responses for any of the supplied messages and return/yield them to the caller. In the future, this will allow for improved error handling. Since some nftables write operations require batches, the current approach is to accumulate messages in a batch and send them to the socket in a fire-and-forget manner. This causes errors reported by the kernel to go unnoticed. This commit prepares improved error handling for nftables by allowing to read those errors. It is related to issue #892.
- Loading branch information
1 parent
8d6498d
commit 39741a4
Showing
2 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters