Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
struct hdr_cmn {
enum dir_t { DOWN= -1, NONE= 0, UP= 1 };
packet_t ptype_; // packet type (see above)
int size_; // simulated packet size
int uid_; // unique id
int error_; // error flag
int errbitcnt_; // # of corrupted bits jahn
int fecsize_; int pid_;
int psn_;
int pts_;
double ts_; // timestamp: for q-delay measurement
int iface_; // receiving interface (label)
dir_t direction_; // direction: 0=none, 1=up, -1=down
// source routing
char src_rt_valid;
double ts_arr_; // Required by Marker of JOBS
459 struct hdr_cmn {
460 enum dir_t { DOWN= -1, NONE= 0, UP= 1 };
461 packet_t ptype_; // packet type (see above)
462 int size_; // simulated packet size
463 int uid_; // unique id
464 int error_; // error flag
465 int errbitcnt_; // # of corrupted bits jahn
466 int fecsize_;
467 int pid_;
468 int psn_;
469 int pts_;
470 double ts_; // timestamp: for q-delay measurement
471 int iface_; // receiving interface (label)
472 dir_t direction_; // direction: 0=none, 1=up, -1=down
473 // source routing
474 char src_rt_valid;
475 double ts_arr_; // Required by Marker of JOBS
I'm still getting a "pid error" :
Code:
sara/sara.cc: In member function `virtual void Sara::forwardData(Packet*, double)':
sara/sara.cc:2229: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2230: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2231: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2263: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2265: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2265: error: 'struct hdr_cmn' has no member named 'pid'
make: *** [sara/sara.o] Error 1
I have the same pb, but when I add this line in common/packet.h : inline int& pid() { return (pid_); }, the command make complete successfully. but I still have a pb when I try to run the script of sara run_sim.sh. this is the erreur:
./run_sim.sh: line 4: 2454 Erreur de segmentation ns manet.sara.FTP.tcl -rs 18
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.