1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 01:29:53 +03:00

Merge PR #1860: Cedar/VLanUnix: add description to FreeBSD tap device

This commit is contained in:
Davide Beatrici 2023-06-08 19:09:02 +02:00 committed by GitHub
commit 1c0bdb0c30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -470,6 +470,17 @@ int UnixCreateTapDeviceEx(char *name, char *prefix, UCHAR *mac_address, bool cre
ioctl(s, SIOCSIFLLADDR, &ifr);
}
// Set interface description
#ifdef SIOCSIFDESCR
{
char desc[] = CEDAR_PRODUCT_STR " Virtual Network Adapter";
ifr.ifr_buffer.buffer = desc;
ifr.ifr_buffer.length = StrLen(desc) + 1;
ioctl(s, SIOCSIFDESCR, &ifr);
}
#endif
if (create_up)
{
Zero(&ifr, sizeof(ifr));