buglwIP - A Lightweight TCP/IP stack - Bugs: bug #43951, minimal project "echop"...

 
 

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

bug #43951: minimal project "echop" not working on the specified ip

Submitter:  salih ahi <legyndir>
Submitted:  Thu 08 Jan 2015 09:29:33 AM UTC
   
 
Category:  Contrib Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Thu 08 Jan 2015 10:42:54 AM UTC, comment #3: 

Reverted 5b81b934bff7350d3c8d5a607ca64b420b78cdc5. Reworked on d5ce4a0cd63b36627d572cb8c978ca88d695a107. Fixed.

Sylvain Rochet <gradator>
Group Member
Thu 08 Jan 2015 09:46:54 AM UTC, comment #2: 

What confuses me is that echop opens an interface and calls tcp_listen() but connections are refused on that interface, while simhost, for example, starts on 192.168.0.2 and accepts ping requests on the same ip.

When I check the route table while running echop, it seems to send the corresponding packets to tap0, as expected. I couldn't get why a host side tap configuration may be necessary


salih ahi <legyndir>
Thu 08 Jan 2015 09:37:45 AM UTC, comment #1: 

I don't think setting the host-side tap configuration is the job of the echop binary.

You may, for example, want to bridge the tap interface without setting IP configuration.

What would be ok is a patch for a configurable hook-script path called to setup the host-side interface just after the tap interface is created.

Sylvain

Sylvain Rochet <gradator>
Group Member
Thu 08 Jan 2015 09:29:33 AM UTC, original submission:  

When I compile and run "contrib-1.4.1/ports/unix/proj/minimal" the default message indicates:
Host at 192.168.0.2 mask 255.255.255.0 gateway 192.168.0.1

But if I try to connect with "nc -C 192.168.0.2 7" I get "No route to host" error.

If add this line to low_level_init() before executing system(buf), then I can connect to 192.168.0.2 and the program echoes my commands, as intended

  sprintf(buf, "/sbin/ifconfig tap0 inet 192.168.0.8 netmask 255.255.255.0");

Obviously, this is not the solution. Just to show that the program does not respond to the IP connections it was supposed to.

mintapif.c is attached.


salih ahi <legyndir>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #32783:  mintapif.c added by legyndir (11KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gradator (Posted a comment)
  • -email is unavailable- added by legyndir (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-08 gradator Severity1 - Wish 3 - Normal
        Item GroupFeature Request Faulty Behaviour
        StatusNone Fixed
        Open/ClosedOpen Closed
    2015-01-08 gradator Severity3 - Normal 1 - Wish
        Item GroupFaulty Behaviour Feature Request
    2015-01-08 legyndir Attached File- Added mintapif.c, #32783

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code