Changeset View
Changeset View
Standalone View
Standalone View
src/settings/tunsetting.cpp
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | 16 | | |||
17 | You should have received a copy of the GNU Lesser General Public | 17 | You should have received a copy of the GNU Lesser General Public | ||
18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "tunsetting.h" | 21 | #include "tunsetting.h" | ||
22 | #include "tunsetting_p.h" | 22 | #include "tunsetting_p.h" | ||
23 | 23 | | |||
24 | #if !NM_CHECK_VERSION(1, 1, 92) | | |||
25 | #define NM_SETTING_TUN_SETTING_NAME "tun" | | |||
26 | | ||||
27 | #define NM_SETTING_TUN_MODE "mode" | | |||
28 | #define NM_SETTING_TUN_OWNER "owner" | | |||
29 | #define NM_SETTING_TUN_GROUP "group" | | |||
30 | #define NM_SETTING_TUN_PI "pi" | | |||
31 | #define NM_SETTING_TUN_VNET_HDR "vnet-hdr" | | |||
32 | #define NM_SETTING_TUN_MULTI_QUEUE "multi-queue" | | |||
33 | #endif | | |||
34 | | ||||
35 | #include <QtCore/QDebug> | 24 | #include <QtCore/QDebug> | ||
36 | 25 | | |||
37 | NetworkManager::TunSettingPrivate::TunSettingPrivate() | 26 | NetworkManager::TunSettingPrivate::TunSettingPrivate() | ||
38 | : name(NM_SETTING_TUN_SETTING_NAME) | 27 | : name(NM_SETTING_TUN_SETTING_NAME) | ||
39 | , mode(TunSetting::Tun) | 28 | , mode(TunSetting::Tun) | ||
40 | , multiQueue(false) | 29 | , multiQueue(false) | ||
41 | , pi(false) | 30 | , pi(false) | ||
42 | , vnetHdr(false) | 31 | , vnetHdr(false) | ||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |