[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-devel] Re: [PATCH - 3 of 4] separate "net-type" from "interface-type"

  • Subject: Re: [Openvpn-devel] Re: [PATCH - 3 of 4] separate "net-type" from "interface-type"
  • From: Neil Brown <neilb@xxxxxxxxxxxxxxx>
  • Date: Wed, 28 Jul 2004 11:20:07 +1000

On Tuesday July 27, jim@xxxxxxxxx wrote:
> I agree with you that tunnel device type and subnet vs. point-to-point mode
> are mutually exclusive properties.
> My main concern is preventing an explosion in the size of the parameter
> permutation space, where the code has to handle 4 cases of dev/net
> permutations instead of only two.
> $ grep DEV_TYPE *.[ch] | wc
>      59     328    2855
> There are a lot of places where DEV_TYPE_x is referenced, and many of these
> places will now need to handle 4 cases instead of only 2.

I don't think so.  These places need to handle either DEV_TYPE or
NET_TYPE.  In no case is a 4-way test needed.  Some bits of code are
interesting in the dev type.  Some in the net type.  There is no
overlap.  See that patch....