Create dtn.c

implementation of DTN