summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2019-01-16 11:26:56 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2019-01-16 12:10:15 +0100
commitdee6cbec255c3a8af7f79fd7e401d231a5cbbb93 (patch)
tree1e4487cdacaa69ac222c837c7fee26c8fdefec16 /src/ipcpd/normal/main.c
parent91e69340799866966eb9b7acc63f404424f23dee (diff)
downloadouroboros-dee6cbec255c3a8af7f79fd7e401d231a5cbbb93.tar.gz
ouroboros-dee6cbec255c3a8af7f79fd7e401d231a5cbbb93.zip
tools: Allow enrollment with destination IPCP
The irm enroll tool had a semantic to enroll with a layer name, but this is not checked. Now the enroll command will retrieve the correct layer name that the IPCP got from the actual enrollment procedure. The irm enroll now has two string parameters, a dst and a layer, which cannot be both NULL. If only dst is specified, the IPCP will enroll with that name; autobind will bind with the layer name. If only layer is specified, the IPCP will enroll with the layer name, and perform a check that the layer name retrieved from enrollment is indeed the layer name before possibly autobinding. If both dst and layer are specified, the IPCP will enroll with dst and perform a check that the enrollment was in the expected layer. Basically only specifying the layer name is a shorthand for dst == layer. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd/normal/main.c')
0 files changed, 0 insertions, 0 deletions