All of lore.kernel.org
 help / color / mirror / Atom feed
* [Openvpn-devel] Many pushed routes
       [not found] ` <20060404141212.GA19356@...608...>
@ 2006-04-07  1:10   ` Nejc Skoberne
  2006-04-07  2:55     ` James Yonan
  0 siblings, 1 reply; 2+ messages in thread
From: Nejc Skoberne @ 2006-04-07  1:10 UTC (permalink / raw)
  To: openvpn-devel

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

Hi again,

>> Any ideas how could I fix this? I would need to hard-recode the buffer 
>> length (1024)?
> 
> Take a look to the change log of OpenVPN. It says:
> 
>   To increase the push list capacity (must be done on both
>   client and server), increase TLS_CHANNEL_BUF_SIZE in
>   common.h (default=1024).
> 
> So if you are changing this macro definition you should
> be able to use longer lists.

so there is no other way than to compile the Windows version too? It doesn't look
really trivial to get the DDK stuff from Microsoft to be able to compile OpenVPN
for windows.

Why is this limit so low anyway? Would it really hurt anything so badly if it was
let's say 4 times of what it is currently?

Thanks,
Nejc

[-- Attachment #2: nejc.vcf --]
[-- Type: text/x-vcard, Size: 206 bytes --]

begin:vcard
fn;quoted-printable:Nejc =C5=A0koberne
n;quoted-printable:=C5=A0koberne;Nejc
email;internet:nejc@...607...
tel;fax:+38653810387
tel;cell:+38631883217
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [Openvpn-devel] Many pushed routes
  2006-04-07  1:10   ` [Openvpn-devel] Many pushed routes Nejc Skoberne
@ 2006-04-07  2:55     ` James Yonan
  0 siblings, 0 replies; 2+ messages in thread
From: James Yonan @ 2006-04-07  2:55 UTC (permalink / raw)
  To: Nejc Skoberne <nejc@; +Cc: openvpn-devel

Nejc Skoberne wrote:
> Hi again,
>
>>> Any ideas how could I fix this? I would need to hard-recode the 
>>> buffer length (1024)?
>>
>> Take a look to the change log of OpenVPN. It says:
>>
>>   To increase the push list capacity (must be done on both
>>   client and server), increase TLS_CHANNEL_BUF_SIZE in
>>   common.h (default=1024).
>>
>> So if you are changing this macro definition you should
>> be able to use longer lists.
>
> so there is no other way than to compile the Windows version too? It 
> doesn't look
> really trivial to get the DDK stuff from Microsoft to be able to 
> compile OpenVPN
> for windows.
You don't need the DDK unless you want to recompile the TAP-Win32 device 
driver.  To rebuild only OpenVPN itself, you only need the free MinGW 
compiler.
>
> Why is this limit so low anyway? Would it really hurt anything so 
> badly if it was
> let's say 4 times of what it is currently?
>
It might be worth raising -- the main reason why it's low is that making 
it higher would increase static memory usage, and probably less than 1% 
of users are pushing large numbers of routes.


It would be good if someone wanted to volunteer to write some code to 
make the buffer allocation code for the push/pull list dynamic rather 
than static -- then we could do away with the static limit.

James



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

end of thread, other threads:[~2006-04-07  2:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <44317DED.3000801@...607...>
     [not found] ` <20060404141212.GA19356@...608...>
2006-04-07  1:10   ` [Openvpn-devel] Many pushed routes Nejc Skoberne
2006-04-07  2:55     ` James Yonan

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.