Commit Graph

16 Commits

Author SHA1 Message Date
Joshua Oreman 49e16812f7 Add Packet accessors for interface indices 2023-03-01 00:47:32 -07:00
Joshua Oreman c03aec2e88 Release v1.0.0 2022-01-14 13:25:29 -07:00
Joshua Oreman 1cbea513e6 Make netfilterqueue a package and add type hints 2022-01-14 01:04:51 -07:00
Joshua Oreman 53e2db3cd2 Add a parameter NetfilterQueue(sockfd=N) for using an externally-allocated netlink socket
The chief use case for this is when `sockfd` was allocated in a different network namespace and passed to the current process over a UNIX domain socket or similar. It allows the current process to use netfilterqueue to manage traffic in a different network namespace.
2022-01-13 19:06:48 -07:00
Joshua Oreman 0187c89611 Fixes for several open issues
Propagate exceptions raised by the user's packet callback -- fixes #31, #50
Warn about exceptions raised by the packet callback during queue unbinding
Raise an error if a packet verdict is set after its parent queue is closed
set_payload() now affects the result of later get_payload() -- fixes #30
Handle signals received when run() is blocked in recv() -- fixes #65
2022-01-13 03:14:43 -07:00
Joshua Oreman 8d3193f384 Release v0.9.0 2022-01-12 23:45:51 -07:00
Joshua Oreman 99c13b3d8f Improve & test error handling 2022-01-11 22:01:53 -07:00
Joshua Oreman 9587d75aff Modernize, add tests, allow Packet to outlive the callback it's passed to 2022-01-11 21:28:21 -07:00
Matt Fox 3fa8a3860b Update CHANGES 2017-01-30 23:44:23 -08:00
Matt Fox 27cd73f7ca Update to 0.8 2016-12-15 01:34:19 -08:00
Matt Fox a2f2feec63 Bump version to 0.7 2016-06-28 00:03:15 -07:00
Fen Qin 6b8be8a5ec add get_mark 2013-04-15 11:30:35 +08:00
Fen Qin 26ff0e7844 add repeat to packet; release 0.5 2013-04-03 19:55:51 +08:00
Fen Qin 3b62cd55ad release the forked 0.4 version 2012-12-24 11:24:23 +08:00
Matt a1687c5fa1 Add to CHANGES 2011-05-13 09:25:19 -07:00
Matt Fox 09a000ac50 Initial commit 2011-05-12 13:45:14 -07:00