LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   error while implementing encryption in ns2 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/error-while-implementing-encryption-in-ns2-4175508597/)

vartika.shah 06-20-2014 04:00 AM

error while implementing encryption in ns2
 
i m implementing Xtea in ns2 and facing a error
invalid command name "Agent/xtea"
while executing
"Agent/xtea instproc init recv {from rtt mess originmess hash} {
$self instvar node_
puts "node [$node_ id] received packet from \
$from with trip-time..."
(file "xte.tcl" line 242)
can anyone help me in resolving this error?

dijetlo 06-22-2014 08:13 PM

Hey Vartika

Is that the complete error?
I'm not familiar with xtea encryption other than it's a kind of cyclical public/private pair hash, but in that kind of encryption scheme, to avoid replay attacks within the network, they use time-stamps to control the life cycle of encryption keys and this...
Quote:

$from with trip-time..."
(file "xte.tcl" line 242)
Looks like it may be trying to apply a trip time delta to a time-stamp nonce and failing.
Does xtea require you sync to a network time server or widely known external time server?

vartika.shah 06-28-2014 01:26 AM

thanx for rplying. this is the error
 
num_nodes is set 18
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "Agent/null"
while executing
"Agent/null create _o300 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/null"
invoked from within
"set p(1) [new Agent/null]"
(file "xte.tcl" line 76)


All times are GMT -5. The time now is 12:03 AM.