Restructure code to support both md-type1 and md-type2 14/4814/19
authorHongjun Ni <[email protected]>
Sun, 22 Jan 2017 15:41:33 +0000 (23:41 +0800)
committerHongjun Ni <[email protected]>
Fri, 10 Mar 2017 15:22:32 +0000 (23:22 +0800)
commita865240bfc157e06699319e39251e3653ca205f5
tree7a85bd11ce162e2e2ad7220103b01ce207cf14ac
parent3f3ac79b962de5c1be97c6fa7a0cd815379b419f
Restructure code to support both md-type1 and md-type2

Basic support to both MD1 and MD2
MD1 configuration:
create nsh entry nsp 185 nsi 255 md-type 1 c1 1 c2 2 c3 3 c4 4 next-ethernet

MD2 configuration:
create nsh entry nsp 185 nsi 254 md-type 2 pot next-ethernet

Change-Id: Ide0fdc122d76cb6a55643a15febd985bd41981b0
Signed-off-by: Hongjun Ni <[email protected]>
Signed-off-by: Vengada <[email protected]>
nsh-plugin/Makefile.am
nsh-plugin/nsh/nsh.api
nsh-plugin/nsh/nsh.c
nsh-plugin/nsh/nsh.h
nsh-plugin/nsh/nsh_packet.h
nsh-plugin/nsh/nsh_test.c