Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 1 | /* Code to save the iptables state, in human readable-form. */ |
Harald Welte | 10a907f | 2002-08-07 09:07:41 +0000 | [diff] [blame] | 2 | /* (C) 1999 by Paul 'Rusty' Russell <rusty@rustcorp.com.au> and |
| 3 | * (C) 2000-2002 by Harald Welte <laforge@gnumonks.org> |
| 4 | * |
| 5 | * This code is distributed under the terms of GNU GPL v2 |
| 6 | * |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 7 | */ |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 8 | #include <getopt.h> |
| 9 | #include <sys/errno.h> |
| 10 | #include <stdio.h> |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 11 | #include <fcntl.h> |
| 12 | #include <stdlib.h> |
| 13 | #include <string.h> |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 14 | #include <dlfcn.h> |
| 15 | #include <time.h> |
Rusty Russell | b1f69be | 2000-08-27 07:42:54 +0000 | [diff] [blame] | 16 | #include "libiptc/libiptc.h" |
| 17 | #include "iptables.h" |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 18 | |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 19 | static int binary = 0, counters = 0; |
| 20 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 21 | static struct option options[] = { |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 22 | { "binary", 0, 0, 'b' }, |
| 23 | { "counters", 0, 0, 'c' }, |
| 24 | { "dump", 0, 0, 'd' }, |
| 25 | { "table", 1, 0, 't' }, |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 26 | { 0 } |
| 27 | }; |
| 28 | |
| 29 | #define IP_PARTS_NATIVE(n) \ |
| 30 | (unsigned int)((n)>>24)&0xFF, \ |
| 31 | (unsigned int)((n)>>16)&0xFF, \ |
| 32 | (unsigned int)((n)>>8)&0xFF, \ |
| 33 | (unsigned int)((n)&0xFF) |
| 34 | |
| 35 | #define IP_PARTS(n) IP_PARTS_NATIVE(ntohl(n)) |
| 36 | |
| 37 | /* This assumes that mask is contiguous, and byte-bounded. */ |
| 38 | static void |
| 39 | print_iface(char letter, const char *iface, const unsigned char *mask, |
| 40 | int invert) |
| 41 | { |
| 42 | unsigned int i; |
| 43 | |
| 44 | if (mask[0] == 0) |
| 45 | return; |
Rusty Russell | 7e53bf9 | 2000-03-20 07:03:28 +0000 | [diff] [blame] | 46 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 47 | printf("-%c %s", letter, invert ? "! " : ""); |
| 48 | |
| 49 | for (i = 0; i < IFNAMSIZ; i++) { |
| 50 | if (mask[i] != 0) { |
| 51 | if (iface[i] != '\0') |
| 52 | printf("%c", iface[i]); |
| 53 | } else { |
Harald Welte | 9535e68 | 2001-11-08 22:28:23 +0000 | [diff] [blame] | 54 | /* we can access iface[i-1] here, because |
| 55 | * a few lines above we make sure that mask[0] != 0 */ |
| 56 | if (iface[i-1] != '\0') |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 57 | printf("+"); |
| 58 | break; |
| 59 | } |
| 60 | } |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 61 | |
| 62 | printf(" "); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | /* These are hardcoded backups in iptables.c, so they are safe */ |
| 66 | struct pprot { |
| 67 | char *name; |
| 68 | u_int8_t num; |
| 69 | }; |
| 70 | |
András Kis-Szabó | 764316a | 2001-02-26 17:31:20 +0000 | [diff] [blame] | 71 | /* FIXME: why don't we use /etc/protocols ? */ |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 72 | static const struct pprot chain_protos[] = { |
| 73 | { "tcp", IPPROTO_TCP }, |
| 74 | { "udp", IPPROTO_UDP }, |
| 75 | { "icmp", IPPROTO_ICMP }, |
András Kis-Szabó | 764316a | 2001-02-26 17:31:20 +0000 | [diff] [blame] | 76 | { "esp", IPPROTO_ESP }, |
| 77 | { "ah", IPPROTO_AH }, |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | static void print_proto(u_int16_t proto, int invert) |
| 81 | { |
| 82 | if (proto) { |
| 83 | unsigned int i; |
| 84 | const char *invertstr = invert ? "! " : ""; |
| 85 | |
| 86 | for (i = 0; i < sizeof(chain_protos)/sizeof(struct pprot); i++) |
| 87 | if (chain_protos[i].num == proto) { |
| 88 | printf("-p %s%s ", |
| 89 | invertstr, chain_protos[i].name); |
| 90 | return; |
| 91 | } |
| 92 | |
| 93 | printf("-p %s%u ", invertstr, proto); |
| 94 | } |
| 95 | } |
| 96 | |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 97 | #if 0 |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 98 | static int non_zero(const void *ptr, size_t size) |
| 99 | { |
| 100 | unsigned int i; |
| 101 | |
| 102 | for (i = 0; i < size; i++) |
| 103 | if (((char *)ptr)[i]) |
| 104 | return 0; |
| 105 | |
| 106 | return 1; |
| 107 | } |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 108 | #endif |
| 109 | |
Harald Welte | 32db524 | 2001-01-23 22:46:22 +0000 | [diff] [blame] | 110 | static int print_match(const struct ipt_entry_match *e, |
| 111 | const struct ipt_ip *ip) |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 112 | { |
| 113 | struct iptables_match *match |
| 114 | = find_match(e->u.user.name, TRY_LOAD); |
| 115 | |
| 116 | if (match) { |
| 117 | printf("-m %s ", e->u.user.name); |
Harald Welte | e813779 | 2001-01-24 01:32:51 +0000 | [diff] [blame] | 118 | |
| 119 | /* some matches don't provide a save function */ |
| 120 | if (match->save) |
| 121 | match->save(ip, e); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 122 | } else { |
| 123 | if (e->u.match_size) { |
| 124 | fprintf(stderr, |
| 125 | "Can't find library for match `%s'\n", |
| 126 | e->u.user.name); |
| 127 | exit(1); |
| 128 | } |
| 129 | } |
| 130 | return 0; |
| 131 | } |
| 132 | |
| 133 | /* print a given ip including mask if neccessary */ |
| 134 | static void print_ip(char *prefix, u_int32_t ip, u_int32_t mask, int invert) |
| 135 | { |
| 136 | if (!mask && !ip) |
| 137 | return; |
| 138 | |
| 139 | printf("%s %s%u.%u.%u.%u", |
| 140 | prefix, |
| 141 | invert ? "! " : "", |
| 142 | IP_PARTS(ip)); |
| 143 | |
| 144 | if (mask != 0xffffffff) |
| 145 | printf("/%u.%u.%u.%u ", IP_PARTS(mask)); |
| 146 | else |
| 147 | printf(" "); |
| 148 | } |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 149 | |
| 150 | /* We want this to be readable, so only print out neccessary fields. |
| 151 | * Because that's the kind of world I want to live in. */ |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 152 | static void print_rule(const struct ipt_entry *e, |
Harald Welte | 9f7fa49 | 2001-03-15 15:12:02 +0000 | [diff] [blame] | 153 | iptc_handle_t *h, const char *chain, int counters) |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 154 | { |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 155 | struct ipt_entry_target *t; |
Harald Welte | ace8a01 | 2001-07-05 06:29:10 +0000 | [diff] [blame] | 156 | const char *target_name; |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 157 | |
| 158 | /* print counters */ |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 159 | if (counters) |
Harald Welte | d8e6563 | 2001-01-05 15:20:07 +0000 | [diff] [blame] | 160 | printf("[%llu:%llu] ", e->counters.pcnt, e->counters.bcnt); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 161 | |
Harald Welte | 9f7fa49 | 2001-03-15 15:12:02 +0000 | [diff] [blame] | 162 | /* print chain name */ |
| 163 | printf("-A %s ", chain); |
| 164 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 165 | /* Print IP part. */ |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 166 | print_ip("-s", e->ip.src.s_addr,e->ip.smsk.s_addr, |
| 167 | e->ip.invflags & IPT_INV_SRCIP); |
| 168 | |
| 169 | print_ip("-d", e->ip.dst.s_addr, e->ip.dmsk.s_addr, |
Harald Welte | fa7625a | 2001-01-26 03:28:18 +0000 | [diff] [blame] | 170 | e->ip.invflags & IPT_INV_DSTIP); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 171 | |
| 172 | print_iface('i', e->ip.iniface, e->ip.iniface_mask, |
| 173 | e->ip.invflags & IPT_INV_VIA_IN); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 174 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 175 | print_iface('o', e->ip.outiface, e->ip.outiface_mask, |
| 176 | e->ip.invflags & IPT_INV_VIA_OUT); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 177 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 178 | print_proto(e->ip.proto, e->ip.invflags & IPT_INV_PROTO); |
| 179 | |
| 180 | if (e->ip.flags & IPT_F_FRAG) |
| 181 | printf("%s-f ", |
| 182 | e->ip.invflags & IPT_INV_FRAG ? "! " : ""); |
| 183 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 184 | /* Print matchinfo part */ |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 185 | if (e->target_offset) { |
Harald Welte | 32db524 | 2001-01-23 22:46:22 +0000 | [diff] [blame] | 186 | IPT_MATCH_ITERATE(e, print_match, &e->ip); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 187 | } |
| 188 | |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 189 | /* Print target name */ |
Harald Welte | 6f83cf0 | 2001-05-24 23:22:28 +0000 | [diff] [blame] | 190 | target_name = iptc_get_target(e, h); |
| 191 | if (target_name && (*target_name != '\0')) |
| 192 | printf("-j %s ", target_name); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 193 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 194 | /* Print targinfo part */ |
Rusty Russell | 082ba02 | 2001-01-07 06:54:51 +0000 | [diff] [blame] | 195 | t = ipt_get_target((struct ipt_entry *)e); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 196 | if (t->u.user.name[0]) { |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 197 | struct iptables_target *target |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 198 | = find_target(t->u.user.name, TRY_LOAD); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 199 | |
Harald Welte | 31098ad | 2001-10-16 09:40:13 +0000 | [diff] [blame] | 200 | if (!target) { |
| 201 | fprintf(stderr, "Can't find library for target `%s'\n", |
| 202 | t->u.user.name); |
| 203 | exit(1); |
| 204 | } |
| 205 | |
| 206 | if (target->save) |
Harald Welte | 32db524 | 2001-01-23 22:46:22 +0000 | [diff] [blame] | 207 | target->save(&e->ip, t); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 208 | else { |
Harald Welte | 31098ad | 2001-10-16 09:40:13 +0000 | [diff] [blame] | 209 | /* If the target size is greater than ipt_entry_target |
| 210 | * there is something to be saved, we just don't know |
| 211 | * how to print it */ |
| 212 | if (t->u.target_size != |
| 213 | sizeof(struct ipt_entry_target)) { |
| 214 | fprintf(stderr, "Target `%s' is missing " |
| 215 | "save function\n", |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 216 | t->u.user.name); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 217 | exit(1); |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | printf("\n"); |
| 222 | } |
| 223 | |
| 224 | /* Debugging prototype. */ |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 225 | static int for_each_table(int (*func)(const char *tablename)) |
| 226 | { |
| 227 | int ret = 1; |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 228 | FILE *procfile = NULL; |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 229 | char tablename[IPT_TABLE_MAXNAMELEN+1]; |
| 230 | |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 231 | procfile = fopen("/proc/net/ip_tables_names", "r"); |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 232 | if (!procfile) |
| 233 | return 0; |
| 234 | |
| 235 | while (fgets(tablename, sizeof(tablename), procfile)) { |
| 236 | if (tablename[strlen(tablename) - 1] != '\n') |
| 237 | exit_error(OTHER_PROBLEM, |
| 238 | "Badly formed tablename `%s'\n", |
| 239 | tablename); |
| 240 | tablename[strlen(tablename) - 1] = '\0'; |
| 241 | ret &= func(tablename); |
| 242 | } |
| 243 | |
| 244 | return ret; |
| 245 | } |
| 246 | |
| 247 | |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 248 | static int do_output(const char *tablename) |
| 249 | { |
| 250 | iptc_handle_t h; |
| 251 | const char *chain = NULL; |
| 252 | |
| 253 | if (!tablename) |
| 254 | return for_each_table(&do_output); |
| 255 | |
| 256 | h = iptc_init(tablename); |
| 257 | if (!h) |
| 258 | exit_error(OTHER_PROBLEM, "Can't initialize: %s\n", |
| 259 | iptc_strerror(errno)); |
| 260 | |
| 261 | if (!binary) { |
| 262 | time_t now = time(NULL); |
| 263 | |
| 264 | printf("# Generated by iptables-save v%s on %s", |
Harald Welte | 80fe35d | 2002-05-29 13:08:15 +0000 | [diff] [blame] | 265 | IPTABLES_VERSION, ctime(&now)); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 266 | printf("*%s\n", tablename); |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 267 | |
Harald Welte | 9f7fa49 | 2001-03-15 15:12:02 +0000 | [diff] [blame] | 268 | /* Dump out chain names first, |
| 269 | * thereby preventing dependency conflicts */ |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 270 | for (chain = iptc_first_chain(&h); |
| 271 | chain; |
| 272 | chain = iptc_next_chain(&h)) { |
Harald Welte | 9f7fa49 | 2001-03-15 15:12:02 +0000 | [diff] [blame] | 273 | |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 274 | printf(":%s ", chain); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 275 | if (iptc_builtin(chain, h)) { |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 276 | struct ipt_counters count; |
| 277 | printf("%s ", |
| 278 | iptc_get_policy(chain, &count, &h)); |
Harald Welte | d8e6563 | 2001-01-05 15:20:07 +0000 | [diff] [blame] | 279 | printf("[%llu:%llu]\n", count.pcnt, count.bcnt); |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 280 | } else { |
Harald Welte | d8e6563 | 2001-01-05 15:20:07 +0000 | [diff] [blame] | 281 | printf("- [0:0]\n"); |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 282 | } |
Harald Welte | 9f7fa49 | 2001-03-15 15:12:02 +0000 | [diff] [blame] | 283 | } |
| 284 | |
| 285 | |
| 286 | for (chain = iptc_first_chain(&h); |
| 287 | chain; |
| 288 | chain = iptc_next_chain(&h)) { |
| 289 | const struct ipt_entry *e; |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 290 | |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 291 | /* Dump out rules */ |
| 292 | e = iptc_first_rule(chain, &h); |
| 293 | while(e) { |
Harald Welte | 9f7fa49 | 2001-03-15 15:12:02 +0000 | [diff] [blame] | 294 | print_rule(e, &h, chain, counters); |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 295 | e = iptc_next_rule(e, &h); |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 296 | } |
| 297 | } |
| 298 | |
| 299 | now = time(NULL); |
| 300 | printf("COMMIT\n"); |
| 301 | printf("# Completed on %s", ctime(&now)); |
| 302 | } else { |
| 303 | /* Binary, huh? OK. */ |
| 304 | exit_error(OTHER_PROBLEM, "Binary NYI\n"); |
| 305 | } |
| 306 | |
| 307 | return 1; |
| 308 | } |
| 309 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 310 | /* Format: |
| 311 | * :Chain name POLICY packets bytes |
| 312 | * rule |
| 313 | */ |
| 314 | int main(int argc, char *argv[]) |
| 315 | { |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 316 | const char *tablename = NULL; |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 317 | int c; |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 318 | |
| 319 | program_name = "iptables-save"; |
Harald Welte | 80fe35d | 2002-05-29 13:08:15 +0000 | [diff] [blame] | 320 | program_version = IPTABLES_VERSION; |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 321 | |
Harald Welte | 3efb6ea | 2001-08-06 18:50:21 +0000 | [diff] [blame] | 322 | #ifdef NO_SHARED_LIBS |
| 323 | init_extensions(); |
| 324 | #endif |
| 325 | |
Marc Boucher | 163ad78 | 2001-12-06 15:05:48 +0000 | [diff] [blame] | 326 | while ((c = getopt_long(argc, argv, "bcdt:", options, NULL)) != -1) { |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 327 | switch (c) { |
| 328 | case 'b': |
| 329 | binary = 1; |
| 330 | break; |
| 331 | |
| 332 | case 'c': |
| 333 | counters = 1; |
| 334 | break; |
| 335 | |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 336 | case 't': |
| 337 | /* Select specific table. */ |
| 338 | tablename = optarg; |
| 339 | break; |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 340 | case 'd': |
Harald Welte | ae1ff9f | 2000-12-01 14:26:20 +0000 | [diff] [blame] | 341 | do_output(tablename); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 342 | exit(0); |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | if (optind < argc) { |
| 347 | fprintf(stderr, "Unknown arguments found on commandline"); |
| 348 | exit(1); |
| 349 | } |
| 350 | |
Rusty Russell | a8f033e | 2000-07-30 01:43:01 +0000 | [diff] [blame] | 351 | return !do_output(tablename); |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 352 | } |