OpenBSD CVS

CVS log for src/sbin/dhclient/Attic/convert.c


[BACK] Up to [local] / src / sbin / dhclient

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11, Sat Nov 1 16:56:47 2014 UTC (9 years, 7 months ago) by krw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED

And finally move convert.c to the attic.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 1 15:49:07 2014 UTC (9 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.9: +1 -12 lines
Diff to previous 1.9 (colored)

Try to ensure that the various lease timeouts are sane. i.e., renew
is before rebind is before expiry. Don't allow lease expiry to be
set past the end of time, but do allow lease lengths >INT32_MAX.

Tweak default times to be more reliably in-line with RFCs.

Nuke getULong(), the last function in convert.c, since its last
uses were in this now re-written code.

Suspicions aroused while diagnosing the expiry problem weerd@ found.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 29 15:28:51 2014 UTC (9 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.8: +1 -9 lines
Diff to previous 1.8 (colored)

Calling a function to htonl() a constant 32-bit value into a stack
variable and memcpy() that value into 4 bytes of malloc()'d space
seems roundabout.

Just memcpy() a four byte constant string into the malloc()'d space
as required and kill putULong(). No functional change.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 27 17:01:28 2014 UTC (9 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.7: +1 -19 lines
Diff to previous 1.7 (colored)

Nuke getLong(), getShort(), getUShort(). Two line functions (memcpy();
ntoh[ls]()) obscure rather than simplify things. Especially when
they are used only once. Just use the expansion.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 19 21:10:04 2014 UTC (10 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.6: +1 -10 lines
Diff to previous 1.6 (colored)

We don't have any (and I can't find elsewhere) signed 16 bit or
signed 8 bit dhcp option types. So nuke getShort() and all 's' and
'b' format support. While here use '%u'/'%lu' and not
'%d'/'%ld' to snprintf() unsigned values.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 19 10:06:09 2014 UTC (10 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.5: +1 -25 lines
Diff to previous 1.5 (colored)

Nuke unused functions putLong(), putUShort(), putShort().

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 7 11:35:59 2004 UTC (20 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.4: +14 -14 lines
Diff to previous 1.4 (colored)

more style fixes from Emil Mikulic <emikulic@dmr.ath.cx>
Thank you very much for this excellent work, it helps a lot.
binary unchanged.
I am still convinced dhclient can be made readable.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 4 12:16:56 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

$OpenBSD$, tedu

Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 4 01:50:22 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

more KNF

Revision 1.2 / (download) - annotate - [select for diffs], Wed Feb 4 01:18:26 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.1: +41 -40 lines
Diff to previous 1.1 (colored)

8579 lines of KNF, ANSO and zap-junk diff without the resulting binary
changing by a single byte.
partly from theo

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 18 01:26:20 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN

this is where dhclient will start surgery

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.