[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Mar 2004 ]

Re: [edlug] Socket programing problem...




-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

I suspect that you would have to send and recieve the ip packets raw as
the kernel udp code wont set the DF flag and probably would only deliver
the first packet to userland.

Paul Redmond wrote:
| On Thu, 2004-02-26 at 16:52, Jonathan Brown wrote:
|
| Datagrams just get trimmed down to size when they don't fit. There is no
| fragmentation.
|
| Jonathan Brown
| http://emergence.uk.net/
|
|
|> I think there is fragmentation:
|> http://www.cisco.com/warp/public/105/pmtud_ipfrag.html#first
|
|
|> but thanks anyway.
|> Cheers,
|> Paul.
|
|
|
|
| Paul Redmond wrote:
| | Hi,
| |
| | On a Mandrake 9.2 box, coding in c++ (socket.h) ...
| |
| | I'm trying to send a 2k datagram through a UDP broadcast socket. Now
| | only the first 1500 bytes go through, as expected because of the MTU.
| |
| | I was expecting a second datagram to follow ie the .5k+header fragment
| | but nada.
| |
| | I checked and there seems to be a DF flag (don't fragment) in the ip
| | header which I suspect is causing the problem. I haven't been able to
| | find out how to set it to allow fragmenting.
| |
| | Anyone have any experience with this ?
| |
| | Cheers,
| | Paul
| |
| | -
| | ----------------------------------------------------------------------
| | You can find the EdLUG mailing list FAQ list at:
| | http://www.edlug.org.uk/list_faq.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFARIkBmany35ffRscRApSYAJ4xf89oZgyesw1V5cNWkbBkOarSeQCeJE/c
x4OpXwdkuO92/g9FZlSa6YY=
=Ku0e
-----END PGP SIGNATURE-----
-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html



This archive is kept by wibble@morpheux.org.DONTSPAMME
homepage