Skip to content

Commit

Permalink
Extend reply msg for creating new prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksheeep committed Jul 15, 2013
1 parent 1a35b02 commit d06b2d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions ccnl-ext-mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ int create_faces_stmt(int num_faces, int *faceid, int *facenext, int *faceprev,
len3 += mkStrBlob(stmt+len3, CCNL_DTAG_FACEFLAGS, CCN_TT_DTAG, str);

memset(str, 0, 100);
DEBUGMSG(99, "\n%d %d %d %d\n", facetype[it], AF_INET, AF_PACKET, AF_UNIX);
if(facetype[it] == AF_INET)
len3 += mkStrBlob(stmt+len3, CCNL_DTAG_IP, CCN_TT_DTAG, facepeer[it]);
else if(facetype[it] == AF_PACKET)
Expand Down Expand Up @@ -1344,9 +1343,8 @@ ccnl_mgmt_prefixreg(struct ccnl_relay_s *ccnl, struct ccnl_buf_s *orig,
// prepare FWDENTRY
len3 = mkHeader(fwdentry, CCNL_DTAG_PREFIX, CCN_TT_DTAG);
len3 += mkStrBlob(fwdentry+len3, CCN_DTAG_ACTION, CCN_TT_DTAG, cp);
len3 += mkHeader(fwdentry+len3, CCN_DTAG_NAME, CCN_TT_DTAG); // prefix
len3 += mkStrBlob(fwdentry+len3, CCN_DTAG_NAME, CCN_TT_DTAG, ccnl_prefix_to_path(p)); // prefix

fwdentry[len3++] = 0; // end-of-prefix
len3 += mkStrBlob(fwdentry+len3, CCN_DTAG_FACEID, CCN_TT_DTAG, faceid);
fwdentry[len3++] = 0; // end-of-fwdentry

Expand Down
4 changes: 4 additions & 0 deletions util/ccn-lite-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,10 @@ handle_ccn_debugreply_content(unsigned char **buf, int *len, int offset, char* t
print_offset(offset+4);
print_tag_content_with_tag(buf, len, "DEVNAME", stream);
break;
case CCN_DTAG_NAME:
print_offset(offset+4);
print_tag_content_with_tag(buf, len, "NAME", stream);
break;
default:
goto Bail;
}
Expand Down

0 comments on commit d06b2d8

Please sign in to comment.