Skip to content

Commit

Permalink
Add thunk detection
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksheeep committed Feb 6, 2014
1 parent 3a01548 commit cf82848
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ccnl-core.c
Expand Up @@ -888,7 +888,7 @@ ccnl_core_RX_i_or_c(struct ccnl_relay_s *relay, struct ccnl_face_s *from,
//NFN PLUGIN CALL
#ifdef CCNL_NFN
if(!memcmp(p->comp[p->compcnt-1], "NFN", 3)){
ccnl_nfn();
ccnl_nfn(relay, buf, p, from);
goto Done;
}
#endif /*CCNL_NFN*/
Expand Down
12 changes: 10 additions & 2 deletions ccnl-ext-nfn.c
Expand Up @@ -20,9 +20,17 @@
* 2014-02-06 <christopher.scherb@unibas.ch>created
*/

#include "ccnl-core.h"

int
ccnl_nfn(){
DEBUGMSG(49, "ccnl_nfn()\n");
ccnl_nfn(struct ccnl_relay_s *ccnl, struct ccnl_buf_s *orig,
struct ccnl_prefix_s *prefix, struct ccnl_face_s *from)
{
DEBUGMSG(49, "ccnl_nfn(%p, %p, %p, %p)\n", ccnl, orig, prefix, from);
DEBUGMSG(99, "NFN-engine\n");
if(!memcmp(prefix->comp[prefix->compcnt-2], "THUNK", 5))
{
DEBUGMSG(99, " Thunk-request\n");
}

}

0 comments on commit cf82848

Please sign in to comment.