From: Gerrit Renker <gerrit-VsoRXqaLlyfQzY9nttDBhA@public.gmane.org>
To: Michael Kerrisk <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [manpages]: First stab at a udplite(7) manpage
Date: Fri, 18 Jul 2008 12:09:23 +0100 [thread overview]
Message-ID: <20080718110923.GA12919@gerrit.erg.abdn.ac.uk> (raw)
In-Reply-To: <cfd18e0f0807160810p7d40e3bbpe150d695aca8c5ea-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Quoting Michael Kerrisk:
| Hi Gerrit,
|
| [...]
|
| >> Will submit a bug-fix to netdev and resubmit the updated manpage when this
| >> issue has been resolved.
|
| Where are we with udplite.7 then?
|
Not forgotten. Patch was submitted to netdev@vger on Monday 30th June, which
tried to handle the illegal values consistently, i.e. return EINVAL for
* values between 1..7 (illegal as per RFC 3828, 3.1);
* values greater than 65535 (since IPv6 jumbograms are not supported as
per RFC 3828, 3.5 and since the u16 value internally wraps around to 1..7).
The reply came back on Sat 5 July asking not to return EINVAL in the first case.
I haven't submitted a new patch so far since I was asking for input regarding
these cases. Maybe someone has a good suggestion regarding this?
I will either re-post this on netdev very soon or work on a new patch.
But can't submit manpage while the API is still not clear.
Copy of email posted to netdev on Mon 7 July:
> Can I just clarify illegal checksum values, as there are two different cases:
>
> (a) Values between 1..7
> The specification marks these as illegal in RFC 3828, sec. 3.1.
> The Linux UDP-Lite API allowed the user to get away with these illegal
> coverage values and documented this fact in udplite.txt. Since I am guilty
> of having written this file, I can add that I am not aware that the same
> behaviour is specified in another place -- other than RFC 3828.
>
> (b) Values greater than 0xFFFF
> The UDP-Lite checksum coverage field has the same u16 size as the
> UDP Length field but, in contrast, IPv6 jumbograms are not supported
> (RFC 3828, 3.5). This means that checksum coverage values greater than
> 65535 are undefined.
> Since the internal field is u16 and since the setsockopt() argument
> is `int', there is a need to protect against this range, not only
> since the wrap-around can again cause values in the range 1..7.
>
> Can you and/or other people please provide input what to do API-wise in
> the two above cases, since this information is needed for the manpage also?
>
> These options come to mind:
>
> (1) Keep behaviour for (a), return EINVAL for (b).
> (2) Keep behaviour for (a) and silently ignore values > 0xffff by
> replacing these with "full coverage" (0) - problematic if
> negative values were supplied.
> (3) Return EINVAL in both cases (as sketched by the patch).
> (4) Other alternative?
Regards
Gerrit
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-07-18 11:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080517155916.34622BD22@poczta.oswiecenia.net>
[not found] ` <200806150158.28488.tomasz@grobelny.oswiecenia.net>
[not found] ` <20080617111638.GA14409@gerrit.erg.abdn.ac.uk>
[not found] ` <200806172228.06801.tomasz@grobelny.oswiecenia.net>
[not found] ` <Pine.LNX.4.64.0806171344370.25191@shark.he.net>
[not found] ` <cfd18e0f0806180207x783d83d0j3d5e42987be24ea6@mail.gmail.com>
[not found] ` <20080618092707.GC23684@gerrit.erg.abdn.ac.uk>
[not found] ` <cfd18e0f0806180248g35bec32n7977c46cbcf4142@mail.gmail.com>
[not found] ` <cfd18e0f0806180248g35bec32n7977c46cbcf4142-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-06-24 13:36 ` [manpages]: First stab at a udplite(7) manpage Gerrit Renker
[not found] ` <20080624133625.GA16424-w6qhtmnlW2CgJ32XgR7WtTYRy0cijUJx@public.gmane.org>
2008-06-27 9:03 ` Michael Kerrisk
[not found] ` <cfd18e0f0806270203p4305cd2jae9cb8a79d7c33e9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-06-30 11:27 ` Gerrit Renker
[not found] ` <20080630112751.GB5040-w6qhtmnlW2CgJ32XgR7WtTYRy0cijUJx@public.gmane.org>
2008-06-30 13:03 ` Michael Kerrisk
[not found] ` <cfd18e0f0806300603g38cc4222r37996404390dfcbf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-16 15:10 ` Michael Kerrisk
[not found] ` <cfd18e0f0807160810p7d40e3bbpe150d695aca8c5ea-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-18 11:09 ` Gerrit Renker [this message]
[not found] ` <20080718110923.GA12919-w6qhtmnlW2CgJ32XgR7WtTYRy0cijUJx@public.gmane.org>
2008-07-23 15:40 ` [manpages]: Version 2 of " Gerrit Renker
[not found] ` <20080723154017.GA14244-w6qhtmnlW2CgJ32XgR7WtTYRy0cijUJx@public.gmane.org>
2008-08-07 13:34 ` Michael Kerrisk
[not found] ` <57217.148.187.160.35.1218193536.squirrel@148.187.160.35>
[not found] ` <57217.148.187.160.35.1218193536.squirrel-Uy33jJmzxvb8W20QDElj1A@public.gmane.org>
2008-08-08 16:59 ` Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080718110923.GA12919@gerrit.erg.abdn.ac.uk \
--to=gerrit-vsorxqallyfqzy9nttdbha@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox