summaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/configure
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/lwip_stack/configure')
-rw-r--r--stacks/lwip_stack/configure/module_config.json26
-rw-r--r--stacks/lwip_stack/configure/nStackConfig.json32
-rw-r--r--stacks/lwip_stack/configure/rd_config.json24
3 files changed, 82 insertions, 0 deletions
diff --git a/stacks/lwip_stack/configure/module_config.json b/stacks/lwip_stack/configure/module_config.json
new file mode 100644
index 0000000..33767cb
--- /dev/null
+++ b/stacks/lwip_stack/configure/module_config.json
@@ -0,0 +1,26 @@
+{
+ "default_stack_name": "kernel", /*when rd can't be find maybe choose the defualt one*/
+ "module_list": [
+ {
+ "stack_name": "kernel", /*stack name*/
+ "function_name": "kernel_stack_register",
+ "libname": "./", /*library name, if loadtype is static, this maybe
+ null, else must give a library name*/
+ "deploytype": "1", /*deploy model type:model type1, model type2,
+ model type3. Indicating single or multi process
+ deployment. Used during shared memory initialization.*/
+ "stackid": "0", /*stack id, this must be ordered and not be repeated*/
+ },
+ {
+ "stack_name": "lwip", /*stack name*/
+ "function_name": "lwip_stack_register",
+ "libname": "liblwip_dpdk.so", /*library name, if loadtype is static, this maybe
+ null, else must give a library name*/
+ "deploytype": "3", /*deploy model type:model type1, model type2,
+ model type3. Indicating single or multi process
+ deployment. Used during shared memory initialization.*/
+ "stackid": "1", /*stack id, this must be ordered and not be repeated*/
+ },
+
+ ]
+}
diff --git a/stacks/lwip_stack/configure/nStackConfig.json b/stacks/lwip_stack/configure/nStackConfig.json
new file mode 100644
index 0000000..3cc54c5
--- /dev/null
+++ b/stacks/lwip_stack/configure/nStackConfig.json
@@ -0,0 +1,32 @@
+{
+"cfg_seg_socket": [
+{
+ "socket_num": 8192,
+ "arp_stale_time": 300,
+ "arp_bc_retrans_num": 5
+}
+],
+"cfg_seg_log": [
+{
+ "run_log_size": 50,
+ "run_log_count": 10,
+ "mon_log_size": 10,
+ "mon_log_count": 10
+}
+],
+"cfg_seg_thread_pri": [
+{
+ "comment":"0:SCHED_OTHER, 1:SCHED_FIFO, 2:SCHED_RR",
+ "sched_policy": 0,
+ "thread_pri": 0
+}
+],
+"cfg_seg_path": [
+{
+ "stackpool_log_path": "/var/log/nStack",
+ "master_log_path": "/var/log/nStack",
+ "nstack_log_path": "/var/log/nStack",
+ "dpdk_log_path": "/var/log/nstack-dpdk"
+}
+]
+}
diff --git a/stacks/lwip_stack/configure/rd_config.json b/stacks/lwip_stack/configure/rd_config.json
new file mode 100644
index 0000000..14c26b8
--- /dev/null
+++ b/stacks/lwip_stack/configure/rd_config.json
@@ -0,0 +1,24 @@
+{
+ "modules": [
+ {
+ "name": "kernel",
+ "ip_route": [
+ "127.0.0.1/24"
+ ],
+ "type_route": [
+ ],
+ "proto_route": [
+ ]
+ },
+ {
+ "name": "lwip",
+ "ip_route": [
+ "192.168.1.1/24"
+ ],
+ "type_route": [
+ ],
+ "proto_route": [
+ ]
+ },
+ ]
+}