Skip to contentSkip to conversation

Added userspace plugin for xt_OBSF.c

PATCH New aft 1 participant 1 message Sep 18, 2012 netfilter

lore
Share & tools
lore

aft

author
#0 lore raw

PATCH 2/2 Added userspace plugin for xt_OBSF.c

TODO:

1) add a print function
2) add a save function

---
 extensions/Mbuild       |    1 +
 extensions/libxt_OBSF.c |  150 +++++++++++++++++++++++++++++++++++++++++++++++
 extensions/xt_OBSF.c    |   43 ++++++++------
 extensions/xt_OBSF.h    |    3 +-
 4 files changed, 176 insertions(+), 21 deletions(-)
 create mode 100644 extensions/libxt_OBSF.c
extensions/Mbuild +1 -0
index 1c76e34..f4e5e17 100644
@@ -26,3 +26,4 @@ obj-${build_pknock}      += pknock/
 obj-${build_psd}         += libxt_psd.so
 obj-${build_quota2}      += libxt_quota2.so
 obj-${build_gradm}       += libxt_gradm.so
+obj-${build_OBSF}        += libxt_OBSF.so
\ No newline at end of file
extensions/libxt_OBSF.c new file +150 -0

150 lines not on this page · raw message

extensions/xt_OBSF.c +24 -19

68 lines not on this page · raw message

extensions/xt_OBSF.h +1 -2
index 9d68c72..e99c048 100644
@@ -9,8 +9,7 @@ enum {
 	XT_OBSF_PAD_RANDOM = 1 << 3,
 	XT_OBSF_ENC_ENC = 1 << 4,
 	XT_OBSF_ENC_DEC = 1 << 5,
-	XT_OBSF_PAD_ADD = 1 << 6,
-	XT_OBSF_PAD_REM = 1 << 7
+	XT_OBSF_PAD_ENABLED = 1 << 6,
 };
 
 
Signature · 1 line
1.7.1