Lines Matching defs:CHECKNETWORK

41 #define CHECKNETWORK(String, rcExpected, ExpectedNetwork, ExpectedNetMask) \
69 CHECKNETWORK("10.0.0/45", VERR_INVALID_PARAMETER, 0, 0);
70 CHECKNETWORK("10.0.0/-45", VERR_INVALID_PARAMETER, 0, 0);
71 CHECKNETWORK("10.0.0/24", VINF_SUCCESS, 0x0A000000, 0xFFFFFF00);
72 CHECKNETWORK("10..0.0/24", VERR_INVALID_PARAMETER, 0, 0);
73 CHECKNETWORK(".10.0.0/24", VERR_INVALID_PARAMETER, 0, 0);
74 CHECKNETWORK("10.0.0//24", VERR_INVALID_PARAMETER, 0, 0);
75 CHECKNETWORK("10.0.0/8", VINF_SUCCESS, 0x0A000000, 0xFF000000);
76 CHECKNETWORK("10.0.0./24", VERR_INVALID_PARAMETER, 0, 0);
77 CHECKNETWORK("0.1.0/24", VERR_INVALID_PARAMETER, 0, 0);
79 CHECKNETWORK("10.255.0.0/24", VINF_SUCCESS, 0x0AFF0000, 0xFFFFFF00);
80 CHECKNETWORK("10.1234.0.0/24", VERR_INVALID_PARAMETER, 0, 0);
81 CHECKNETWORK("10.256.0.0/24", VERR_INVALID_PARAMETER, 0, 0);
82 CHECKNETWORK("10.0.0/3", VERR_INVALID_PARAMETER, 0, 0);
84 CHECKNETWORK("10.1.2.3/8", VERR_INVALID_PARAMETER, 0, 0);
85 CHECKNETWORK("10.1.2.4/30", VINF_SUCCESS, 0x0A010204, 0xFFFFFFFC);
86 CHECKNETWORK("10.0.0/29", VERR_INVALID_PARAMETER, 0, 0);
87 CHECKNETWORK("10.0.0/240", VERR_INVALID_PARAMETER, 0, 0);
88 CHECKNETWORK("10.0.0/24.", VERR_INVALID_PARAMETER, 0, 0);
90 CHECKNETWORK("10.1.2/16", VERR_INVALID_PARAMETER, 0, 0);
91 CHECKNETWORK("10.1/16", VINF_SUCCESS, 0x0A010000, 0xFFFF0000);
92 CHECKNETWORK("10.1.0.0/16", VINF_SUCCESS, 0x0A010000, 0xFFFF0000);
93 CHECKNETWORK("10.1.0.0.0/16", VERR_INVALID_PARAMETER, 0, 0);
94 CHECKNETWORK("1.2.3.4", VINF_SUCCESS, 0x01020304, 0xFFFFFFFF);
95 CHECKNETWORK("1.2.3.255", VINF_SUCCESS, 0x010203FF, 0xFFFFFFFF);
96 CHECKNETWORK("1.2.3.256", VERR_INVALID_PARAMETER, 0, 0);
97 CHECKNETWORK("10.1.255/24", VINF_SUCCESS, 0x0A01FF00, 0xFFFFFF00);
98 CHECKNETWORK("10.1.254/24", VINF_SUCCESS, 0x0A01FE00, 0xFFFFFF00);
99 CHECKNETWORK("10.255.1/24", VINF_SUCCESS, 0x0AFF0100, 0xFFFFFF00);
100 CHECKNETWORK("10.255.1.1/24", VERR_INVALID_PARAMETER, 0, 0);
101 CHECKNETWORK("1.2", VERR_INVALID_PARAMETER, 0, 0);
102 CHECKNETWORK("1.2.3.4.5", VERR_INVALID_PARAMETER, 0, 0);