Gitiles
Code Review
Sign In
gerrit.named-data.net
/
NFD
/
integration-tests
/
3d23067e8dc224d63da89e7d00e7887aa726a7c7
/
.
/
test_localhop
/
hostB.sh
blob: 03710e85e0cf2c42ae81f8f817e25989564ea88d [
file
] [
log
] [
blame
]
#!/bin/bash
workdir
=
$1
c_ipaddr
=
$2
sudo nfd
>
$workdir
/
logs
/
nfd
.
log
2
>&
1
&
sleep
3
faceid
=
$
(
nfdc create udp4
://
$c_ipaddr
|
grep
-
Po
'FaceId: .*?,'
|
sed
's/FaceId: //'
|
sed
's/,//'
)
nfdc add
-
nexthop ndn
:/
localhop $faceid