aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/domain_codec.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* domain_codec: optimize dname_dec and convert_dnameMartin Lewis2020-07-121-78/+79
| | | | | | | | | | | | | | | | | dname_dec: now iterates over the packet only once. convert_dname: remove redundant checks and code shrink. While testing I've noticed that some of the tests didn't compile properly, so I fixed them. function old new delta dname_dec 286 267 -19 dname_enc 166 143 -23 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-42) Total: -42 bytes Signed-off-by: Martin Lewis <martin.lewis.x84@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: comment out unused domain compression codeDenys Vlasenko2020-06-091-11/+16
| | | | | | | | | | function old new delta attach_option 411 406 -5 dname_enc 381 167 -214 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-219) Total: -219 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace and comment format fixes, no code changesDenys Vlasenko2017-10-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: fix a warning in debug codeDenys Vlasenko2016-03-111-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: fix a SEGV on malformed RFC1035-encoded domain nameDenys Vlasenko2016-03-101-4/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: trivial shrinkDenys Vlasenko2016-02-261-4/+3
| | | | | | | function old new delta dname_dec 337 332 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: cosmetic cleanups; one case of s/full_read/xread/Denys Vlasenko2010-03-261-4/+3
| | | | | | | function old new delta dumpleases_main 632 623 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: add testing bits to dns en/decoderDenys Vlasenko2010-03-241-2/+35
| | | | | | we had two bugs there at least, must have testing Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: we call DNS name encoder with NULL, this can SEGV. added a checkDenys Vlasenko2010-03-241-37/+43
| | | | | | | function old new delta dname_enc 418 415 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: fix DNS domanin codec bug: bad compression flag checksDenys Vlasenko2010-03-241-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: merge options.h into common.h, script.c into dhcpc.cDenys Vlasenko2010-03-221-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: dname_dec may return NULL, account for that caseDenys Vlasenko2009-07-031-34/+39
| | | | | | Other random cleanips included... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: tidying up CONFIG_xxx names (suggested by Rob)Denis Vlasenko2008-11-061-2/+2
|
* dhcp: add FAST_FUNC as appropriate. -160 bytes.Denis Vlasenko2008-09-261-2/+2
|
* clean up accumulated whitespace damageDenis Vlasenko2007-03-071-1/+1
|
* I *always* forget svn add :(Denis Vlasenko2007-02-271-0/+205