lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] lwIP and lwBT


From: Steve DeLaney
Subject: [lwip-users] lwIP and lwBT
Date: Wed, 20 Aug 2008 09:11:48 -0700

 

Hello there, I am new to this forum, but have previously completed projects
using uIP.

Now I am working to integrate lwIP and lwBT, starting with a native Linux
X86 reference build.
So far this has been trial and error coming up with a build 
tree and makefiles.  It looks like lwBT is supposed to be built under
netif/lwbt.
There are a few compiler issues to be resolved under gcc 4.1.2

Is there a stable linux build of lwIP plus lwBT, like in a contributed port,
that can be used as a starting point?

Thanks 
SD

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
address@hidden
Sent: Wednesday, August 20, 2008 4:15 AM
To: address@hidden
Subject: lwip-users Digest, Vol 60, Issue 19

Send lwip-users mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.nongnu.org/mailman/listinfo/lwip-users
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific than
"Re: Contents of lwip-users digest..."


Today's Topics:

   1. Re: LwIP and IAR Workbench (Akshat Bisht)
   2. Re: R: [lwip-users] httpd question (Marek Matej)
   3. Refusing an incoming connection on a listening port
      (Antonio de Angelis)
   4. Re: R: [lwip-users] httpd question (Jonathan Larmour)
   5. Re: Refusing an incoming connection on a listening port
      (Jonathan Larmour)
   6. Re: LwIP and IAR Workbench (Jonathan Larmour)
   7. Re: LwIP and IAR Workbench (Jonathan Larmour)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Aug 2008 09:57:35 +0530
From: "Akshat Bisht" <address@hidden>
Subject: Re: [lwip-users] LwIP and IAR Workbench
To: "Mailing list for lwIP users" <address@hidden>
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"

As i said earlier i removed the

 "__attribute__ ((__packed__))" from in-front of "PACK_STRUCT_STRUCT",

it compiles only after that, otherwise  i get an error - "Error[Pe079]:
expected a type specifier" . Can anybody shed light on what is happening and
does removing that part does?

Thanks
AB

On Wed, Aug 20, 2008 at 9:35 AM, Akshat Bisht <address@hidden>wrote:

> What all files might i need to add (apart from the netif/PPP folder) 
> to use PPP as a stand alone stack?
>
> AB
>
>
> On Wed, Aug 20, 2008 at 2:08 AM, Jonathan Larmour
<address@hidden>wrote:
>
>> Zeder, Stacy wrote:
>>
>>> Jifl...
>>>
>>> I looked for the files arch/bpstruct.h and arch/epstruct.h but don't 
>>> find them in the 1.3.0 distribution.  Obviously I'm missing something.
>>>
>>
>> Files in the arch directory are files that you need to write as part 
>> of your port.
>>
>>
>> Jifl
>> --
>> eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
>> Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
>> Registered in England and Wales: Reg No 4422071.
>> ------["The best things in life aren't things."]------
Opinions==mine
>>
>>
>> _______________________________________________
>> lwip-users mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/lwip-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.gnu.org/pipermail/lwip-users/attachments/20080820/9de7159a/atta
chment.html

------------------------------

Message: 2
Date: Wed, 20 Aug 2008 11:15:27 +0200
From: "Marek Matej" <address@hidden>
Subject: Re: R: [lwip-users] httpd question
To: "Mailing list for lwIP users" <address@hidden>
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1

Thank You Jifl, Your suggestion was very usefull. Problem resides in http
header, but it wasnt TAB character (probably it was only partial problem),
but content of header, especial first line containing "HTTP/1.0 200 OK
Content-type: text/html"
When I remove this line everything was ok. Newly generated page by NVU
editor works as well.
So it was more http protocol probem rather then lwip problem.
Thank You again Jifl !

Marek Matej

