Skip to content

Commit

Permalink
(untab/cosmetic)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fish-Git committed Dec 4, 2018
1 parent 649b28a commit ed86e22
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions ctc_lcs.c
Expand Up @@ -485,20 +485,20 @@ void LCS_Assist( PLCSPORT pLCSPORT )

// Check if tuntap can also do segmentation offloading for us.

#if 0 /* Disable for now. TCP Segment Offload needs to be enabled by stack
using LCS */
#if 0 /* Disable for now. TCP Segment Offload needs
to be enabled by stack using LCS */
#if defined( TUNSETOFFLOAD ) && defined( TUN_F_TSO4 ) && defined( TUN_F_UFO )
/* Only do offload if doing TAP checksum offload */
if(pLCSPORT->fDoCkSumOffload==0)
if (!pLCSPORT->fDoCkSumOffload)
{
if (TUNTAP_IOCtl( pLCSPORT->fd, TUNSETOFFLOAD, (char*)(TUN_F_CSUM | TUN_F_TSO4 | TUN_F_UFO)) == 0)
{
VERIFY( TUNTAP_IOCtl( pLCSPORT->fd, TUNSETOFFLOAD, (char*) TUN_F_CSUM ) == 0);
pLCSPORT->sIPAssistsSupported |= LCS_IP_FRAG_REASSEMBLY;
/* Do Not ENABLE !! */
// pLCSPORT->sIPAssistsEnabled |= LCS_IP_FRAG_REASSEMBLY;
// "CTC: lcs device port %2.2X: %s Large Send Offload supported"
WRMSG( HHC00938, "I", pLCSPORT->bPort, "tuntap" );
VERIFY( TUNTAP_IOCtl( pLCSPORT->fd, TUNSETOFFLOAD, (char*) TUN_F_CSUM ) == 0);
pLCSPORT->sIPAssistsSupported |= LCS_IP_FRAG_REASSEMBLY;
/* Do Not ENABLE!! */
// pLCSPORT->sIPAssistsEnabled |= LCS_IP_FRAG_REASSEMBLY;
// "CTC: lcs device port %2.2X: %s Large Send Offload supported"
WRMSG( HHC00938, "I", pLCSPORT->bPort, "tuntap" );
}
}
#endif
Expand Down Expand Up @@ -1219,10 +1219,10 @@ static void LCS_Startup( PLCSDEV pLCSDEV, PLCSCMDHDR pCmdFrame )
{
// "%1d:%04X CTC: lcs startup: frame buffer size 0x%4.4X '%s' compiled size 0x%4.4X: ignored"
WRMSG(HHC00939, "W", SSID_TO_LCSS(pLCSDEV->pDEVBLK[1]->ssid),
pLCSDEV->pDEVBLK[1]->devnum,
pLCSDEV->iMaxFrameBufferSize,
"LCS",
(int)sizeof( pLCSDEV->bFrameBuffer ) );
pLCSDEV->pDEVBLK[1]->devnum,
pLCSDEV->iMaxFrameBufferSize,
"LCS",
(int)sizeof( pLCSDEV->bFrameBuffer ) );
pLCSDEV->iMaxFrameBufferSize = iOrigMaxFrameBufferSize;
}
else
Expand All @@ -1232,10 +1232,10 @@ static void LCS_Startup( PLCSDEV pLCSDEV, PLCSCMDHDR pCmdFrame )
{
// "%1d:%04X CTC: lcs startup: frame buffer size 0x%4.4X '%s' compiled size 0x%4.4X: ignored"
WRMSG(HHC00939, "W", SSID_TO_LCSS(pLCSDEV->pDEVBLK[1]->ssid),
pLCSDEV->pDEVBLK[1]->devnum,
pLCSDEV->iMaxFrameBufferSize,
"LCS",
CTC_MIN_FRAME_BUFFER_SIZE );
pLCSDEV->pDEVBLK[1]->devnum,
pLCSDEV->iMaxFrameBufferSize,
"LCS",
CTC_MIN_FRAME_BUFFER_SIZE );
pLCSDEV->iMaxFrameBufferSize = iOrigMaxFrameBufferSize;
}
}
Expand Down

0 comments on commit ed86e22

Please sign in to comment.