mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-06 09:40:41 +03:00
Merge PR #1860: Cedar/VLanUnix: add description to FreeBSD tap device
This commit is contained in:
commit
1c0bdb0c30
@ -470,6 +470,17 @@ int UnixCreateTapDeviceEx(char *name, char *prefix, UCHAR *mac_address, bool cre
|
|||||||
ioctl(s, SIOCSIFLLADDR, &ifr);
|
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)
|
if (create_up)
|
||||||
{
|
{
|
||||||
Zero(&ifr, sizeof(ifr));
|
Zero(&ifr, sizeof(ifr));
|
||||||
|
Loading…
Reference in New Issue
Block a user