2008/8/19 Jonathan Larmour <address@hidden>:
> Marek Matej wrote:
>>
>> Ok, connection seems to be estabilished correctly in both cases.
>> Differences start after GET is received.
>> Attached are pcap files of FF and IE communication.
>> Please take a look, if You see some fundamental differences.
>
> The traffic and data sent appears to be the same. I think the 
> difference is how FF and IE respond to spurious data: there are bogus 
> hex 9 (tab) characters floating around in the data beside CRLFs. Look at
this bit:
>
> 13:57:42.966190 IP 192.168.5.250.http > 192.168.5.74.3479: P 
> 1:257(256) ack
> 257 win 1024
>        0x0000:  4500 0128 0007 0000 ff06 2e34 c0a8 05fa  E..(.......4....
>        0x0010:  c0a8 054a 0050 0d97 0000 19a1 f65d 074a  ...J.P.......].J
>        0x0020:  5018 0400 6740 0000 4854 5450 2f31 2e30  address@hidden/1.0
>        0x0030:  2032 3030 204f 4b0d 0a09 436f 6e74 656e  .200.OK...Conten
>        0x0040:  742d 7479 7065 3a20 7465 7874 2f68 746d  t-type:.text/htm
>        0x0050:  6c0d 0a09 0d0a 093c 6874 6d6c 3e20 093c  
> l......<html>..<
>
> See bytes 0x39, 0x53, 0x56, 0x5e.
>
> Most important I suspect is the one at 0x53 which should be an empty 
> CRLF to indicate the end of HTTP headers but is in fact TAB, CR, LF. I 
> suspect FF doesn't like that, and MSIE lazily accepts it.
>
> Jifl
> --
> eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
> Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
> Registered in England and Wales: Reg No 4422071.
> ------["The best things in life aren't things."]------      Opinions==mine
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>




------------------------------

Message: 3
Date: Wed, 20 Aug 2008 11:46:47 +0200
From: Antonio de Angelis <address@hidden>
Subject: [lwip-users] Refusing an incoming connection on a listening
        port
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

Hi all,

I am working with the Win32 port. My question is, when i create a listening
server on a specific port, how can I refuse an incoming connection on that
port? For example, if I want to refuse the connection from a specific remote
IP address, or if i want to refuse the connection in case that there are too
much active connections on the server. Thank you

Antonio de Angelis




------------------------------

Message: 4
Date: Wed, 20 Aug 2008 12:05:52 +0100
From: Jonathan Larmour <address@hidden>
Subject: Re: R: [lwip-users] httpd question
To: Mailing list for lwIP users <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Marek Matej wrote:
> Thank You Jifl, Your suggestion was very usefull. Problem resides in 
> http header, but it wasnt TAB character (probably it was only partial 
> problem), but content of header, especial first line containing 
> "HTTP/1.0 200 OK Content-type: text/html"
> When I remove this line everything was ok. Newly generated page by NVU 
> editor works as well.
> So it was more http protocol probem rather then lwip problem.

No, I think it really would be the tab characters. All you've done by
removing the header entirely is make firefox believe it's talking to an
ancient (HTTP 0.9 or earlier) web server. You are likely to run into
problems without the ability to indicate properly about web pages not found,
or be able to express content types.

Jifl

> 2008/8/19 Jonathan Larmour <address@hidden>:
> 
>>Marek Matej wrote:
>>
>>>Ok, connection seems to be estabilished correctly in both cases.
>>>Differences start after GET is received.
>>>Attached are pcap files of FF and IE communication.
>>>Please take a look, if You see some fundamental differences.
>>
>>The traffic and data sent appears to be the same. I think the 
>>difference is how FF and IE respond to spurious data: there are bogus 
>>hex 9 (tab) characters floating around in the data beside CRLFs. Look at
this bit:
>>
>>13:57:42.966190 IP 192.168.5.250.http > 192.168.5.74.3479: P 
>>1:257(256) ack
>>257 win 1024
>>       0x0000:  4500 0128 0007 0000 ff06 2e34 c0a8 05fa  E..(.......4....
>>       0x0010:  c0a8 054a 0050 0d97 0000 19a1 f65d 074a  ...J.P.......].J
>>       0x0020:  5018 0400 6740 0000 4854 5450 2f31 2e30  address@hidden/1.0
>>       0x0030:  2032 3030 204f 4b0d 0a09 436f 6e74 656e  .200.OK...Conten
>>       0x0040:  742d 7479 7065 3a20 7465 7874 2f68 746d  t-type:.text/htm
>>       0x0050:  6c0d 0a09 0d0a 093c 6874 6d6c 3e20 093c  
>>l......<html>..<
>>
>>See bytes 0x39, 0x53, 0x56, 0x5e.
>>
>>Most important I suspect is the one at 0x53 which should be an empty 
>>CRLF to indicate the end of HTTP headers but is in fact TAB, CR, LF. I 
>>suspect FF doesn't like that, and MSIE lazily accepts it.
>>
>>Jifl
>>--
>>eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
>>Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
>>Registered in England and Wales: Reg No 4422071.
>>------["The best things in life aren't things."]------      Opinions==mine
>>
>>
>>_______________________________________________
>>lwip-users mailing list
>>address@hidden
>>http://lists.nongnu.org/mailman/listinfo/lwip-users
>>
> 
> 
> 
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
> 


