Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 1 | /* (C) 2008 by Jan Luebbe <jluebbe@debian.org> |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 2 | * (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org> |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 3 | * (C) 2014 by Alexander Chemeris <Alexander.Chemeris@fairwaves.co> |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 4 | * All Rights Reserved |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
Harald Welte | 0e3e88e | 2011-01-01 15:25:50 +0100 | [diff] [blame] | 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 |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 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 General Public License for more details. |
| 15 | * |
Harald Welte | 0e3e88e | 2011-01-01 15:25:50 +0100 | [diff] [blame] | 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/>. |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 18 | * |
| 19 | */ |
| 20 | |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 21 | #include <openbsc/debug.h> |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 22 | #include <openbsc/db.h> |
Holger Hans Peter Freyther | ef3b59d | 2010-12-22 18:21:14 +0100 | [diff] [blame] | 23 | #include <openbsc/gsm_subscriber.h> |
Holger Hans Peter Freyther | fb95923 | 2014-03-07 19:08:03 +0100 | [diff] [blame] | 24 | #include <openbsc/gsm_04_11.h> |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 25 | |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 26 | #include <osmocom/core/application.h> |
| 27 | |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 28 | #include <stdio.h> |
| 29 | #include <string.h> |
Harald Welte | 5bc7c17 | 2009-05-21 07:23:02 +0000 | [diff] [blame] | 30 | #include <stdlib.h> |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 31 | #include <inttypes.h> |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 32 | |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 33 | static struct gsm_network dummy_net; |
Jacob Erlbeck | da8770b | 2014-12-03 09:28:24 +0100 | [diff] [blame] | 34 | static struct gsm_subscriber_group dummy_sgrp; |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 35 | |
| 36 | #define SUBSCR_PUT(sub) \ |
Jacob Erlbeck | da8770b | 2014-12-03 09:28:24 +0100 | [diff] [blame] | 37 | sub->group = &dummy_sgrp; \ |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 38 | subscr_put(sub); |
| 39 | |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 40 | #define COMPARE(original, copy) \ |
| 41 | if (original->id != copy->id) \ |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 42 | printf("Ids do not match in %s:%d %llu %llu\n", \ |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 43 | __FUNCTION__, __LINE__, original->id, copy->id); \ |
| 44 | if (original->lac != copy->lac) \ |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 45 | printf("LAC do not match in %s:%d %d %d\n", \ |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 46 | __FUNCTION__, __LINE__, original->lac, copy->lac); \ |
| 47 | if (original->authorized != copy->authorized) \ |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 48 | printf("Authorize do not match in %s:%d %d %d\n", \ |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 49 | __FUNCTION__, __LINE__, original->authorized, \ |
| 50 | copy->authorized); \ |
| 51 | if (strcmp(original->imsi, copy->imsi) != 0) \ |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 52 | printf("IMSIs do not match in %s:%d '%s' '%s'\n", \ |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 53 | __FUNCTION__, __LINE__, original->imsi, copy->imsi); \ |
Holger Hans Peter Freyther | cd8bacf | 2009-08-19 12:53:57 +0200 | [diff] [blame] | 54 | if (original->tmsi != copy->tmsi) \ |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 55 | printf("TMSIs do not match in %s:%d '%u' '%u'\n", \ |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 56 | __FUNCTION__, __LINE__, original->tmsi, copy->tmsi); \ |
| 57 | if (strcmp(original->name, copy->name) != 0) \ |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 58 | printf("names do not match in %s:%d '%s' '%s'\n", \ |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 59 | __FUNCTION__, __LINE__, original->name, copy->name); \ |
| 60 | if (strcmp(original->extension, copy->extension) != 0) \ |
Alexander Chemeris | 35f1290 | 2013-10-04 02:42:24 +0200 | [diff] [blame] | 61 | printf("Extensions do not match in %s:%d '%s' '%s'\n", \ |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 62 | __FUNCTION__, __LINE__, original->extension, copy->extension); \ |
| 63 | |
Holger Hans Peter Freyther | fb95923 | 2014-03-07 19:08:03 +0100 | [diff] [blame] | 64 | /* |
| 65 | * Create/Store a SMS and then try to load it. |
| 66 | */ |
| 67 | static void test_sms(void) |
| 68 | { |
| 69 | int rc; |
| 70 | struct gsm_sms *sms; |
| 71 | struct gsm_subscriber *subscr; |
| 72 | subscr = db_get_subscriber(GSM_SUBSCRIBER_IMSI, "9993245423445"); |
| 73 | OSMO_ASSERT(subscr); |
Jacob Erlbeck | da8770b | 2014-12-03 09:28:24 +0100 | [diff] [blame] | 74 | subscr->group = &dummy_sgrp; |
Holger Hans Peter Freyther | fb95923 | 2014-03-07 19:08:03 +0100 | [diff] [blame] | 75 | |
| 76 | sms = sms_alloc(); |
| 77 | sms->receiver = subscr_get(subscr); |
| 78 | |
| 79 | sms->src.ton = 0x23; |
| 80 | sms->src.npi = 0x24; |
| 81 | memcpy(sms->src.addr, "1234", strlen("1234") + 1); |
| 82 | |
| 83 | sms->dst.ton = 0x32; |
| 84 | sms->dst.npi = 0x42; |
| 85 | memcpy(sms->dst.addr, subscr->extension, sizeof(subscr->extension)); |
| 86 | |
| 87 | memcpy(sms->text, "Text123", strlen("Text123") + 1); |
| 88 | memcpy(sms->user_data, "UserData123", strlen("UserData123") + 1); |
| 89 | sms->user_data_len = strlen("UserData123"); |
| 90 | |
| 91 | /* random values */ |
| 92 | sms->reply_path_req = 1; |
| 93 | sms->status_rep_req = 2; |
| 94 | sms->ud_hdr_ind = 3; |
| 95 | sms->protocol_id = 4; |
| 96 | sms->data_coding_scheme = 5; |
| 97 | |
| 98 | rc = db_sms_store(sms); |
| 99 | sms_free(sms); |
| 100 | OSMO_ASSERT(rc == 0); |
| 101 | |
| 102 | /* now query */ |
| 103 | sms = db_sms_get_unsent_for_subscr(subscr); |
| 104 | OSMO_ASSERT(sms); |
| 105 | OSMO_ASSERT(sms->receiver == subscr); |
| 106 | OSMO_ASSERT(sms->reply_path_req == 1); |
| 107 | OSMO_ASSERT(sms->status_rep_req == 2); |
| 108 | OSMO_ASSERT(sms->ud_hdr_ind == 3); |
| 109 | OSMO_ASSERT(sms->protocol_id == 4); |
| 110 | OSMO_ASSERT(sms->data_coding_scheme == 5); |
| 111 | OSMO_ASSERT(sms->src.ton == 0x23); |
| 112 | OSMO_ASSERT(sms->src.npi == 0x24); |
| 113 | OSMO_ASSERT(sms->dst.ton == 0x32); |
| 114 | OSMO_ASSERT(sms->dst.npi == 0x42); |
| 115 | OSMO_ASSERT(strcmp((char *) sms->text, "Text123") == 0); |
| 116 | OSMO_ASSERT(sms->user_data_len == strlen("UserData123")); |
| 117 | OSMO_ASSERT(strcmp((char *) sms->user_data, "UserData123") == 0); |
| 118 | |
Holger Hans Peter Freyther | b37d284 | 2014-12-25 17:27:15 +0100 | [diff] [blame] | 119 | /* Mark the SMS as delivered */ |
| 120 | db_sms_mark_delivered(sms); |
| 121 | sms_free(sms); |
| 122 | |
| 123 | sms = db_sms_get_unsent_for_subscr(subscr); |
| 124 | OSMO_ASSERT(!sms); |
| 125 | |
Holger Hans Peter Freyther | fb95923 | 2014-03-07 19:08:03 +0100 | [diff] [blame] | 126 | subscr_put(subscr); |
| 127 | } |
| 128 | |
Holger Hans Peter Freyther | daf0eea | 2014-03-08 16:41:37 +0100 | [diff] [blame] | 129 | static void test_sms_migrate(void) |
| 130 | { |
| 131 | struct gsm_subscriber *rcv_subscr; |
| 132 | struct gsm_sms *sms; |
| 133 | static const uint8_t user_data_1[] = { |
| 134 | 0x41, 0xf1, 0xd8, 0x05, 0x22, 0x96, 0xcd, 0x2e, |
| 135 | 0x90, 0xf1, 0xfd, 0x06, 0x00 }; |
| 136 | static const uint8_t user_data_2[] = { |
| 137 | 0x41, 0xf1, 0xd8, 0x05, 0x22, 0x96, 0xcd, 0x2e, |
| 138 | 0xd0, 0xf1, 0xfd, 0x06, 0x00 }; |
| 139 | |
| 140 | rcv_subscr = db_get_subscriber(GSM_SUBSCRIBER_IMSI, "901010000001111"); |
Jacob Erlbeck | da8770b | 2014-12-03 09:28:24 +0100 | [diff] [blame] | 141 | rcv_subscr->group = &dummy_sgrp; |
Holger Hans Peter Freyther | daf0eea | 2014-03-08 16:41:37 +0100 | [diff] [blame] | 142 | |
| 143 | sms = db_sms_get(&dummy_net, 1); |
| 144 | OSMO_ASSERT(sms->id == 1); |
| 145 | OSMO_ASSERT(sms->receiver == rcv_subscr); |
| 146 | OSMO_ASSERT(strcmp(sms->text, "Abc. Def. Foo") == 0); |
| 147 | OSMO_ASSERT(sms->user_data_len == ARRAY_SIZE(user_data_1)); |
| 148 | OSMO_ASSERT(memcmp(sms->user_data, user_data_1, ARRAY_SIZE(user_data_1)) == 0); |
| 149 | sms_free(sms); |
| 150 | |
| 151 | sms = db_sms_get(&dummy_net, 2); |
| 152 | OSMO_ASSERT(sms->id == 2); |
| 153 | OSMO_ASSERT(sms->receiver == rcv_subscr); |
| 154 | OSMO_ASSERT(strcmp(sms->text, "Abc. Def. Goo") == 0); |
| 155 | OSMO_ASSERT(sms->user_data_len == ARRAY_SIZE(user_data_2)); |
| 156 | OSMO_ASSERT(memcmp(sms->user_data, user_data_2, ARRAY_SIZE(user_data_2)) == 0); |
| 157 | sms_free(sms); |
| 158 | |
| 159 | subscr_put(rcv_subscr); |
| 160 | } |
| 161 | |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 162 | int main() |
| 163 | { |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 164 | char scratch_str[256]; |
| 165 | |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 166 | printf("Testing subscriber database code.\n"); |
| 167 | osmo_init_logging(&log_info); |
Holger Hans Peter Freyther | de8b832 | 2014-05-01 07:53:42 +0200 | [diff] [blame] | 168 | log_set_print_filename(osmo_stderr_target, 0); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 169 | |
Jacob Erlbeck | da8770b | 2014-12-03 09:28:24 +0100 | [diff] [blame] | 170 | dummy_net.subscr_group = &dummy_sgrp; |
| 171 | dummy_sgrp.net = &dummy_net; |
| 172 | |
Holger Freyther | 761fdec | 2009-06-06 13:54:20 +0000 | [diff] [blame] | 173 | if (db_init("hlr.sqlite3")) { |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 174 | printf("DB: Failed to init database. Please check the option settings.\n"); |
| 175 | return 1; |
| 176 | } |
| 177 | printf("DB: Database initialized.\n"); |
| 178 | |
| 179 | if (db_prepare()) { |
| 180 | printf("DB: Failed to prepare database.\n"); |
| 181 | return 1; |
| 182 | } |
| 183 | printf("DB: Database prepared.\n"); |
| 184 | |
| 185 | struct gsm_subscriber *alice = NULL; |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 186 | struct gsm_subscriber *alice_db; |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 187 | |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 188 | char *alice_imsi = "3243245432345"; |
Holger Hans Peter Freyther | abe587d | 2013-10-04 08:35:11 +0200 | [diff] [blame] | 189 | alice = db_create_subscriber(alice_imsi); |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 190 | db_sync_subscriber(alice); |
Holger Hans Peter Freyther | abe587d | 2013-10-04 08:35:11 +0200 | [diff] [blame] | 191 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_IMSI, alice->imsi); |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 192 | COMPARE(alice, alice_db); |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 193 | SUBSCR_PUT(alice_db); |
| 194 | SUBSCR_PUT(alice); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 195 | |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 196 | alice_imsi = "3693245423445"; |
Holger Hans Peter Freyther | abe587d | 2013-10-04 08:35:11 +0200 | [diff] [blame] | 197 | alice = db_create_subscriber(alice_imsi); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 198 | db_subscriber_assoc_imei(alice, "1234567890"); |
| 199 | db_subscriber_alloc_tmsi(alice); |
| 200 | alice->lac=42; |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 201 | db_sync_subscriber(alice); |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 202 | /* Get by TMSI */ |
Vadim Yanitskiy | 2c07934 | 2016-03-16 21:14:03 +0600 | [diff] [blame^] | 203 | snprintf(scratch_str, sizeof(scratch_str), "0x%08x", alice->tmsi); |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 204 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_TMSI, scratch_str); |
| 205 | COMPARE(alice, alice_db); |
| 206 | SUBSCR_PUT(alice_db); |
| 207 | /* Get by IMSI */ |
Holger Hans Peter Freyther | abe587d | 2013-10-04 08:35:11 +0200 | [diff] [blame] | 208 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_IMSI, alice_imsi); |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 209 | COMPARE(alice, alice_db); |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 210 | SUBSCR_PUT(alice_db); |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 211 | /* Get by id */ |
| 212 | snprintf(scratch_str, sizeof(scratch_str), "%llu", alice->id); |
| 213 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_ID, scratch_str); |
| 214 | COMPARE(alice, alice_db); |
| 215 | SUBSCR_PUT(alice_db); |
| 216 | /* Get by extension */ |
| 217 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_EXTENSION, alice->extension); |
| 218 | COMPARE(alice, alice_db); |
| 219 | SUBSCR_PUT(alice_db); |
| 220 | SUBSCR_PUT(alice); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 221 | |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 222 | alice_imsi = "9993245423445"; |
Holger Hans Peter Freyther | abe587d | 2013-10-04 08:35:11 +0200 | [diff] [blame] | 223 | alice = db_create_subscriber(alice_imsi); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 224 | db_subscriber_alloc_tmsi(alice); |
| 225 | alice->lac=42; |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 226 | db_sync_subscriber(alice); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 227 | db_subscriber_assoc_imei(alice, "1234567890"); |
| 228 | db_subscriber_assoc_imei(alice, "6543560920"); |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 229 | /* Get by TMSI */ |
Vadim Yanitskiy | 2c07934 | 2016-03-16 21:14:03 +0600 | [diff] [blame^] | 230 | snprintf(scratch_str, sizeof(scratch_str), "0x%08x", alice->tmsi); |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 231 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_TMSI, scratch_str); |
| 232 | COMPARE(alice, alice_db); |
| 233 | SUBSCR_PUT(alice_db); |
| 234 | /* Get by IMSI */ |
Holger Hans Peter Freyther | abe587d | 2013-10-04 08:35:11 +0200 | [diff] [blame] | 235 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_IMSI, alice_imsi); |
Holger Freyther | aa82f0d | 2009-01-01 18:02:05 +0000 | [diff] [blame] | 236 | COMPARE(alice, alice_db); |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 237 | SUBSCR_PUT(alice_db); |
Alexander Chemeris | 3b338fd | 2014-03-08 18:48:49 +0100 | [diff] [blame] | 238 | /* Get by id */ |
| 239 | snprintf(scratch_str, sizeof(scratch_str), "%llu", alice->id); |
| 240 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_ID, scratch_str); |
| 241 | COMPARE(alice, alice_db); |
| 242 | SUBSCR_PUT(alice_db); |
| 243 | /* Get by extension */ |
| 244 | alice_db = db_get_subscriber(GSM_SUBSCRIBER_EXTENSION, alice->extension); |
| 245 | COMPARE(alice, alice_db); |
| 246 | SUBSCR_PUT(alice_db); |
| 247 | SUBSCR_PUT(alice); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 248 | |
Holger Hans Peter Freyther | fb95923 | 2014-03-07 19:08:03 +0100 | [diff] [blame] | 249 | test_sms(); |
Holger Hans Peter Freyther | daf0eea | 2014-03-08 16:41:37 +0100 | [diff] [blame] | 250 | test_sms_migrate(); |
Holger Hans Peter Freyther | fb95923 | 2014-03-07 19:08:03 +0100 | [diff] [blame] | 251 | |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 252 | db_fini(); |
| 253 | |
Holger Hans Peter Freyther | 99f47fb | 2012-01-06 14:27:08 +0100 | [diff] [blame] | 254 | printf("Done\n"); |
Holger Freyther | c1e1192 | 2008-12-31 23:25:05 +0000 | [diff] [blame] | 255 | return 0; |
| 256 | } |
Holger Freyther | 4b8eadf | 2009-04-12 05:37:07 +0000 | [diff] [blame] | 257 | |
| 258 | /* stubs */ |
Holger Hans Peter Freyther | 0fe0c8c | 2010-12-29 11:07:22 +0100 | [diff] [blame] | 259 | void vty_out() {} |