All of lore.kernel.org
 help / color / mirror / Atom feed
* A patch to delete items in ip_conntrack hash table
@ 2003-07-13 10:05 Shen Rong
  2003-07-16 16:54 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Shen Rong @ 2003-07-13 10:05 UTC (permalink / raw)
  To: netfilter-devel

Hi,
   I write a patch to delete specified item in ip_conntrack hash
table through setsockopt. A demo program is also attached.
   Will it be ok for normal use? Is there any hidden issues on it?
Please give me any type of feedback. Thanks a lot.

BTW: Please CC to my mail box since I am not on the list. Thanks.

Shenrong


begin 666 delete_ip_conntrack.patch
M+2TM(&QI;G5X<'!C7S)?-%]D979E;"TQ+C$Q-S0O:6YC;'5D92]L:6YU>"]N
M971F:6QT97)?:7!V-"YH"5=E9"!*=6X@(#0@,38Z-3,Z,34@,C P,PHK*RL@
M;&EN=7@M,BXT+C(P+VEN8VQU9&4O;&EN=7@O;F5T9FEL=&5R7VEP=C0N: E3
M=6X@2G5L(#$S(#$U.C R.C(Q(#(P,#,*0$ @+38U+#8@*S8U+#D@0$ *("\J
M(#(N-"!F:7)E=V%L;&EN9R!W96YT(#8T('1H<F]U9V@@-C<N("HO"B C9&5F
M:6YE(%-/7T]224=)3D%,7T135" X, H@"BLC9&5F:6YE(%-/7T1%3%]#3TY.
M5%)!0TL@.# **PHK"B C:69D968@7U]+15).14Q?7PH@(VEF9&5F($-/3D9)
M1U].151&24Q415)?1$5"54<*('9O:60@;F9?9&5B=6=?:7!?;&]C86Q?9&5L
M:79E<BAS=')U8W0@<VM?8G5F9B J<VMB*3L*+2TM(&QI;G5X<'!C7S)?-%]D
M979E;"TQ+C$Q-S0O;F5T+VEP=C0O;F5T9FEL=&5R+VEP7V-O;FYT<F%C:U]C
M;W)E+F,)5V5D($IU;B @-" Q-CHU,SHS-B R,# S"BLK*R!L:6YU>"TR+C0N
M,C O;F5T+VEP=C0O;F5T9FEL=&5R+VEP7V-O;FYT<F%C:U]C;W)E+F,)4W5N
M($IU;" Q,R Q-CHS.3HP,2 R,# S"D! ("TQ,CDQ+#8@*S$R.3$L,S8@0$ *
M( E]"B!]"B **W-T871I8R!I;G0**V1E;&-O;FYT<F%C:RAS=')U8W0@<V]C
M:R J<VLL(&EN="!O<'1V86PL('9O:60@*G5S97(L('5N<VEG;F5D(&EN="!L
M96XI"BM["BL)<W1R=6-T(&EP7V-O;FYT<F%C:U]T=7!L92!T=7!L93L**PES
M=')U8W0@:7!?8V]N;G1R86-K7W1U<&QE7VAA<V@@*F@["BL)"BL):68@*"%C
M87!A8FQE*$-!4%].151?041-24XI*0HK"0ER971U<FX@+45015)-.PHK"BL)
M:68@*&]P='9A;" A/2!33U]$14Q?0T].3E1204-+*0HK"0ER971U<FX@+45)
M3E9!3#L**PHK"6EF("AL96X@(3T@<VEZ96]F*'-T<G5C="!I<%]C;VYN=')A
M8VM?='5P;&4I*0HK"0ER971U<FX@+45)3E9!3#L**PHK"6EF("AC;W!Y7V9R
M;VU?=7-E<B@F='5P;&4L('5S97(L('-I>F5O9BAS=')U8W0@:7!?8V]N;G1R
M86-K7W1U<&QE*2D@(3T@,"D**PD)<F5T=7)N("U%1D%53%0["BL**PEH(#T@
M:7!?8V]N;G1R86-K7V9I;F1?9V5T*"9T=7!L92P@3E5,3"D["BL):68@*&@I
M('L**PD):68@*&1E;%]T:6UE<B@F:"T^8W1R86-K+3YT:6UE;W5T*2D**PD)
M"61E871H7V)Y7W1I;65O=70H*'5N<VEG;F5D(&QO;F<I:"T^8W1R86-K*3L*
M*PD):7!?8V]N;G1R86-K7W!U="AH+3YC=')A8VLI.PHK"BL)"7)E='5R;B P
M.PHK"7T**PHK"7)E='5R;B M14Y/14Y4.PHK?0HK"B O*B!&87-T(&9U;F-T
M:6]N(&9O<B!T:&]S92!W:&\@9&]N)W0@=V%N="!T;R!P87)S92 O<')O8R H
M86YD($D@9&]N)W0*(" @(&)L86UE('1H96TI+B J+PH@+RH@4F5V97)S:6YG
M('1H92!S;V-K970G<R!D<W0O<W)C('!O:6YT(&]F('9I97<@9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E='5R;B!D96Q?
M8V]N;G1R86-K*'!R;W1O+"!S861D<BP@<W!O<G0L(&1A9&1R+"!D<&]R="D[
M"@IU<V%G93H*"7!R:6YT9B@B57-A9V4Z("5S(%MT8W!\=61P72!S;W5R8V4M
M:7 @<V]U<F-E+7!O<G0@9&5S="UI<"!D97-T+7!O<G1<;B(L( H)(" @(" @
C(&)A<V5N86UE*&%R9W9;,%TI*3L*"7)E='5R;B M,3L*?0H`
`
end

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A patch to delete items in ip_conntrack hash table
  2003-07-13 10:05 A patch to delete items in ip_conntrack hash table Shen Rong
@ 2003-07-16 16:54 ` Harald Welte
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Welte @ 2003-07-16 16:54 UTC (permalink / raw)
  To: Shen Rong; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

On Sun, Jul 13, 2003 at 06:05:52PM +0800, Shen Rong wrote:
> Hi,
>    I write a patch to delete specified item in ip_conntrack hash
> table through setsockopt. A demo program is also attached.

Thanks for contributing to the netfilter project.

>    Will it be ok for normal use? Is there any hidden issues on it?
> Please give me any type of feedback. Thanks a lot.

Why didn't you use the already-existing means of deleting connection
tracking items:  ctnetlink?

Unless I am missing anything, I think we will stick with one mechanism
rather than replicating the same functionality.

> Shenrong
-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-16 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-13 10:05 A patch to delete items in ip_conntrack hash table Shen Rong
2003-07-16 16:54 ` Harald Welte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.