diff options
Diffstat (limited to 'networking/udhcp/domain_codec.c')
-rw-r--r-- | networking/udhcp/domain_codec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/udhcp/domain_codec.c b/networking/udhcp/domain_codec.c index f116964b7..2dd5347ae 100644 --- a/networking/udhcp/domain_codec.c +++ b/networking/udhcp/domain_codec.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #define NS_CMPRSFLGS 0xc0 /* name compression pointer flag */ | 24 | #define NS_CMPRSFLGS 0xc0 /* name compression pointer flag */ |
25 | 25 | ||
26 | 26 | ||
27 | /* expand a RFC1035-compressed list of domain names "cstr", of length "clen"; | 27 | /* Expand a RFC1035-compressed list of domain names "cstr", of length "clen"; |
28 | * returns a newly allocated string containing the space-separated domains, | 28 | * returns a newly allocated string containing the space-separated domains, |
29 | * prefixed with the contents of string pre, or NULL if an error occurs. | 29 | * prefixed with the contents of string pre, or NULL if an error occurs. |
30 | */ | 30 | */ |
@@ -149,8 +149,7 @@ static uint8_t *convert_dname(const char *src) | |||
149 | return res; | 149 | return res; |
150 | } | 150 | } |
151 | 151 | ||
152 | /* returns the offset within cstr at which dname can be found, or -1 | 152 | /* Returns the offset within cstr at which dname can be found, or -1 */ |
153 | */ | ||
154 | static int find_offset(const uint8_t *cstr, int clen, const uint8_t *dname) | 153 | static int find_offset(const uint8_t *cstr, int clen, const uint8_t *dname) |
155 | { | 154 | { |
156 | const uint8_t *c, *d; | 155 | const uint8_t *c, *d; |
@@ -188,7 +187,7 @@ static int find_offset(const uint8_t *cstr, int clen, const uint8_t *dname) | |||
188 | return -1; | 187 | return -1; |
189 | } | 188 | } |
190 | 189 | ||
191 | /* computes string to be appended to cstr so that src would be added to | 190 | /* Computes string to be appended to cstr so that src would be added to |
192 | * the compression (best case, it's a 2-byte pointer to some offset within | 191 | * the compression (best case, it's a 2-byte pointer to some offset within |
193 | * cstr; worst case, it's all of src, converted to <4>host<3>com<0> format). | 192 | * cstr; worst case, it's all of src, converted to <4>host<3>com<0> format). |
194 | * The computed string is returned directly; its length is returned via retlen; | 193 | * The computed string is returned directly; its length is returned via retlen; |