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