Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 1 | /* OpenBSC Abis interface to E1 */ |
| 2 | |
| 3 | /* (C) 2008-2009 by Harald Welte <laforge@gnumonks.org> |
| 4 | * |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #include <stdio.h> |
| 24 | #include <unistd.h> |
| 25 | #include <stdlib.h> |
| 26 | #include <errno.h> |
| 27 | #include <string.h> |
| 28 | #include <time.h> |
| 29 | #include <sys/fcntl.h> |
| 30 | #include <sys/types.h> |
| 31 | #include <sys/socket.h> |
| 32 | #include <sys/ioctl.h> |
| 33 | #include <arpa/inet.h> |
| 34 | #include <mISDNif.h> |
| 35 | |
| 36 | //#define AF_COMPATIBILITY_FUNC |
| 37 | //#include <compat_af_isdn.h> |
| 38 | #ifndef AF_ISDN |
| 39 | #define AF_ISDN 34 |
| 40 | #define PF_ISDN AF_ISDN |
| 41 | #endif |
| 42 | |
| 43 | #include <openbsc/select.h> |
| 44 | #include <openbsc/msgb.h> |
| 45 | #include <openbsc/debug.h> |
| 46 | #include <openbsc/gsm_data.h> |
| 47 | #include <openbsc/e1_input.h> |
| 48 | #include <openbsc/abis_nm.h> |
| 49 | #include <openbsc/abis_rsl.h> |
| 50 | #include <openbsc/linuxlist.h> |
| 51 | #include <openbsc/subchan_demux.h> |
| 52 | #include <openbsc/trau_frame.h> |
| 53 | #include <openbsc/trau_mux.h> |
Harald Welte | a837977 | 2009-06-20 22:36:41 +0200 | [diff] [blame] | 54 | #include <openbsc/talloc.h> |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 55 | |
| 56 | #define NUM_E1_TS 32 |
| 57 | |
| 58 | /* list of all E1 drivers */ |
| 59 | LLIST_HEAD(e1inp_driver_list); |
| 60 | |
| 61 | /* list of all E1 lines */ |
| 62 | LLIST_HEAD(e1inp_line_list); |
| 63 | |
Harald Welte | a837977 | 2009-06-20 22:36:41 +0200 | [diff] [blame] | 64 | static void *tall_sigl_ctx; |
| 65 | |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 66 | /* to be implemented, e.g. by bsc_hack.c */ |
| 67 | void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx); |
| 68 | |
| 69 | /* |
| 70 | * pcap writing of the misdn load |
| 71 | * pcap format is from http://wiki.wireshark.org/Development/LibpcapFileFormat |
| 72 | */ |
| 73 | #define DLT_LINUX_LAPD 177 |
| 74 | #define PCAP_INPUT 0 |
| 75 | #define PCAP_OUTPUT 1 |
| 76 | |
| 77 | struct pcap_hdr { |
| 78 | u_int32_t magic_number; |
| 79 | u_int16_t version_major; |
| 80 | u_int16_t version_minor; |
| 81 | int32_t thiszone; |
| 82 | u_int32_t sigfigs; |
| 83 | u_int32_t snaplen; |
| 84 | u_int32_t network; |
| 85 | } __attribute__((packed)); |
| 86 | |
| 87 | struct pcaprec_hdr { |
| 88 | u_int32_t ts_sec; |
| 89 | u_int32_t ts_usec; |
| 90 | u_int32_t incl_len; |
| 91 | u_int32_t orig_len; |
| 92 | } __attribute__((packed)); |
| 93 | |
| 94 | struct fake_linux_lapd_header { |
| 95 | u_int16_t pkttype; |
| 96 | u_int16_t hatype; |
| 97 | u_int16_t halen; |
| 98 | u_int64_t addr; |
| 99 | int16_t protocol; |
| 100 | } __attribute__((packed)); |
| 101 | |
| 102 | struct lapd_header { |
| 103 | u_int8_t ea1 : 1; |
| 104 | u_int8_t cr : 1; |
| 105 | u_int8_t sapi : 6; |
| 106 | u_int8_t ea2 : 1; |
| 107 | u_int8_t tei : 7; |
| 108 | u_int8_t control_foo; /* fake UM's ... */ |
| 109 | } __attribute__((packed)); |
| 110 | |
| 111 | static_assert((int)&((struct fake_linux_lapd_header*)NULL)->hatype == 2, hatype_offset); |
| 112 | static_assert((int)&((struct fake_linux_lapd_header*)NULL)->halen == 4, halen_offset); |
| 113 | static_assert((int)&((struct fake_linux_lapd_header*)NULL)->addr == 6, addr_offset); |
| 114 | static_assert((int)&((struct fake_linux_lapd_header*)NULL)->protocol == 14, proto_offset); |
| 115 | static_assert(sizeof(struct fake_linux_lapd_header) == 16, lapd_header_size); |
| 116 | |
| 117 | |
| 118 | static int pcap_fd = -1; |
| 119 | |
| 120 | void e1_set_pcap_fd(int fd) |
| 121 | { |
| 122 | int ret; |
| 123 | struct pcap_hdr header = { |
| 124 | .magic_number = 0xa1b2c3d4, |
| 125 | .version_major = 2, |
| 126 | .version_minor = 4, |
| 127 | .thiszone = 0, |
| 128 | .sigfigs = 0, |
| 129 | .snaplen = 65535, |
| 130 | .network = DLT_LINUX_LAPD, |
| 131 | }; |
| 132 | |
| 133 | pcap_fd = fd; |
| 134 | ret = write(pcap_fd, &header, sizeof(header)); |
| 135 | } |
| 136 | |
| 137 | /* This currently only works for the D-Channel */ |
| 138 | static void write_pcap_packet(int direction, int sapi, int tei, |
| 139 | struct msgb *msg) { |
| 140 | if (pcap_fd < 0) |
| 141 | return; |
| 142 | |
| 143 | int ret; |
| 144 | time_t cur_time; |
| 145 | struct tm *tm; |
Andreas Eversberg | b5a3e41 | 2009-06-10 14:47:33 +0200 | [diff] [blame] | 146 | int mi_head = (direction==PCAP_INPUT) ? MISDN_HEADER_LEN : 0; |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 147 | |
| 148 | struct fake_linux_lapd_header header = { |
| 149 | .pkttype = 4, |
| 150 | .hatype = 0, |
| 151 | .halen = 0, |
| 152 | .addr = direction == PCAP_OUTPUT ? 0x0 : 0x1, |
| 153 | .protocol = ntohs(48), |
| 154 | }; |
| 155 | |
| 156 | struct lapd_header lapd_header = { |
| 157 | .ea1 = 0, |
| 158 | .cr = direction == PCAP_OUTPUT ? 1 : 0, |
| 159 | .sapi = sapi & 0x3F, |
| 160 | .ea2 = 1, |
| 161 | .tei = tei & 0x7F, |
| 162 | .control_foo = 0x03 /* UI */, |
| 163 | }; |
| 164 | |
| 165 | struct pcaprec_hdr payload_header = { |
| 166 | .ts_sec = 0, |
| 167 | .ts_usec = 0, |
| 168 | .incl_len = msg->len + sizeof(struct fake_linux_lapd_header) |
| 169 | + sizeof(struct lapd_header) |
Andreas Eversberg | b5a3e41 | 2009-06-10 14:47:33 +0200 | [diff] [blame] | 170 | - mi_head, |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 171 | .orig_len = msg->len + sizeof(struct fake_linux_lapd_header) |
| 172 | + sizeof(struct lapd_header) |
Andreas Eversberg | b5a3e41 | 2009-06-10 14:47:33 +0200 | [diff] [blame] | 173 | - mi_head, |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 174 | }; |
| 175 | |
| 176 | |
Andreas Eversberg | b5a3e41 | 2009-06-10 14:47:33 +0200 | [diff] [blame] | 177 | printf("Packet of: %d\n", direction); |
| 178 | |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 179 | cur_time = time(NULL); |
| 180 | tm = localtime(&cur_time); |
| 181 | payload_header.ts_sec = mktime(tm); |
| 182 | |
| 183 | ret = write(pcap_fd, &payload_header, sizeof(payload_header)); |
| 184 | ret = write(pcap_fd, &header, sizeof(header)); |
| 185 | ret = write(pcap_fd, &lapd_header, sizeof(lapd_header)); |
Andreas Eversberg | b5a3e41 | 2009-06-10 14:47:33 +0200 | [diff] [blame] | 186 | ret = write(pcap_fd, msg->data + mi_head, |
| 187 | msg->len - mi_head); |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | static const char *sign_types[] = { |
| 191 | [E1INP_SIGN_NONE] = "None", |
| 192 | [E1INP_SIGN_OML] = "OML", |
| 193 | [E1INP_SIGN_RSL] = "RSL", |
| 194 | }; |
| 195 | const char *e1inp_signtype_name(enum e1inp_sign_type tp) |
| 196 | { |
| 197 | if (tp >= ARRAY_SIZE(sign_types)) |
| 198 | return "undefined"; |
| 199 | return sign_types[tp]; |
| 200 | } |
| 201 | |
| 202 | static const char *ts_types[] = { |
| 203 | [E1INP_TS_TYPE_NONE] = "None", |
| 204 | [E1INP_TS_TYPE_SIGN] = "Signalling", |
| 205 | [E1INP_TS_TYPE_TRAU] = "TRAU", |
| 206 | }; |
| 207 | |
| 208 | const char *e1inp_tstype_name(enum e1inp_ts_type tp) |
| 209 | { |
| 210 | if (tp >= ARRAY_SIZE(ts_types)) |
| 211 | return "undefined"; |
| 212 | return ts_types[tp]; |
| 213 | } |
| 214 | |
| 215 | /* callback when a TRAU frame was received */ |
| 216 | static int subch_cb(struct subch_demux *dmx, int ch, u_int8_t *data, int len, |
| 217 | void *_priv) |
| 218 | { |
| 219 | struct e1inp_ts *e1i_ts = _priv; |
| 220 | struct gsm_e1_subslot src_ss; |
| 221 | |
| 222 | src_ss.e1_nr = e1i_ts->line->num; |
| 223 | src_ss.e1_ts = e1i_ts->num; |
| 224 | src_ss.e1_ts_ss = ch; |
| 225 | |
| 226 | return trau_mux_input(&src_ss, data, len); |
| 227 | } |
| 228 | |
| 229 | int abis_rsl_sendmsg(struct msgb *msg) |
| 230 | { |
| 231 | struct e1inp_sign_link *sign_link; |
| 232 | struct e1inp_driver *e1inp_driver; |
| 233 | struct e1inp_ts *e1i_ts; |
| 234 | |
| 235 | msg->l2h = msg->data; |
| 236 | |
| 237 | if (!msg->trx || !msg->trx->rsl_link) { |
| 238 | fprintf(stderr, "rsl_sendmsg: msg->trx == NULL\n"); |
Harald Welte | ed83184 | 2009-06-27 03:09:08 +0200 | [diff] [blame] | 239 | talloc_free(msg); |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 240 | return -EINVAL; |
| 241 | } |
| 242 | |
| 243 | sign_link = msg->trx->rsl_link; |
| 244 | e1i_ts = sign_link->ts; |
| 245 | if (!bsc_timer_pending(&e1i_ts->sign.tx_timer)) { |
| 246 | /* notify the driver we have something to write */ |
| 247 | e1inp_driver = sign_link->ts->line->driver; |
| 248 | e1inp_driver->want_write(e1i_ts); |
| 249 | } |
| 250 | msgb_enqueue(&sign_link->tx_list, msg); |
| 251 | |
| 252 | /* dump it */ |
| 253 | write_pcap_packet(PCAP_OUTPUT, sign_link->sapi, sign_link->tei, msg); |
| 254 | |
| 255 | return 0; |
| 256 | } |
| 257 | |
| 258 | int _abis_nm_sendmsg(struct msgb *msg) |
| 259 | { |
| 260 | struct e1inp_sign_link *sign_link; |
| 261 | struct e1inp_driver *e1inp_driver; |
| 262 | struct e1inp_ts *e1i_ts; |
| 263 | |
| 264 | msg->l2h = msg->data; |
| 265 | |
| 266 | if (!msg->trx || !msg->trx->bts || !msg->trx->bts->oml_link) { |
| 267 | fprintf(stderr, "nm_sendmsg: msg->trx == NULL\n"); |
| 268 | return -EINVAL; |
| 269 | } |
| 270 | |
| 271 | sign_link = msg->trx->bts->oml_link; |
| 272 | e1i_ts = sign_link->ts; |
| 273 | if (!bsc_timer_pending(&e1i_ts->sign.tx_timer)) { |
| 274 | /* notify the driver we have something to write */ |
| 275 | e1inp_driver = sign_link->ts->line->driver; |
| 276 | e1inp_driver->want_write(e1i_ts); |
| 277 | } |
| 278 | msgb_enqueue(&sign_link->tx_list, msg); |
| 279 | |
| 280 | /* dump it */ |
| 281 | write_pcap_packet(PCAP_OUTPUT, sign_link->sapi, sign_link->tei, msg); |
| 282 | |
| 283 | return 0; |
| 284 | } |
| 285 | |
| 286 | /* Timeslot */ |
| 287 | |
| 288 | /* configure and initialize one e1inp_ts */ |
| 289 | int e1inp_ts_config(struct e1inp_ts *ts, struct e1inp_line *line, |
| 290 | enum e1inp_ts_type type) |
| 291 | { |
| 292 | ts->type = type; |
| 293 | ts->line = line; |
| 294 | |
| 295 | switch (type) { |
| 296 | case E1INP_TS_TYPE_SIGN: |
| 297 | INIT_LLIST_HEAD(&ts->sign.sign_links); |
| 298 | break; |
| 299 | case E1INP_TS_TYPE_TRAU: |
| 300 | subchan_mux_init(&ts->trau.mux); |
| 301 | ts->trau.demux.out_cb = subch_cb; |
| 302 | ts->trau.demux.data = ts; |
| 303 | subch_demux_init(&ts->trau.demux); |
| 304 | break; |
| 305 | default: |
| 306 | fprintf(stderr, "unsupported E1 timeslot type %u\n", |
| 307 | ts->type); |
| 308 | return -EINVAL; |
| 309 | } |
| 310 | return 0; |
| 311 | } |
| 312 | |
| 313 | static struct e1inp_line *e1inp_line_get(u_int8_t e1_nr) |
| 314 | { |
| 315 | struct e1inp_line *e1i_line; |
| 316 | |
| 317 | /* iterate over global list of e1 lines */ |
| 318 | llist_for_each_entry(e1i_line, &e1inp_line_list, list) { |
| 319 | if (e1i_line->num == e1_nr) |
| 320 | return e1i_line; |
| 321 | } |
| 322 | return NULL; |
| 323 | } |
| 324 | |
| 325 | static struct e1inp_ts *e1inp_ts_get(u_int8_t e1_nr, u_int8_t ts_nr) |
| 326 | { |
| 327 | struct e1inp_line *e1i_line; |
| 328 | |
| 329 | e1i_line = e1inp_line_get(e1_nr); |
| 330 | if (!e1i_line) |
| 331 | return NULL; |
| 332 | |
| 333 | return &e1i_line->ts[ts_nr-1]; |
| 334 | } |
| 335 | |
| 336 | struct subch_mux *e1inp_get_mux(u_int8_t e1_nr, u_int8_t ts_nr) |
| 337 | { |
| 338 | struct e1inp_ts *e1i_ts = e1inp_ts_get(e1_nr, ts_nr); |
| 339 | |
| 340 | if (!e1i_ts) |
| 341 | return NULL; |
| 342 | |
| 343 | return &e1i_ts->trau.mux; |
| 344 | } |
| 345 | |
| 346 | /* Signalling Link */ |
| 347 | |
| 348 | struct e1inp_sign_link *e1inp_lookup_sign_link(struct e1inp_ts *e1i, |
| 349 | u_int8_t tei, u_int8_t sapi) |
| 350 | { |
| 351 | struct e1inp_sign_link *link; |
| 352 | |
| 353 | llist_for_each_entry(link, &e1i->sign.sign_links, list) { |
| 354 | if (link->sapi == sapi && link->tei == tei) |
| 355 | return link; |
| 356 | } |
| 357 | |
| 358 | return NULL; |
| 359 | } |
| 360 | |
| 361 | /* create a new signalling link in a E1 timeslot */ |
| 362 | |
| 363 | struct e1inp_sign_link * |
| 364 | e1inp_sign_link_create(struct e1inp_ts *ts, enum e1inp_sign_type type, |
| 365 | struct gsm_bts_trx *trx, u_int8_t tei, |
| 366 | u_int8_t sapi) |
| 367 | { |
| 368 | struct e1inp_sign_link *link; |
| 369 | |
| 370 | if (ts->type != E1INP_TS_TYPE_SIGN) |
| 371 | return NULL; |
| 372 | |
Harald Welte | 857e00d | 2009-06-26 20:25:23 +0200 | [diff] [blame] | 373 | link = talloc_zero(tall_sigl_ctx, struct e1inp_sign_link); |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 374 | if (!link) |
| 375 | return NULL; |
| 376 | |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 377 | link->ts = ts; |
| 378 | link->type = type; |
| 379 | INIT_LLIST_HEAD(&link->tx_list); |
| 380 | link->trx = trx; |
| 381 | link->tei = tei; |
| 382 | link->sapi = sapi; |
| 383 | |
| 384 | llist_add_tail(&link->list, &ts->sign.sign_links); |
| 385 | |
| 386 | return link; |
| 387 | } |
| 388 | |
| 389 | /* the E1 driver tells us he has received something on a TS */ |
| 390 | int e1inp_rx_ts(struct e1inp_ts *ts, struct msgb *msg, |
| 391 | u_int8_t tei, u_int8_t sapi) |
| 392 | { |
| 393 | struct e1inp_sign_link *link; |
| 394 | int ret; |
| 395 | |
| 396 | switch (ts->type) { |
| 397 | case E1INP_TS_TYPE_SIGN: |
| 398 | /* consult the list of signalling links */ |
| 399 | write_pcap_packet(PCAP_INPUT, sapi, tei, msg); |
| 400 | link = e1inp_lookup_sign_link(ts, tei, sapi); |
| 401 | if (!link) { |
| 402 | fprintf(stderr, "didn't find singalling link for " |
| 403 | "tei %d, sapi %d\n", tei, sapi); |
| 404 | return -EINVAL; |
| 405 | } |
| 406 | switch (link->type) { |
| 407 | case E1INP_SIGN_OML: |
| 408 | msg->trx = link->trx; |
| 409 | ret = abis_nm_rcvmsg(msg); |
| 410 | break; |
| 411 | case E1INP_SIGN_RSL: |
| 412 | msg->trx = link->trx; |
| 413 | ret = abis_rsl_rcvmsg(msg); |
| 414 | break; |
| 415 | default: |
| 416 | ret = -EINVAL; |
| 417 | fprintf(stderr, "unknown link type %u\n", link->type); |
| 418 | break; |
| 419 | } |
| 420 | break; |
| 421 | case E1INP_TS_TYPE_TRAU: |
| 422 | ret = subch_demux_in(&ts->trau.demux, msg->l2h, msgb_l2len(msg)); |
| 423 | break; |
| 424 | default: |
| 425 | ret = -EINVAL; |
| 426 | fprintf(stderr, "unknown TS type %u\n", ts->type); |
| 427 | break; |
| 428 | } |
| 429 | |
| 430 | return ret; |
| 431 | } |
| 432 | |
| 433 | #define TSX_ALLOC_SIZE 4096 |
| 434 | |
| 435 | /* called by driver if it wants to transmit on a given TS */ |
| 436 | struct msgb *e1inp_tx_ts(struct e1inp_ts *e1i_ts, |
| 437 | struct e1inp_sign_link **sign_link) |
| 438 | { |
| 439 | struct e1inp_sign_link *link; |
| 440 | struct msgb *msg = NULL; |
| 441 | int len; |
| 442 | |
| 443 | switch (e1i_ts->type) { |
| 444 | case E1INP_TS_TYPE_SIGN: |
| 445 | /* FIXME: implement this round robin */ |
| 446 | llist_for_each_entry(link, &e1i_ts->sign.sign_links, list) { |
| 447 | msg = msgb_dequeue(&link->tx_list); |
| 448 | if (msg) { |
| 449 | if (sign_link) |
| 450 | *sign_link = link; |
| 451 | break; |
| 452 | } |
| 453 | } |
| 454 | break; |
| 455 | case E1INP_TS_TYPE_TRAU: |
Harald Welte | 9cfc935 | 2009-06-26 19:39:35 +0200 | [diff] [blame] | 456 | msg = msgb_alloc(TSX_ALLOC_SIZE, "TRAU_TX"); |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 457 | if (!msg) |
| 458 | return NULL; |
| 459 | len = subchan_mux_out(&e1i_ts->trau.mux, msg->data, 40); |
| 460 | msgb_put(msg, 40); |
| 461 | break; |
| 462 | default: |
| 463 | fprintf(stderr, "unsupported E1 TS type %u\n", e1i_ts->type); |
| 464 | return NULL; |
| 465 | } |
| 466 | return msg; |
| 467 | } |
| 468 | |
| 469 | /* called by driver in case some kind of link state event */ |
| 470 | int e1inp_event(struct e1inp_ts *ts, int evt, u_int8_t tei, u_int8_t sapi) |
| 471 | { |
| 472 | struct e1inp_sign_link *link; |
| 473 | |
| 474 | link = e1inp_lookup_sign_link(ts, tei, sapi); |
| 475 | if (!link) |
| 476 | return -EINVAL; |
| 477 | |
| 478 | /* FIXME: report further upwards */ |
| 479 | input_event(evt, link->type, link->trx); |
| 480 | return 0; |
| 481 | } |
| 482 | |
| 483 | /* register a driver with the E1 core */ |
| 484 | int e1inp_driver_register(struct e1inp_driver *drv) |
| 485 | { |
| 486 | llist_add_tail(&drv->list, &e1inp_driver_list); |
| 487 | return 0; |
| 488 | } |
| 489 | |
| 490 | /* register a line with the E1 core */ |
| 491 | int e1inp_line_register(struct e1inp_line *line) |
| 492 | { |
| 493 | int i; |
| 494 | |
| 495 | for (i = 0; i < NUM_E1_TS; i++) { |
| 496 | line->ts[i].num = i+1; |
| 497 | line->ts[i].line = line; |
| 498 | } |
| 499 | |
| 500 | llist_add_tail(&line->list, &e1inp_line_list); |
| 501 | |
| 502 | return 0; |
| 503 | } |
Harald Welte | 932e20d | 2009-07-28 00:41:45 +0200 | [diff] [blame] | 504 | |
| 505 | static __attribute__((constructor)) void on_dso_load_e1_inp(void) |
| 506 | { |
| 507 | tall_sigl_ctx = talloc_named_const(tall_bsc_ctx, 1, |
| 508 | "e1inp_sign_link"); |
| 509 | } |