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.json17
-rw-r--r--stacks/lwip_stack/configure/nStackConfig.json32
-rw-r--r--stacks/lwip_stack/configure/rd_config.json26
3 files changed, 75 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..c9c872b
--- /dev/null
+++ b/stacks/lwip_stack/configure/module_config.json
@@ -0,0 +1,17 @@
+{
+ "default_stack_name": "kernel",
+ "module_list": [
+ {
+ "stack_name": "kernel",
+ "libname": "./",
+ "deploytype": "1",
+ "stackid": "0",
+ },
+ {
+ "stack_name": "lwip",
+ "libname": "liblwip_dpdk.so",
+ "deploytype": "3",
+ "stackid": "1",
+ },
+ ]
+}
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..3109bcd
--- /dev/null
+++ b/stacks/lwip_stack/configure/rd_config.json
@@ -0,0 +1,26 @@
+{
+ "ip_route": [
+ {
+ "subnet": "192.168.1.1/24",
+ "stack_name": "lwip",
+ },
+ {
+ "subnet": "192.167.1.1/24",
+ "stack_name": "kernel",
+ },
+ {
+ "subnet": "192.166.1.1/24",
+ "stack_name": "kernel",
+ }
+ ],
+ "prot_route": [
+ {
+ "proto_type": "1",
+ "stack_name": "lwip",
+ },
+ {
+ "proto_type": "2",
+ "stack_name": "kernel",
+ }
+ ],
+}