Packets larger than MTU

View: New views
2 Messages — Rating Filter:   Alert me  

Packets larger than MTU

by Jakob Blomer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am trying to (mis)use the txt record to publish a global configuration
file together with a service, basically key value pairs that usually
reside in /etc/...

For publishing, I use (a slightly modified) avahi-publish utility and
add strings linewise to the txt record.  It seems that if the packet
size exceeds the MTU, the txt record is cut off.  I played around a
little and hard coded the MTU to a high value.

Though this seems to work, even with unmodified Avahi instances on
receiver side, I'm wondering if there is a more elegant way of
publishing big records.  In particular, being able to publish arbitrary
large records would be helpful.

Cheers,
Jakob
_______________________________________________
avahi mailing list
avahi@...
http://lists.freedesktop.org/mailman/listinfo/avahi

Re: Packets larger than MTU

by Thomas Delaet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the Sugarlabs project (sugar-presence-service), public keys are
published by with multiple key/value pairs.

For example
<key-part-1, first 100 bytes>
<key-part-2, second 100 bytes>
...

Kind Regards
--Thomas



On Wed, Oct 7, 2009 at 3:19 PM, Jakob Blomer <jakob.blomer@...> wrote:

> Hi,
>
> I am trying to (mis)use the txt record to publish a global configuration
> file together with a service, basically key value pairs that usually
> reside in /etc/...
>
> For publishing, I use (a slightly modified) avahi-publish utility and
> add strings linewise to the txt record.  It seems that if the packet
> size exceeds the MTU, the txt record is cut off.  I played around a
> little and hard coded the MTU to a high value.
>
> Though this seems to work, even with unmodified Avahi instances on
> receiver side, I'm wondering if there is a more elegant way of
> publishing big records.  In particular, being able to publish arbitrary
> large records would be helpful.
>
> Cheers,
> Jakob
> _______________________________________________
> avahi mailing list
> avahi@...
> http://lists.freedesktop.org/mailman/listinfo/avahi
>
_______________________________________________
avahi mailing list
avahi@...
http://lists.freedesktop.org/mailman/listinfo/avahi