Project

General

Profile

Actions

Bug #1413

closed

nfdc can create face to same peer more than once

Added by Hila Ben Abraham about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Forwarding
Target version:
Start date:
03/26/2014
Due date:
% Done:

100%

Estimated time:

Description

I assume this is not the expected behavior, but please let me know if I'm missing anything here:

Summary:

  • nfdc create tcp4 face ==> new face #x.
  • nfdc create the same face ==> nfd-status presents multiple lines for the same uri, both attached to the same face #y != #x
  • nfdc destroy #y ==> nfd-status still presents the uri, but attach it to an invalid face #.

Sample run:

$ build/bin/nfdc create tcp4://192.168.1.2
Face creation succeeded: ControlParameters(FaceId: 8, Uri: tcp4://192.168.1.2, )

$ build/bin/nfd-status 

(partial output): 
faceid=8 uri=tcp4://192.168.1.2:6363 counters={in={0i 0d} out={0i 0d}}

$ build/bin/nfdc create tcp4://192.168.1.2
Face creation succeeded: ControlParameters(FaceId: 11, Uri: tcp4://192.168.1.2, )

$ build/bin/nfd-status 

(partial output): 
faceid=11 uri=tcp4://192.168.1.2:6363 counters={in={0i 0d} out={0i 0d}}
faceid=11 uri=tcp4://192.168.1.2:6363 counters={in={0i 0d} out={0i 0d}}

$ build/bin/nfdc destroy 11

Face destroy succeeded: ControlParameters(FaceId: 11, )

$ build/bin/nfd-status (partial output): 

faceid=18446744073709551615 uri=tcp4://192.168.1.2:6363 counters={in={0i 0d} out={0i 0d}}
Actions

Also available in: Atom PDF