zehome / MLVPN

Multi-link VPN (ADSL/SDSL/xDSL/Network aggregation / bonding)
http://www.mlvpn.fr/
BSD 2-Clause "Simplified" License
518 stars 127 forks source link

Use the correct size for the device name on BSD #74

Closed jedisct1 closed 8 years ago

jedisct1 commented 8 years ago

10 was actually off by one byte in order to store devices up to i=32, so only up to /dev/tun9 could be used.

Just use the actual maximum device size instead of a hardcoded number.

zehome commented 8 years ago

Thank you