ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
i did one mistake from my previous code. this code after modification that part basically that was like.
main(int argc, char *argv)
struct descry_pack *gp;
printf("Descry 1.0 [TCP port scan detection tool]\n");
flags = 0;
device = NULL;
capture_file = NULL;
while ((c = getopt(argc, argv,"ahf:i:vs]")) != EOF) <previous was "afi:vs:h and if use while ((c ==getopt(argc, argv,"ahf:i:vs]")) then no SEG PROB but not getting result behest of choice >
flags |= ALL_HOSTS;
capture_file = optarg; [in here i cant undestood from ur feedback feedback, pls do explain. i am not very good in c]
device = optarg;
flags |= DO_SYSLOG;
/* either read from a capture file OR run on the network */
if (capture_file && device)