Harald Welte | 9af6ddf | 2011-01-01 15:25:50 +0100 | [diff] [blame] | 1 | /* ip.access nanoBTS configuration tool */ |
| 2 | |
| 3 | /* (C) 2009-2010 by Harald Welte <laforge@gnumonks.org> |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU Affero General Public License as published by |
| 8 | * the Free Software Foundation; either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU Affero General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Affero General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | */ |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 20 | |
| 21 | #include <unistd.h> |
| 22 | #include <stdio.h> |
| 23 | #include <stdlib.h> |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 24 | #include <sys/socket.h> |
| 25 | #include <netinet/in.h> |
| 26 | #include <arpa/inet.h> |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 27 | #include <getopt.h> |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 28 | #include <time.h> |
| 29 | #include <talloc.h> |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 30 | |
Pablo Neira Ayuso | 136f453 | 2011-03-22 16:47:59 +0100 | [diff] [blame] | 31 | #include <osmocom/core/select.h> |
| 32 | #include <osmocom/core/timer.h> |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 33 | #include <osmocom/core/linuxlist.h> |
Harald Welte | 4a88a49 | 2014-08-20 23:46:40 +0200 | [diff] [blame] | 34 | #include <osmocom/gsm/protocol/ipaccess.h> |
| 35 | #include <osmocom/gsm/ipa.h> |
Neels Hofmeyr | c016479 | 2017-09-04 15:15:32 +0200 | [diff] [blame] | 36 | #include <osmocom/bsc/gsm_data.h> |
Harald Welte | 3788196 | 2009-04-30 15:15:37 +0000 | [diff] [blame] | 37 | |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 38 | static struct { |
| 39 | const char *ifname; |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 40 | bool list_view; |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 41 | } cmdline_opts = { |
| 42 | .ifname = NULL, |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 43 | .list_view = false, |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | static void print_help() |
| 47 | { |
| 48 | printf("\n"); |
| 49 | printf("Usage: abisip-find [-l] [<interface-name>]\n"); |
| 50 | printf(" <interface-name> Specify the outgoing network interface,\n" |
| 51 | " e.g. 'eth0'\n"); |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 52 | printf(" -l --list-view Instead of printing received responses,\n" |
| 53 | " output a sorted list of currently present\n" |
| 54 | " base stations and change events.\n"); |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | static void handle_options(int argc, char **argv) |
| 58 | { |
| 59 | while (1) { |
| 60 | int option_index = 0, c; |
| 61 | static struct option long_options[] = { |
| 62 | {"help", 0, 0, 'h'}, |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 63 | {"list-view", 0, 0, 'l'}, |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 64 | {0, 0, 0, 0} |
| 65 | }; |
| 66 | |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 67 | c = getopt_long(argc, argv, "hl", |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 68 | long_options, &option_index); |
| 69 | if (c == -1) |
| 70 | break; |
| 71 | |
| 72 | switch (c) { |
| 73 | case 'h': |
| 74 | print_help(); |
| 75 | exit(EXIT_SUCCESS); |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 76 | case 'l': |
| 77 | cmdline_opts.list_view = true; |
| 78 | break; |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 79 | default: |
| 80 | /* catch unknown options *as well as* missing arguments. */ |
| 81 | fprintf(stderr, "Error in command line options. Exiting. Try --help.\n"); |
| 82 | exit(EXIT_FAILURE); |
| 83 | break; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | if (argc - optind > 0) |
| 88 | cmdline_opts.ifname = argv[optind++]; |
| 89 | |
| 90 | if (argc - optind > 0) { |
| 91 | fprintf(stderr, "Error: too many arguments\n"); |
| 92 | print_help(); |
| 93 | exit(EXIT_FAILURE); |
| 94 | } |
| 95 | } |
| 96 | |
Harald Welte | e26d079 | 2009-08-08 11:47:20 +0200 | [diff] [blame] | 97 | static int udp_sock(const char *ifname) |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 98 | { |
| 99 | int fd, rc, bc = 1; |
| 100 | struct sockaddr_in sa; |
| 101 | |
| 102 | fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); |
| 103 | if (fd < 0) |
| 104 | return fd; |
| 105 | |
Harald Welte | e26d079 | 2009-08-08 11:47:20 +0200 | [diff] [blame] | 106 | if (ifname) { |
Nikola Kolev | 10bad10 | 2014-05-08 12:45:20 +0300 | [diff] [blame] | 107 | #ifdef __FreeBSD__ |
| 108 | rc = setsockopt(fd, SOL_SOCKET, IP_RECVIF, ifname, |
| 109 | strlen(ifname)); |
| 110 | #else |
Harald Welte | e26d079 | 2009-08-08 11:47:20 +0200 | [diff] [blame] | 111 | rc = setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, |
| 112 | strlen(ifname)); |
Nikola Kolev | 10bad10 | 2014-05-08 12:45:20 +0300 | [diff] [blame] | 113 | #endif |
Harald Welte | e26d079 | 2009-08-08 11:47:20 +0200 | [diff] [blame] | 114 | if (rc < 0) |
| 115 | goto err; |
| 116 | } |
| 117 | |
Holger Hans Peter Freyther | d5c270e | 2013-07-03 10:19:37 +0200 | [diff] [blame] | 118 | memset(&sa, 0, sizeof(sa)); |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 119 | sa.sin_family = AF_INET; |
| 120 | sa.sin_port = htons(3006); |
| 121 | sa.sin_addr.s_addr = INADDR_ANY; |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 122 | |
| 123 | rc = bind(fd, (struct sockaddr *)&sa, sizeof(sa)); |
| 124 | if (rc < 0) |
| 125 | goto err; |
| 126 | |
| 127 | rc = setsockopt(fd, SOL_SOCKET, SO_BROADCAST, &bc, sizeof(bc)); |
| 128 | if (rc < 0) |
| 129 | goto err; |
| 130 | |
| 131 | #if 0 |
Harald Welte | 81cff3c | 2009-08-08 12:14:53 +0200 | [diff] [blame] | 132 | /* we cannot bind, since the response packets don't come from |
| 133 | * the broadcast address */ |
| 134 | sa.sin_family = AF_INET; |
| 135 | sa.sin_port = htons(3006); |
| 136 | inet_aton("255.255.255.255", &sa.sin_addr); |
| 137 | |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 138 | rc = connect(fd, (struct sockaddr *)&sa, sizeof(sa)); |
| 139 | if (rc < 0) |
| 140 | goto err; |
Holger Hans Peter Freyther | acf8a0c | 2010-03-29 08:47:44 +0200 | [diff] [blame] | 141 | #endif |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 142 | return fd; |
| 143 | |
| 144 | err: |
| 145 | close(fd); |
| 146 | return rc; |
| 147 | } |
| 148 | |
Holger Hans Peter Freyther | acf8a0c | 2010-03-29 08:47:44 +0200 | [diff] [blame] | 149 | const unsigned char find_pkt[] = { 0x00, 0x0b+8, IPAC_PROTO_IPACCESS, 0x00, |
Harald Welte | 4f361fc | 2009-02-15 15:32:53 +0000 | [diff] [blame] | 150 | IPAC_MSGT_ID_GET, |
| 151 | 0x01, IPAC_IDTAG_MACADDR, |
| 152 | 0x01, IPAC_IDTAG_IPADDR, |
| 153 | 0x01, IPAC_IDTAG_UNIT, |
| 154 | 0x01, IPAC_IDTAG_LOCATION1, |
| 155 | 0x01, IPAC_IDTAG_LOCATION2, |
| 156 | 0x01, IPAC_IDTAG_EQUIPVERS, |
| 157 | 0x01, IPAC_IDTAG_SWVERSION, |
| 158 | 0x01, IPAC_IDTAG_UNITNAME, |
| 159 | 0x01, IPAC_IDTAG_SERNR, |
| 160 | }; |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 161 | |
| 162 | |
| 163 | static int bcast_find(int fd) |
| 164 | { |
| 165 | struct sockaddr_in sa; |
| 166 | |
| 167 | sa.sin_family = AF_INET; |
| 168 | sa.sin_port = htons(3006); |
| 169 | inet_aton("255.255.255.255", &sa.sin_addr); |
| 170 | |
| 171 | return sendto(fd, find_pkt, sizeof(find_pkt), 0, (struct sockaddr *) &sa, sizeof(sa)); |
| 172 | } |
| 173 | |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 174 | static char *parse_response(void *ctx, unsigned char *buf, int len) |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 175 | { |
Holger Hans Peter Freyther | c42ad8b | 2011-04-18 17:04:00 +0200 | [diff] [blame] | 176 | uint8_t t_len; |
| 177 | uint8_t t_tag; |
| 178 | uint8_t *cur = buf; |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 179 | char *out = talloc_zero_size(ctx, 512); |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 180 | |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 181 | while (cur < buf + len) { |
| 182 | t_len = *cur++; |
| 183 | t_tag = *cur++; |
| 184 | |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 185 | out = talloc_asprintf_append(out, "%s='%s' ", ipa_ccm_idtag_name(t_tag), cur); |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 186 | |
| 187 | cur += t_len; |
| 188 | } |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 189 | |
| 190 | return out; |
| 191 | } |
| 192 | |
| 193 | struct base_station { |
| 194 | struct llist_head entry; |
| 195 | char *line; |
| 196 | time_t timestamp; |
| 197 | }; |
| 198 | |
| 199 | LLIST_HEAD(base_stations); |
| 200 | |
| 201 | void *ctx = NULL; |
| 202 | |
| 203 | void print_timestamp() |
| 204 | { |
| 205 | time_t now = time(NULL); |
| 206 | printf("\n\n----- %s\n", ctime(&now)); |
| 207 | } |
| 208 | |
| 209 | struct base_station *base_station_parse(unsigned char *buf, int len) |
| 210 | { |
| 211 | struct base_station *new_bs = talloc_zero(ctx, struct base_station); |
| 212 | new_bs->line = parse_response(new_bs, buf, len); |
| 213 | new_bs->timestamp = time(NULL); |
| 214 | return new_bs; |
| 215 | } |
| 216 | |
| 217 | bool base_stations_add(struct base_station *new_bs) |
| 218 | { |
| 219 | struct base_station *bs; |
| 220 | |
| 221 | llist_for_each_entry(bs, &base_stations, entry) { |
| 222 | int c = strcmp(new_bs->line, bs->line); |
| 223 | if (!c) { |
| 224 | /* entry already exists. */ |
| 225 | bs->timestamp = new_bs->timestamp; |
| 226 | return false; |
| 227 | } |
| 228 | |
| 229 | if (c < 0) { |
| 230 | /* found the place to add the entry */ |
| 231 | break; |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | print_timestamp(); |
| 236 | printf("New:\n%s\n", new_bs->line); |
| 237 | |
| 238 | llist_add_tail(&new_bs->entry, &bs->entry); |
| 239 | return true; |
| 240 | } |
| 241 | |
| 242 | bool base_stations_timeout() |
| 243 | { |
| 244 | struct base_station *bs, *next_bs; |
| 245 | time_t now = time(NULL); |
| 246 | bool changed = false; |
| 247 | |
| 248 | llist_for_each_entry_safe(bs, next_bs, &base_stations, entry) { |
| 249 | if (now - bs->timestamp < 10) |
| 250 | continue; |
| 251 | print_timestamp(); |
| 252 | printf("LOST:\n%s\n", bs->line); |
| 253 | |
| 254 | llist_del(&bs->entry); |
| 255 | talloc_free(bs); |
| 256 | changed = true; |
| 257 | } |
| 258 | return changed; |
| 259 | } |
| 260 | |
| 261 | void base_stations_print() |
| 262 | { |
| 263 | struct base_station *bs; |
| 264 | int count = 0; |
| 265 | |
| 266 | print_timestamp(); |
| 267 | llist_for_each_entry(bs, &base_stations, entry) { |
| 268 | printf("%3d: %s\n", count, bs->line); |
| 269 | count++; |
| 270 | } |
| 271 | printf("\nTotal: %d\n", count); |
| 272 | } |
| 273 | |
| 274 | static void base_stations_bump(bool known_changed) |
| 275 | { |
| 276 | bool changed = known_changed; |
| 277 | if (base_stations_timeout()) |
| 278 | changed = true; |
| 279 | |
| 280 | if (changed) |
| 281 | base_stations_print(); |
| 282 | } |
| 283 | |
| 284 | static void handle_response(unsigned char *buf, int len) |
| 285 | { |
| 286 | static unsigned int responses = 0; |
| 287 | responses++; |
| 288 | |
| 289 | if (cmdline_opts.list_view) { |
| 290 | bool changed = false; |
| 291 | struct base_station *bs = base_station_parse(buf, len); |
| 292 | if (base_stations_add(bs)) |
| 293 | changed = true; |
| 294 | else |
| 295 | talloc_free(bs); |
| 296 | base_stations_bump(changed); |
| 297 | printf("RX: %u \r", responses); |
| 298 | fflush(stdout); |
| 299 | } else { |
| 300 | char *line = parse_response(ctx, buf, len); |
| 301 | printf(line); |
| 302 | printf("\n"); |
| 303 | talloc_free(line); |
| 304 | } |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 305 | } |
| 306 | |
| 307 | static int read_response(int fd) |
| 308 | { |
| 309 | unsigned char buf[255]; |
| 310 | struct sockaddr_in sa; |
| 311 | int len; |
| 312 | socklen_t sa_len = sizeof(sa); |
| 313 | |
| 314 | len = recvfrom(fd, buf, sizeof(buf), 0, (struct sockaddr *)&sa, &sa_len); |
| 315 | if (len < 0) |
| 316 | return len; |
| 317 | |
Max | c04c6ed | 2016-11-10 18:29:50 +0100 | [diff] [blame] | 318 | /* 2 bytes length, 1 byte protocol */ |
| 319 | if (buf[2] != IPAC_PROTO_IPACCESS) |
Harald Welte | 81cff3c | 2009-08-08 12:14:53 +0200 | [diff] [blame] | 320 | return 0; |
| 321 | |
| 322 | if (buf[4] != IPAC_MSGT_ID_RESP) |
| 323 | return 0; |
| 324 | |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 325 | handle_response(buf+6, len-6); |
| 326 | return 0; |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 327 | } |
| 328 | |
Pablo Neira Ayuso | 4db9299 | 2011-05-06 12:11:23 +0200 | [diff] [blame] | 329 | static int bfd_cb(struct osmo_fd *bfd, unsigned int flags) |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 330 | { |
| 331 | if (flags & BSC_FD_READ) |
| 332 | return read_response(bfd->fd); |
| 333 | if (flags & BSC_FD_WRITE) { |
| 334 | bfd->when &= ~BSC_FD_WRITE; |
| 335 | return bcast_find(bfd->fd); |
| 336 | } |
| 337 | return 0; |
| 338 | } |
| 339 | |
Pablo Neira Ayuso | bf540cb | 2011-05-06 12:11:06 +0200 | [diff] [blame] | 340 | static struct osmo_timer_list timer; |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 341 | |
| 342 | static void timer_cb(void *_data) |
| 343 | { |
Pablo Neira Ayuso | 4db9299 | 2011-05-06 12:11:23 +0200 | [diff] [blame] | 344 | struct osmo_fd *bfd = _data; |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 345 | |
| 346 | bfd->when |= BSC_FD_WRITE; |
| 347 | |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 348 | base_stations_bump(false); |
| 349 | |
Pablo Neira Ayuso | bf540cb | 2011-05-06 12:11:06 +0200 | [diff] [blame] | 350 | osmo_timer_schedule(&timer, 5, 0); |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 351 | } |
| 352 | |
| 353 | int main(int argc, char **argv) |
| 354 | { |
Pablo Neira Ayuso | 4db9299 | 2011-05-06 12:11:23 +0200 | [diff] [blame] | 355 | struct osmo_fd bfd; |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 356 | int rc; |
| 357 | |
Harald Welte | 28e9f60 | 2016-02-18 11:15:16 +0100 | [diff] [blame] | 358 | printf("abisip-find (C) 2009 by Harald Welte\n"); |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 359 | printf("This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY\n\n"); |
| 360 | |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 361 | handle_options(argc, argv); |
| 362 | |
| 363 | if (!cmdline_opts.ifname) |
Neels Hofmeyr | 5bf1e15 | 2017-12-25 18:22:18 +0100 | [diff] [blame^] | 364 | fprintf(stdout, "- You might need to specify the outgoing\n" |
| 365 | " network interface, e.g. ``%s eth0''\n", argv[0]); |
| 366 | if (!cmdline_opts.list_view) |
| 367 | fprintf(stdout, "- You may find the --list-view option convenient.\n"); |
Harald Welte | 042401c | 2009-06-29 10:43:04 +0200 | [diff] [blame] | 368 | |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 369 | bfd.cb = bfd_cb; |
| 370 | bfd.when = BSC_FD_READ | BSC_FD_WRITE; |
Neels Hofmeyr | 2a9ac19 | 2017-12-25 18:43:40 +0100 | [diff] [blame] | 371 | bfd.fd = udp_sock(cmdline_opts.ifname); |
Harald Welte | 042401c | 2009-06-29 10:43:04 +0200 | [diff] [blame] | 372 | if (bfd.fd < 0) { |
| 373 | perror("Cannot create local socket for broadcast udp"); |
| 374 | exit(1); |
| 375 | } |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 376 | |
Harald Welte | 8d35965 | 2016-11-26 14:57:23 +0100 | [diff] [blame] | 377 | rc = osmo_fd_register(&bfd); |
| 378 | if (rc < 0) { |
| 379 | fprintf(stderr, "Cannot register FD\n"); |
| 380 | exit(1); |
| 381 | } |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 382 | |
Pablo Neira Ayuso | 5121576 | 2017-05-08 20:57:52 +0200 | [diff] [blame] | 383 | osmo_timer_setup(&timer, timer_cb, &bfd); |
Pablo Neira Ayuso | bf540cb | 2011-05-06 12:11:06 +0200 | [diff] [blame] | 384 | osmo_timer_schedule(&timer, 5, 0); |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 385 | |
| 386 | printf("Trying to find ip.access BTS by broadcast UDP...\n"); |
| 387 | |
| 388 | while (1) { |
Pablo Neira Ayuso | 4db9299 | 2011-05-06 12:11:23 +0200 | [diff] [blame] | 389 | rc = osmo_select_main(0); |
Harald Welte | 923a3bd | 2009-02-14 12:51:36 +0000 | [diff] [blame] | 390 | if (rc < 0) |
| 391 | exit(3); |
| 392 | } |
| 393 | |
| 394 | exit(0); |
| 395 | } |
| 396 | |