<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:新細明體;
        panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
        {font-family:"\@新細明體";
        panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:新細明體;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:新細明體;}
span.EmailStyle18
        {mso-style-type:personal-compose;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=ZH-TW link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'> I
found the problem is not in "re SA", it is in "refcount".<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'> When
a SA with refcount >1, and enter the function ipsec_sa_rm( ).<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'> This
SA just be removed from hash table but won't enter ipsec_sa_wipe( )<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'> to
clean related resource. But I still don't understand the purpose why a deleting<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'> SA
still keeps a refcount >1.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:24.0pt;text-autospace:none'><font size=1
face=新細明體><span lang=EN-US style='font-size:9.0pt'>Can someone give me some
advice about this?<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=新細明體><span
lang=EN-US style='font-size:9.0pt'>THX~<o:p></o:p></span></font></p>
<p><font size=2 face=新細明體><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face=新細明體><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face=新細明體><span lang=EN-US style='font-size:10.0pt'>On
2009-07-21 22:46, David McCullough wrote:</span></font><span lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> Jivin
willer.wang@??? lays it down ...</span></font><span lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > I found
a problem between re SA and OCF.</span></font><span lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > When SA
replaced, OPENSWAN will keep one more SA than it freed.</span></font><span
lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > With
time goes, there will be lots SAs kept in OPENSWAN.</span></font><span
lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > It?</span></font><font
size=2><span style='font-size:10.0pt'>塜<span lang=EN-US> ok if OCF is not up.</span></span></font><span
lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > But if
we using OPENSWAN with OCF, </span></font><span lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > the
kept SAs will occupy system resource through OCF. </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > It
seems not easy to modify the state machine of re SA.</span></font><span
lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> > Would
someone give me advice about this problem?</span></font><span lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> Which
versions of OCF and openswan are you using ?</span></font><span lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> I can't say
I have seen this but I may looking in the wrong place :-)</span></font><span
lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> How are you
determining that you are losing SA's ?</span></font><span lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> Cheers,</span></font><span
lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> Davidm</span></font><span
lang=EN-US> <br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>> </span></font><span
lang=EN-US><br>
</span><font size=2><span lang=EN-US style='font-size:10.0pt'>><o:p></o:p></span></font></p>
<p><font size=2 face=新細明體><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face=新細明體><span lang=EN-US style='font-size:10.0pt'> </span></font><span
lang=EN-US><o:p></o:p></span></p>
</div>
</body>
</html><br><HR>This e-mail transmission originated at CyberTAN Technology, Inc., and may contain privileged or<br>confidential information that is the property of CyberTAN and protected by law from disclosure.<br>If you are not an intended recipient of this transmission and you received it in error,<br>please inform the sender by reply e-mail and destroy this and all other copies of this transmission<br>to which you have access. Thank you.