Yi Huang | 401f796 | 2014-04-20 11:13:36 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | workdir=$1 | ||||
3 | c_ipaddr=$2 | ||||
Yi Huang | 53fa871 | 2014-06-10 20:14:26 -0700 | [diff] [blame^] | 4 | sudo nfd &> $workdir/logs/nfd.log & |
5 | sleep 3 | ||||
6 | nrd &> $workdir/logs/nrd.log & | ||||
Yi Huang | 401f796 | 2014-04-20 11:13:36 -0700 | [diff] [blame] | 7 | sleep 3 |
8 | faceid=$(nfdc create udp4://$c_ipaddr | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//') | ||||
9 | nfdc add-nexthop ndn:/localhop $faceid |