1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
|
/* ip_address tests, for libreswan
*
* Copyright (C) 2000 Henry Spencer.
* Copyright (C) 2012 Paul Wouters <paul@libreswan.org>
* Copyright (C) 2018 Andrew Cagney
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. See <https://www.gnu.org/licenses/lgpl-2.1.txt>.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
* License for more details.
*
*/
#include <stdio.h>
#include <string.h>
#include "lswcdefs.h" /* for elemsof() */
#include "constants.h" /* for streq() */
#include "ip_address.h"
#include "ip_selector.h"
#include "ip_range.h"
#include "ipcheck.h"
#define CHECK_OP(L,OP,R) \
for (size_t tl = 0; tl < elemsof(L##_tests); tl++) { \
/*hack*/const typeof(L##_tests[0]) *t = &L##_tests[tl]; \
/*hack*/size_t ti = tl; \
const ip_##L *l = L##_tests[tl].L; \
if (l == NULL) \
continue; \
for (size_t tr = 0; tr < elemsof(R##_tests); tr++) { \
const ip_##R *r = R##_tests[tr].R; \
if (r == NULL) \
continue; \
bool expected = false; \
for (size_t to = 0; to < elemsof(L##_op_##R); to++) { \
const typeof(L##_op_##R[0]) *op = &L##_op_##R[to]; \
if (l == op->l && r == op->r) { \
expected = op->OP; \
break; \
} \
} \
bool b = L##_##OP##_##R(*l, *r); \
/* work with int *cmp() */ \
if (b != expected) { \
L##_buf lb; \
R##_buf rb; \
FAIL(#L "_" #OP "_" #R "(%s,%s) returned %s, expected %s", \
str_##L(l, &lb), str_##R(r, &rb), \
bool_str(b), bool_str(expected)); \
} \
} \
}
#define CHECK_FROM_ZERO(TO,FROM) \
if (FROM != NULL) { \
ip_##TO TO = TO##_from_##FROM(*FROM); \
bool from_is_zero = (!FROM##_is_unset(FROM) && \
!FROM##_is_specified(*FROM)); \
bool to_is_zero = TO##_is_zero(TO); \
if (from_is_zero != to_is_zero) { \
FROM##_buf b; \
FAIL(#TO"_is_zero("#TO"_from_"#FROM"(%s)) returned %s, expecting %s", \
str_##FROM(FROM, &b), \
bool_str(to_is_zero), \
bool_str(from_is_zero)); \
} \
}
#define CHECK_FROM(TO,FROM) \
if (FROM != NULL) { \
ip_##TO to = TO##_from_##FROM(*FROM); \
bool all_from = FROM##_is_all(*FROM); \
bool all_to = TO##_is_all(to); \
if (all_from != all_to) { \
FROM##_buf b; \
FAIL(#TO"_is_all("#TO"_from_"#FROM"(%s)) returned %s, expecting %s", \
str_##FROM(FROM, &b), \
bool_str(all_to), bool_str(all_from)); \
} \
}
static const struct address_test {
int line;
const struct ip_info *afi;
const ip_address *address;
const char *str;
bool is_unset;
bool is_specified;
bool is_loopback;
} address_tests[] = {
{ LN, NULL, NULL, "<unset-address>", .is_unset = true, },
{ LN, NULL, &unset_address, "<unset-address>", .is_unset = true, },
{ LN, &ipv4_info, &ipv4_info.address.unspec, "0.0.0.0", .is_unset = false },
{ LN, &ipv6_info, &ipv6_info.address.unspec, "::", .is_unset = false },
{ LN, &ipv4_info, &ipv4_info.address.loopback, "127.0.0.1", .is_specified = true, .is_loopback = true, },
{ LN, &ipv6_info, &ipv6_info.address.loopback, "::1", .is_specified = true, .is_loopback = true, },
};
static const struct endpoint_test {
int line;
const struct ip_info *afi;
const ip_endpoint *endpoint;
const char *str;
bool is_unset;
bool is_specified;
bool is_any;
int hport;
} endpoint_tests[] = {
{ LN, NULL, NULL, "<unset-endpoint>", .is_unset = true, .hport = -1, },
{ LN, NULL, &unset_endpoint, "<unset-endpoint>", .is_unset = true, .hport = -1, },
};
static const struct subnet_test {
int line;
const struct ip_info *afi;
const ip_subnet *subnet;
const char *str;
bool is_unset;
uintmax_t size;
bool is_all;
bool is_zero;
} subnet_tests[] = {
{ LN, NULL, NULL, "<unset-subnet>", .is_unset = true, },
{ LN, NULL, &unset_subnet, "<unset-subnet>", .is_unset = true, },
{ LN, &ipv4_info, &ipv4_info.subnet.zero, "0.0.0.0/32", .is_zero = true, .size = 1, },
{ LN, &ipv6_info, &ipv6_info.subnet.zero, "::/128", .is_zero = true, .size = 1, },
{ LN, &ipv4_info, &ipv4_info.subnet.all, "0.0.0.0/0", .is_all = true, .size = (uintmax_t)1 << 32, },
{ LN, &ipv6_info, &ipv6_info.subnet.all, "::/0", .is_all = true, .size = UINTMAX_MAX, },
};
static const struct range_test {
int line;
const struct ip_info *afi;
const ip_range *range;
const char *str;
bool is_unset;
bool is_zero;
bool is_all;
uintmax_t size;
} range_tests[] = {
{ LN, NULL, NULL, "<unset-range>", .is_unset = true, },
{ LN, NULL, &unset_range, "<unset-range>", .is_unset = true, },
{ LN, &ipv4_info, &ipv4_info.range.zero, "0.0.0.0/32", .is_zero = true, .size = 1, },
{ LN, &ipv6_info, &ipv6_info.range.zero, "::/128", .is_zero = true, .size = 1, },
{ LN, &ipv4_info, &ipv4_info.range.all, "0.0.0.0/0", .is_all = true, .size = (uintmax_t)1<<32, },
{ LN, &ipv6_info, &ipv6_info.range.all, "::/0", .is_all = true, .size = UINTMAX_MAX, },
};
static const struct selector_test {
int line;
const struct ip_info *afi;
const ip_selector *selector;
const char *str;
bool is_unset;
bool is_zero;
bool is_all;
bool contains_one_address;
} selector_tests[] = {
{ LN, NULL, NULL, "<unset-selector>", .is_unset = true, },
{ LN, NULL, &unset_selector, "<unset-selector>", .is_unset = true, },
{ LN, &ipv4_info, &ipv4_info.selector.zero, "0.0.0.0/32", .is_zero = true, },
{ LN, &ipv6_info, &ipv6_info.selector.zero, "::/128", .is_zero = true, },
{ LN, &ipv4_info, &ipv4_info.selector.all, "0.0.0.0/0", .is_all = true, },
{ LN, &ipv6_info, &ipv6_info.selector.all, "::/0", .is_all = true, },
};
static void check_ip_info_address(void)
{
for (size_t ti = 0; ti < elemsof(address_tests); ti++) {
const struct address_test *t = &address_tests[ti];
PRINT("%s", pri_afi(t->afi));
const ip_address *address = t->address;
CHECK_INFO(address);
CHECK_STR2(address);
CHECK_COND(address, is_unset);
CHECK_COND2(address, is_specified);
CHECK_COND2(address, is_loopback);
CHECK_FROM_ZERO(subnet, address);
CHECK_FROM_ZERO(range, address);
CHECK_FROM_ZERO(selector, address);
}
static const struct {
const ip_address *l;
const ip_address *r;
int eq;
} address_op_address[] = {
/* any */
{ &unset_address, &unset_address, .eq = true, },
{ &ipv4_info.address.unspec, &ipv4_info.address.unspec, .eq = true, },
{ &ipv6_info.address.unspec, &ipv6_info.address.unspec, .eq = true, },
{ &ipv4_info.address.loopback, &ipv4_info.address.loopback, .eq = true, },
{ &ipv6_info.address.loopback, &ipv6_info.address.loopback, .eq = true, },
};
CHECK_OP(address, eq, address);
}
static void check_ip_info_endpoint(void)
{
for (size_t ti = 0; ti < elemsof(endpoint_tests); ti++) {
const struct endpoint_test *t = &endpoint_tests[ti];
PRINT("%s", pri_afi(t->afi));
const ip_endpoint *endpoint = t->endpoint;
CHECK_INFO(endpoint);
CHECK_STR2(endpoint);
CHECK_COND(endpoint, is_unset);
CHECK_COND2(endpoint, is_specified);
if (!t->is_unset) {
int hport = endpoint_hport(*endpoint);
if (hport != t->hport) {
FAIL(" endpoint_port() returned %d, expecting %d",
hport, t->hport);
}
}
CHECK_FROM_ZERO(selector, endpoint);
}
static const struct {
const ip_endpoint *l;
const ip_endpoint *r;
int eq;
} endpoint_op_endpoint[] = {
{ &unset_endpoint, &unset_endpoint, .eq = true, },
};
static const struct {
const ip_endpoint *l;
const ip_address *r;
int address_eq;
} endpoint_op_address[] = {
{ &unset_endpoint, &unset_address, .address_eq = true, },
};
CHECK_OP(endpoint, eq, endpoint);
CHECK_OP(endpoint, address_eq, address);
}
static void check_ip_info_subnet(void)
{
for (size_t ti = 0; ti < elemsof(subnet_tests); ti++) {
const struct subnet_test *t = &subnet_tests[ti];
PRINT("%s unset=%s size=%ju zero=%s all=%s",
pri_afi(t->afi),
bool_str(t->is_unset),
t->size,
bool_str(t->is_zero),
bool_str(t->is_all));
const ip_subnet *subnet = t->subnet;
CHECK_INFO(subnet);
CHECK_STR2(subnet);
CHECK_COND(subnet, is_unset);
CHECK_COND2(subnet, is_zero);
CHECK_COND2(subnet, is_all);
CHECK_UNOP(subnet, size, "%ju", /*NOP*/);
CHECK_FROM(range, subnet);
CHECK_FROM(selector, subnet);
}
static const struct {
const ip_subnet *l;
const ip_subnet *r;
int eq;
int in;
} subnet_op_subnet[] = {
/* any */
{ &unset_subnet, &unset_subnet, .eq = true, },
/* none in none */
{ &ipv4_info.subnet.zero, &ipv4_info.subnet.zero, .eq = true, .in = true, },
{ &ipv6_info.subnet.zero, &ipv6_info.subnet.zero, .eq = true, .in = true, },
/* all in all */
{ &ipv4_info.subnet.all, &ipv4_info.subnet.all, .eq = true, .in = true, },
{ &ipv6_info.subnet.all, &ipv6_info.subnet.all, .eq = true, .in = true, },
/* none in all */
{ &ipv4_info.subnet.zero, &ipv4_info.subnet.all, .in = true, },
{ &ipv6_info.subnet.zero, &ipv6_info.subnet.all, .in = true, },
};
static const struct {
const ip_subnet *l;
const ip_address *r;
int eq;
} subnet_op_address[] = {
{ &ipv4_info.subnet.zero, &ipv4_info.address.unspec, .eq = true, },
{ &ipv6_info.subnet.zero, &ipv6_info.address.unspec, .eq = true, },
};
static const struct {
const ip_address *l;
const ip_subnet *r;
int in;
} address_op_subnet[] = {
{ &ipv4_info.address.unspec, &ipv4_info.subnet.zero, .in = true, },
{ &ipv6_info.address.unspec, &ipv6_info.subnet.zero, .in = true, },
{ &ipv4_info.address.unspec, &ipv4_info.subnet.all, .in = true, },
{ &ipv6_info.address.unspec, &ipv6_info.subnet.all, .in = true, },
{ &ipv4_info.address.loopback, &ipv4_info.subnet.all, .in = true, },
{ &ipv6_info.address.loopback, &ipv6_info.subnet.all, .in = true, },
};
CHECK_OP(address, in, subnet);
CHECK_OP(subnet, in, subnet);
CHECK_OP(subnet, eq, address);
CHECK_OP(subnet, eq, subnet);
}
static void check_ip_info_range(void)
{
for (size_t ti = 0; ti < elemsof(range_tests); ti++) {
const struct range_test *t = &range_tests[ti];
PRINT("%s", pri_afi(t->afi));
const ip_range *range = t->range;
CHECK_INFO(range);
CHECK_STR2(range);
CHECK_COND(range, is_unset);
CHECK_COND2(range, is_zero);
CHECK_COND2(range, is_all);
CHECK_UNOP(range, size, "%ju", );
CHECK_FROM(selector, range);
}
static const struct {
const ip_range *l;
const ip_address *r;
bool eq;
} range_op_address[] = {
{ &unset_range, &unset_address, .eq = true, },
{ &ipv4_info.range.zero, &ipv4_info.address.unspec, .eq = true, },
{ &ipv6_info.range.zero, &ipv6_info.address.unspec, .eq = true, },
};
static const struct {
const ip_range *l;
const ip_subnet *r;
bool eq;
} range_op_subnet[] = {
{ &unset_range, &unset_subnet, .eq = true, },
{ &ipv4_info.range.all, &ipv4_info.subnet.all, .eq = true, },
{ &ipv6_info.range.all, &ipv6_info.subnet.all, .eq = true, },
/* clearly subnet isn't "none" */
{ &ipv4_info.range.zero, &ipv4_info.subnet.zero, .eq = true, },
{ &ipv6_info.range.zero, &ipv6_info.subnet.zero, .eq = true, },
};
static const struct {
const ip_range *l;
const ip_range *r;
bool eq;
bool in;
bool overlaps;
} range_op_range[] = {
{ &unset_range, &unset_range, .eq = true, },
{ &ipv4_info.range.zero, &ipv4_info.range.zero, .eq = true, .in = true, .overlaps = true, },
{ &ipv6_info.range.zero, &ipv6_info.range.zero, .eq = true, .in = true, .overlaps = true, },
{ &ipv4_info.range.zero, &ipv4_info.range.all, .in = true, .overlaps = true, },
{ &ipv6_info.range.zero, &ipv6_info.range.all, .in = true, .overlaps = true, },
{ &ipv4_info.range.all, &ipv4_info.range.zero, .overlaps = true, },
{ &ipv6_info.range.all, &ipv6_info.range.zero, .overlaps = true, },
{ &ipv4_info.range.all, &ipv4_info.range.all, .eq = true, .in = true, .overlaps = true, },
{ &ipv6_info.range.all, &ipv6_info.range.all, .eq = true, .in = true, .overlaps = true, },
};
static const struct {
const ip_subnet *l;
const ip_range *r;
bool in;
} subnet_op_range[] = {
{ &ipv4_info.subnet.zero, &ipv4_info.range.zero, .in = true, },
{ &ipv6_info.subnet.zero, &ipv6_info.range.zero, .in = true, },
{ &ipv4_info.subnet.zero, &ipv4_info.range.all, .in = true, },
{ &ipv6_info.subnet.zero, &ipv6_info.range.all, .in = true, },
{ &ipv4_info.subnet.all, &ipv4_info.range.all, .in = true, },
{ &ipv6_info.subnet.all, &ipv6_info.range.all, .in = true, },
};
static const struct {
const ip_address *l;
const ip_range *r;
bool in;
} address_op_range[] = {
{ &ipv4_info.address.unspec, &ipv4_info.range.all, .in = true, },
{ &ipv6_info.address.unspec, &ipv6_info.range.all, .in = true, },
{ &ipv4_info.address.unspec, &ipv4_info.range.zero, .in = true, },
{ &ipv6_info.address.unspec, &ipv6_info.range.zero, .in = true, },
{ &ipv4_info.address.loopback, &ipv4_info.range.all, .in = true, },
{ &ipv6_info.address.loopback, &ipv6_info.range.all, .in = true, },
};
CHECK_OP(range, eq, address);
CHECK_OP(range, eq, subnet);
CHECK_OP(range, eq, range);
CHECK_OP(address, in, range);
CHECK_OP(subnet, in, range);
CHECK_OP(range, in, range);
CHECK_OP(range, overlaps, range);
}
static void check_ip_info_selector(void)
{
for (size_t ti = 0; ti < elemsof(selector_tests); ti++) {
const struct selector_test *t = &selector_tests[ti];
PRINT("%s", pri_afi(t->afi));
const ip_selector *selector = t->selector;
CHECK_INFO(selector);
CHECK_STR2(selector);
CHECK_COND(selector, is_unset);
CHECK_COND2(selector, is_zero);
CHECK_COND2(selector, is_all);
CHECK_COND2(selector, contains_one_address);
}
static const struct {
const ip_selector *l;
const ip_selector *r;
int eq;
int in;
int overlaps;
} selector_op_selector[] = {
{ &unset_selector, &unset_selector, .eq = true, },
{ &ipv4_info.selector.zero, &ipv4_info.selector.zero, .eq = true, .in = true, .overlaps = true, },
{ &ipv6_info.selector.zero, &ipv6_info.selector.zero, .eq = true, .in = true, .overlaps = true, },
{ &ipv4_info.selector.zero, &ipv4_info.selector.all, .in = true, .overlaps = true, },
{ &ipv6_info.selector.zero, &ipv6_info.selector.all, .in = true, .overlaps = true, },
{ &ipv4_info.selector.all, &ipv4_info.selector.zero, .overlaps = true, },
{ &ipv6_info.selector.all, &ipv6_info.selector.zero, .overlaps = true, },
{ &ipv4_info.selector.all, &ipv4_info.selector.all, .eq = true, .in = true, .overlaps = true, },
{ &ipv6_info.selector.all, &ipv6_info.selector.all, .eq = true, .in = true, .overlaps = true, },
};
static const struct {
const ip_selector *l;
const ip_address *r;
int eq;
} selector_op_address[] = {
{ &unset_selector, &unset_address, .eq = true, },
{ &ipv4_info.selector.zero, &ipv4_info.address.unspec, .eq = true, },
{ &ipv6_info.selector.zero, &ipv6_info.address.unspec, .eq = true, },
};
static const struct {
const ip_selector *l;
const ip_subnet *r;
int eq;
} selector_op_subnet[] = {
{ &unset_selector, &unset_subnet, .eq = true, },
{ &ipv4_info.selector.zero, &ipv4_info.subnet.zero, .eq = true, },
{ &ipv6_info.selector.zero, &ipv6_info.subnet.zero, .eq = true, },
{ &ipv4_info.selector.all, &ipv4_info.subnet.all, .eq = true, },
{ &ipv6_info.selector.all, &ipv6_info.subnet.all, .eq = true, },
};
static const struct {
const ip_selector *l;
const ip_endpoint *r;
int eq;
} selector_op_endpoint[] = {
{ &unset_selector, &unset_endpoint, .eq = true, },
};
static const struct {
const ip_endpoint *l;
const ip_selector *r;
int in;
} endpoint_op_selector[1];
static const struct {
const ip_subnet *l;
const ip_selector *r;
int in;
} subnet_op_selector[] = {
{ &ipv4_info.subnet.zero, &ipv4_info.selector.zero, .in = true, },
{ &ipv6_info.subnet.zero, &ipv6_info.selector.zero, .in = true, },
{ &ipv4_info.subnet.zero, &ipv4_info.selector.all, .in = true, },
{ &ipv6_info.subnet.zero, &ipv6_info.selector.all, .in = true, },
{ &ipv4_info.subnet.all, &ipv4_info.selector.all, .in = true, },
{ &ipv6_info.subnet.all, &ipv6_info.selector.all, .in = true, },
};
static const struct {
const ip_address *l;
const ip_selector *r;
int in;
} address_op_selector[] = {
{ &ipv4_info.address.unspec, &ipv4_info.selector.zero, .in = true, },
{ &ipv6_info.address.unspec, &ipv6_info.selector.zero, .in = true, },
{ &ipv4_info.address.unspec, &ipv4_info.selector.all, .in = true, },
{ &ipv6_info.address.unspec, &ipv6_info.selector.all, .in = true, },
{ &ipv4_info.address.loopback, &ipv4_info.selector.all, .in = true, },
{ &ipv6_info.address.loopback, &ipv6_info.selector.all, .in = true, },
};
static const struct {
const ip_range *l;
const ip_selector *r;
int in;
} range_op_selector[] = {
{ &ipv4_info.range.zero, &ipv4_info.selector.zero, .in = true, },
{ &ipv6_info.range.zero, &ipv6_info.selector.zero, .in = true, },
{ &ipv4_info.range.zero, &ipv4_info.selector.all, .in = true, },
{ &ipv6_info.range.zero, &ipv6_info.selector.all, .in = true, },
{ &ipv4_info.range.all, &ipv4_info.selector.all, .in = true, },
{ &ipv6_info.range.all, &ipv6_info.selector.all, .in = true, },
};
static const struct {
const ip_selector *l;
const ip_range *r;
int eq;
} selector_op_range[] = {
{ &unset_selector, &unset_range, .eq = true, },
{ &ipv4_info.selector.zero, &ipv4_info.range.zero, .eq = true, },
{ &ipv6_info.selector.zero, &ipv6_info.range.zero, .eq = true, },
{ &ipv4_info.selector.all, &ipv4_info.range.all, .eq = true, },
{ &ipv6_info.selector.all, &ipv6_info.range.all, .eq = true, },
};
CHECK_OP(address, in, selector);
CHECK_OP(endpoint, in, selector);
CHECK_OP(subnet, in, selector);
CHECK_OP(range, in, selector);
CHECK_OP(selector, in, selector);
CHECK_OP(selector, eq, address);
CHECK_OP(selector, eq, endpoint);
CHECK_OP(selector, eq, subnet);
CHECK_OP(selector, eq, range);
CHECK_OP(selector, eq, selector);
CHECK_OP(selector, overlaps, selector);
}
void ip_info_check(void)
{
check_ip_info_address();
check_ip_info_endpoint();
check_ip_info_subnet();
check_ip_info_range();
check_ip_info_selector();
}
|