taskEtherDogs - Tasks: task #12400, Modify the main function to get...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

task #12400: Modify the main function to get parameters from the command line.

Submitted by:  Jose Maria Micoli <crashdump>
Submitted on:  Wed Jan 9 10:12:38 2013  
 
Should Start On: Wed Jan 9 00:00:00 2013Should be Finished on: Mon Jan 21 00:00:00 2013
Category: NonePriority: 5 - Normal
Status: In ProgressPrivacy: Public
Percent Complete: 80%Assigned to: Shanka Perera <shankap>
Open/Closed: OpenEffort: 5.00

Thu Jan 10 11:23:13 2013, comment #2:

Shankap

I have made the inclusion of the parameter "-h" to invoke the module help.

I have taken the policy of pre processing #include <string.h> in the file main.c because she is already on file common.h. Includes all libraries are taking over the file common.h to centralize everything so a single place so he could climb easily our software.

I will post here when the other modules were made that needed your help to include arguments like "-n" <number of packets> "p" <protocol filter> but wait for now.

Jose Maria Micoli <crashdump>
Project Administrator
Thu Jan 10 09:49:36 2013, comment #1:

Very good Shankap! good job, I liked the "-d" parameter to select the network interface <"device"> now I will create a help module that will be accessed by the parameter "-h" and subsequently we create a packet filter module type ex. "-p" <"protocol">.

Just one question: why use the "goto"? the goto command is against the rules of structured programming. We could try to use another command? only use the goto if indispensable.

Again good job I congratulate Shankap.

thank you

Jose Maria Micoli

Jose Maria Micoli <crashdump>
Project Administrator
Wed Jan 9 10:12:38 2013, original submission:

This will be an easy task for any C programmer that already the modification will not be abrupt however this task is very important for the evolution of the project.

Any questions please email me.

Jose Maria Micoli

Jose Maria Micoli <crashdump>
Project Administrator

 

Attached Files
file #27229:  main.c added by shankap (3kB - text/x-csrc - I started with the easiest task. I'm not sure what you expect to pass as parameters, so I modified the main program to get the device name as parameter. ex: etherdog -d eth0)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by deepankar (Updated the item)
  • -unavailable- added by shankap (Updated the item)
  • -unavailable- added by crashdump (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Jan 14 01:31:22 2013deepankarPercent Complete60%=>80%
    Thu Jan 10 11:23:13 2013crashdumpPercent Complete40%=>60%
    Thu Jan 10 09:32:43 2013crashdumpStatusNone=>In Progress
      Percent Complete0%=>40%
      Assigned toNone=>shankap
    Wed Jan 9 17:15:39 2013shankapAttached File-=>Added main.c, #27229

    Back to the top


    Powered by Savane 3.1-cleanup