<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:¹ÙÅÁ;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:±¼¸²;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@±¼¸²";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@¹ÙÅÁ";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:¹ÙÅÁ;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:±¼¸²;
        color:windowtext;}
/* Page Definitions */
@page Section1
        {size:595.3pt 841.9pt;
        margin:99.25pt 3.0cm 3.0cm 3.0cm;
        layout-grid:18.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=KO link=blue vlink=purple>
<div class=Section1 style='layout-grid:18.0pt'>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>Hi</span></font><font face=Arial><span lang=EN-US
style='font-family:Arial'>¡¦</span></font><font face=±¼¸²><span lang=EN-US
style='font-family:±¼¸²'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>I</span></font><font face=Arial><span lang=EN-US
style='font-family:Arial'>¡¯</span></font><font face=±¼¸²><span lang=EN-US
style='font-family:±¼¸²'>m trying to develop GW application using WinPCap
library.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>My target pc has two Ethernet interfaces.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>What I want to do now is just forward every packet in one
interface to the other.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>Thus I capture every packet (but, I do not use promiscuous
option) and send it by opposite interface.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>The problem is in performance.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>The local network in my environment has 100Mbps speed, but my
application just shows 60Kbps in FTP application</span></font><font face=Arial><span
lang=EN-US style='font-family:Arial'>¡¦</span></font><font face=±¼¸²><span
lang=EN-US style='font-family:±¼¸²'> ^^<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>I use two window threads for each interface and pcap_loop() for
packet capturing and sending.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>Are there any comments for increasing performance?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
font-family:±¼¸²'>Cholmin Kim<o:p></o:p></span></font></p>
<p class=MsoNormal><st1:country-region w:st="on"><st1:place w:st="on"><font
size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;font-family:±¼¸²'>Korea</span></font></st1:place></st1:country-region><font
face=±¼¸²><span lang=EN-US style='font-family:±¼¸²'>.<o:p></o:p></span></font></p>
</div>
</body>
</html>