[radvd-devel-l] ensure null-termination, enhance radvdump
Marko Myllynen
radvd-devel-l@litech.org
Thu, 3 Jan 2002 23:41:56 +0200 (EET)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1463811416-1080847533-1010094116=:24112
Content-Type: TEXT/PLAIN; charset=US-ASCII
On 2002-01-02 21:22, Pekka Savola wrote:
Hi!
> 1) with strncpy, ensure the strings are always NULL-terminated. Sigh, I
> so miss strlcpy.
Well, I have no opinion on strlcpy but apparently some do:
http://sources.redhat.com/ml/libc-alpha/2002-01/msg00001.html
Anyway, I thought it's finally time to update the INTRO.html, see the
attachment. Changes:
- use 64-bit prefix
- use EUI-64 in example
- minor cleanups
- use HTML 4.01 as format
However, in the bottom is the Lars' example script (which uses non-64-bit
prefixes). I'm not sure should we rewrote the example script or instruct
the reader to see other related material too before configuring his/her
network?
--
Marko Myllynen
---1463811416-1080847533-1010094116=:24112
Content-Type: TEXT/html; name="INTRO.html"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0201032341560.24112@ike.micsomintra>
Content-Description:
Content-Disposition: attachment; filename="INTRO.html"
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEv
L0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvUkVDLWh0bWw0MC9zdHJpY3Qu
ZHRkIj4NCjwhLS0gJElkOiBJTlRSTy5odG1sLHYgMS4yIDIwMDAvMTEvMjYg
MjI6MTc6MTAgbGYgRXhwICQgLS0+DQo8aHRtbCBsYW5nPSJlbiI+DQo8aGVh
ZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i
dGV4dC9odG1sOyBjaGFyc2V0PUlTTy04ODU5LTEiPg0KPHRpdGxlPlJBRFZE
IEludHJvZHVjdGlvbjwvdGl0bGU+DQo8L2hlYWQ+DQoNCjxib2R5Pg0KPGg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