• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "unicast" : "10.0.2.15",
3    "diagnosis" : "85",
4    "logging" :
5    {
6        "level" : "debug",
7        "console" : "true",
8        "file" : { "enable" : "true", "path" : "/home/someip/another-file.log" },
9        "dlt" : "false",
10        "version" : {
11            "enable" : "false",
12            "interval" : "15"
13        }
14    },
15    "watchdog" :
16    {
17        "enable" : "true",
18        "timeout" : "1234",
19        "allowed_missing_pongs" : "7"
20    },
21    "file-permissions" :
22    {
23        "permissions-shm" : "444",
24        "permissions-uds" : "222"
25    },
26    "supports_selective_broadcasts" :
27    {
28       "address" : "160.160.160.160"
29    },
30    "tracing" :
31    {
32        "enable" : "true",
33        "sd_enable" : "true",
34        "channels" :
35        [
36            {
37                "name" : "testname",
38                "id" : "testid"
39            },
40            {
41                "name" : "testname2",
42                "id" : "testid2"
43            },
44            {
45                "name" : "testname3",
46                "id" : "testid3"
47            },
48            {
49                "name" : "testname4",
50                "id" : "testid4"
51            }
52        ],
53        "filters" :
54        [
55            {
56               "channel" : "testname",
57               "services" : ["0x1111",2222],
58               "type" : "positive"
59            },
60            {
61               "channel" : "testname2",
62               "services" : ["0x3333",4444],
63               "type" : "negative"
64            }
65        ]
66    },
67    "applications" :
68    [
69        {
70            "name" : "my_application",
71            "id" : "0x7788",
72            "max_dispatchers" : "25",
73            "max_dispatch_time" : "1234",
74            "threads" : "12",
75            "request_debounce_time" : "5000",
76            "plugins" :
77            [
78                {
79                    "application_plugin" : "testlibraryname"
80                },
81                {
82                    "intentionally_wrong_plugin" : "wrong"
83                }
84            ]
85        },
86        {
87            "name" : "other_application",
88            "id" : "0x9933",
89            "threads" : "0",
90            "threads" : "256",
91            "request_debounce_time" : "10001"
92        }
93    ],
94    "servicegroups" :
95    [
96        {
97            "name" : "default",
98            "unicast" : "local",
99            "delays" :
100            {
101                "initial" : { "minimum" : "10", "maximum" : "100" },
102                "repetition-base" : "200",
103                "repetition-max" : "7",
104                "cyclic-offer" : "2132",
105                "cyclic-request" : "2001",
106                "ttl" : "5"
107            },
108            "services" :
109            [
110                {
111                    "service" : "0x1234",
112                    "instance" : "0x0022",
113                    "reliable" : { "port" : "30506", "enable-magic-cookies" : "true" },
114                    "unreliable" : "31000",
115                    "events" :
116                    [
117                        {
118                            "event" : "0x0778",
119                            "is_field" : "false"
120                        },
121                        {
122                            "event" : "0x779",
123                            "is_field" : "true"
124                        },
125                        {
126                            "event" : "0x77A",
127                            "is_field" : "false"
128                        }
129                    ],
130                    "eventgroups" :
131                    [
132                        {
133                            "eventgroup" : "0x4567",
134                            "multicast" : "225.226.227.228",
135                            "events" : [ "0x778", "0x779" ]
136                        },
137                        {
138                            "eventgroup" : "0x4569",
139                            "multicast" : "225.227.227.228",
140                            "events" : [ "0x779", "0x77A" ]
141                        },
142                        {
143                            "eventgroup" : "0x4569",
144                            "multicast" : "225.222.227.228",
145                            "events" : [ "0x778", "0x77A" ]
146                        }
147                    ]
148                },
149                {
150                    "service" : "0x1234",
151                    "instance" : "0x0023",
152                    "reliable" : "30503"
153                },
154                {
155                    "service" : "0x7809",
156                    "instance" : "0x1",
157                    "multicast" :
158                    {
159                        "address" : "224.212.244.225",
160                        "port" : "1234"
161                    },
162                    "eventgroups" :
163                    [
164                        {
165                            "eventgroup" : "0x1111",
166                            "threshold" : "8",
167                            "is_multicast" : "true",
168                            "events" : [ "0x778", "0x77A" ]
169                        }
170                    ]
171                }
172            ]
173        },
174        {
175            "name" : "extra",
176            "unicast" : "local",
177            "delays" :
178            {
179                "initial" : { "minimum" : "10", "maximum" : "100" },
180                "repetition-base" : "200",
181                "repetition-max" : "7",
182                "cyclic-offer" : "2132",
183                "cyclic-request" : "2001",
184                "ttl" : "5"
185            },
186            "services" :
187            [
188                {
189                    "service" : "0x2277",
190                    "instance" : "0x0022",
191                    "reliable" : { "port" : "30505" },
192                    "unreliable" : "31001"
193                },
194                {
195                    "service" : "0x2266",
196                    "instance" : "0x0022",
197                    "reliable" : "30505",
198                    "unreliable" : "30507"
199                },
200                {
201                    "service" : "0x3333",
202                    "instance" : "0x1"
203                },
204                {
205                    "service" : "0x3555",
206                    "instance" : "0x1",
207                    "protocol" : "other"
208                }
209            ]
210        },
211        {
212            "name" : "remote",
213            "unicast" : "10.0.2.23",
214            "services" :
215            [
216                {
217                    "service" : "0x4466",
218                    "instance" : "0x0321",
219                    "reliable" : "30506",
220                    "unreliable" : "30444"
221                }
222            ]
223        }
224    ],
225    "internal_services" :
226    [
227        {
228            "first" : "0xF100",
229            "last" : "0xF109"
230        },
231        {
232            "first" : {
233                "service" : "0xF300",
234                "instance" : "0x1"
235            },
236            "last" : {
237                "service" : "0xF300",
238                "instance" : "0x10"
239            }
240        }
241    ],
242    "clients" :
243    [
244        {
245            "reliable_remote_ports"   : { "first" : "30500", "last" : "30599" },
246            "unreliable_remote_ports" : { "first" : "30500", "last" : "30599" },
247            "reliable_client_ports"   : { "first" : "30491", "last" : "30499" },
248            "unreliable_client_ports" : { "first" : "30491", "last" : "30499" }
249        },
250        {
251            "reliable_remote_ports"   : { "first" : "31500", "last" : "31599" },
252            "unreliable_remote_ports" : { "first" : "31500", "last" : "31599" },
253            "reliable_client_ports"   : { "first" : "31491", "last" : "31499" },
254            "unreliable_client_ports" : { "first" : "31491", "last" : "31499" }
255        },
256        {
257            "reliable_remote_ports"   : { "first" : "32500", "last" : "32599" },
258            "unreliable_remote_ports" : { "first" : "32500", "last" : "32599" },
259            "reliable_client_ports"   : { "first" : "32491", "last" : "32499" },
260            "unreliable_client_ports" : { "first" : "32491", "last" : "32499" }
261        },
262        {
263            "service" : "0x8888",
264            "instance" : "0x1",
265            "unreliable" : [ "0x11", "0x10" ],
266            "reliable" : [ "0x11", "0x10" ]
267        },
268        {
269            "service" : "8888",
270            "instance" : "1",
271            "unreliable" : [ 40000, 40001 ],
272            "reliable" : [ 40000, 40001 ]
273        }
274    ],
275    "tcp-restart-aborts-max" : "15",
276    "tcp-connect-time-max" : "10000",
277    "max-payload-size-local" : "15000",
278    "max-payload-size-reliable" : "17000",
279    "buffer-shrink-threshold" : "11",
280    "payload-sizes":
281    [
282        {
283            "unicast":"10.10.10.10",
284            "ports":
285            [
286                {
287                    "port":"7777",
288                    "max-payload-size":"14999"
289                }
290            ]
291        },
292        {
293            "unicast":"10.10.10.11",
294            "ports":
295            [
296                {
297                    "port":"7778",
298                    "max-payload-size":"15001"
299                }
300            ]
301        }
302    ],
303    "security" :
304    {
305        "check_credentials" : "true",
306        "policies" :
307        [
308            {
309                "credentials" : { "uid" : "1000", "gid" : "1000" },
310                "allow" :
311                {
312                    "offers":
313                    [
314                        {
315                            "service"  : "0x1234",
316                            "instance" : "0x5678"
317                        },
318                        {
319                            "service"  : "0x1235",
320                            "instance" : "0x5678"
321                        },
322                        {
323                            "service" : "0x1236",
324                            "instances" : [{ "first" : "0x5675", "last" : "0x5677"}, "0x5678"]
325                        }
326                    ]
327                }
328            },
329            {
330                "credentials" : { "uid" : "2000", "gid" : "2000" },
331                "allow" :
332                {
333                    "requests":
334                    [
335                        {
336                            "service"  : "0x1234",
337                            "instances" : [
338                                {
339                                    "ids" : ["0x5678", { "first" : "0x5679", "last" : "0x5699"}],
340                                    "methods" : [ "0x0001", { "first" : "0x8001", "last" : "0x8006" }]
341                                }
342                            ]
343                        },
344                        {
345                            "service"  : "0x1237",
346                            "instances" : [
347                                {
348                                    "ids" : ["0x5678"],
349                                    "methods" : "any"
350                                }
351                            ]
352                        },
353                        {
354                            "service"  : "0x1238",
355                            "instances" : [
356                                {
357                                    "ids" : "any",
358                                    "methods" : ["0x0001"]
359                                }
360                            ]
361                        }
362                    ]
363                }
364            },
365            {
366                "credentials" : { "uid" : "4000", "gid" : "4000" },
367                "deny" :
368                {
369                    "requests":
370                    [
371                        {
372                            "service"  : "0x1234",
373                            "instances" : [
374                                {
375                                    "ids" : ["0x5678", { "first" : "0x5679", "last" : "0x5699"}],
376                                    "methods" : [ "0x0002", { "first" : "0x9001", "last" : "0x9006" }]
377                                }
378                            ]
379                        }
380                    ],
381                    "offers":
382                    [
383                        {
384                            "service"  : "0x1234",
385                            "instance" : "0x5678"
386                        },
387                        {
388                            "service"  : "0x1235",
389                            "instance" : "0x5678"
390                        },
391                        {
392                            "service" : "0x1236",
393                            "instances" : [{ "first" : "0x5675", "last" : "0x5677"}, "0x5678"]
394                        }
395                    ]
396                }
397            },
398            {
399                "credentials" : { "uid" : "5000", "gid" : "5000" },
400                "deny" :
401                {
402                }
403            },
404            {
405                "credentials" : { "uid" : "6000", "gid" : "6000" },
406                "allow" :
407                {
408                }
409            },
410            {
411                "credentials" : { "uid" : "7000", "gid" : "7000" },
412                "deny" :
413                {
414                    "requests":
415                    [
416                        {
417                            "service"  : "0x1234",
418                            "instances" : [
419                                {
420                                    "ids" : ["0x5678"],
421                                    "methods" : "any"
422                                }
423                            ]
424                        }
425                    ]
426                }
427            },
428            {
429                "credentials" : { "uid" : "8000", "gid" : "8000" },
430                "allow" :
431                {
432                    "requests":
433                    [
434                        {
435                            "service"  : "0x1234",
436                            "instances" : [
437                                {
438                                    "ids" : ["0x5678"],
439                                    "methods" : "any"
440                                }
441                            ]
442                        }
443                    ]
444                }
445            },
446            {
447                "credentials" : {
448                    "allow": [
449                        {
450                            "uid": [
451                                "9000"
452                            ],
453                            "gid": [
454                                "9000"
455                            ]
456                        }
457                    ]
458                },
459                "deny" :
460                {
461                }
462            }
463        ]
464    },
465    "security-update-whitelist" :
466    {
467        "uids" :
468        [
469            {"first" : "1000", "last" : "1008"},
470            {"first" : "1100", "last" : "1200"},
471            "2000",
472            "3000"
473        ],
474        "services" :
475        [
476            {"first" : "0x1234", "last" : "0x1238"},
477            {"first" : "0x2000", "last" : "0x2500"},
478            "0x7800"
479        ],
480        "check-whitelist" : "true"
481    },
482    "routing" : "my_application",
483    "routing-credentials" :
484    {
485        "uid" : "0x123",
486        "gid" : "0x456"
487    },
488    "service-discovery" :
489    {
490        "enable" : "true",
491        "protocol" : "udp",
492        "multicast" : "224.212.244.223",
493        "port" : "30666",
494        "offer_debounce_time" : "1000"
495    }
496}
497