-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine




------------------------------

Message: 5
Date: Wed, 20 Aug 2008 12:12:07 +0100
From: Jonathan Larmour <address@hidden>
Subject: Re: [lwip-users] Refusing an incoming connection on a
        listening port
To: Mailing list for lwIP users <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

Antonio de Angelis wrote:
> Hi all,
> 
> I am working with the Win32 port. My question is, when i create a 
> listening server on a specific port, how can I refuse an incoming 
> connection on that port? For example, if I want to refuse the 
> connection from a specific remote IP address,

lwIP does not have the ability to selectively only establish certain TCP
connections and not others. So you won't be able to selectively have
"connection refused" sent to an unwanted remote IP.

But there's nothing stopping you immediately closing the connection as soon
as a connection was accepted, after you've looked at who the peer address
is. That's probably good enough.

> or if i want to refuse the connection in case that there are too much 
> active connections on the server. Thank you

That case is different - denying everybody, rather than denying selectively.
In which case you could temporarily remove your listening socket entirely.
However because lwIP doe snot have SOREUSEADDR, it's probably safer not to,
otherwise you might have difficulty recreating the socket reliably when
things are back to normal again. So again maybe it's still better to just
close unwanted connections after they're accepted.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine




------------------------------

Message: 6
Date: Wed, 20 Aug 2008 12:12:56 +0100
From: Jonathan Larmour <address@hidden>
Subject: Re: [lwip-users] LwIP and IAR Workbench
To: Mailing list for lwIP users <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Akshat Bisht wrote:
> As i said earlier i removed the
> 
>  "__attribute__ ((__packed__))" from in-front of "PACK_STRUCT_STRUCT",
> 
> it compiles only after that, otherwise  i get an error - "Error[Pe079]: 
> expected a type specifier" . Can anybody shed light on what is happening 
> and does removing that part does?

That is GNU compiler syntax, so for a different compiler it's correct to 
remove. But you need to provide some alternative means of structure packing.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine




------------------------------

Message: 7
Date: Wed, 20 Aug 2008 12:14:22 +0100
From: Jonathan Larmour <address@hidden>
Subject: Re: [lwip-users] LwIP and IAR Workbench
To: Mailing list for lwIP users <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Akshat Bisht wrote:
> What all files might i need to add (apart from the netif/PPP folder) to 
> use PPP as a stand alone stack?

I'm not sure what you mean by a stand-alone stack. I would expect you need 
to do a normal full port of lwIP. I don't think there are any short-cuts 
you can take. Look at the other ports and the wiki.

Jifl

> AB
> 
> On Wed, Aug 20, 2008 at 2:08 AM, Jonathan Larmour <address@hidden 
> <mailto:address@hidden>> wrote:
> 
>     Zeder, Stacy wrote:
> 
>         Jifl...
> 
>         I looked for the files arch/bpstruct.h and arch/epstruct.h but
don't
>         find them in the 1.3.0 distribution.  Obviously I'm missing
>         something.
> 
> 
>     Files in the arch directory are files that you need to write as part
>     of your port.
> 
> 
>     Jifl
>     -- 
>     eCosCentric Limited      http://www.eCosCentric.com/     The eCos
>     experts
>     Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223
>     245571
>     Registered in England and Wales: Reg No 4422071.
>     ------["The best things in life aren't things."]------    
>      Opinions==mine
> 
> 
>     _______________________________________________
>     lwip-users mailing list
>     address@hidden <mailto:address@hidden>
>     http://lists.nongnu.org/mailman/listinfo/lwip-users
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users


-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine




------------------------------

_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users

End of lwip-users Digest, Vol 60, Issue 19
******************************************






reply via email to

[Prev in Thread] Current Thread [Next in Thread]