sdhcp, branch HEAD
simple dhcp client
8455fd2d090bd9b227340c30c92c6aa13302c91a
2018-11-22T12:13:48Z
2018-11-22T12:13:48Z
Statify some variables
sin
sin@2f30.org
commit 8455fd2d090bd9b227340c30c92c6aa13302c91a
parent 9cd8b81473192dc0bc5476fba506d0ee995f6494
Author: sin <sin@2f30.org>
Date: Thu, 22 Nov 2018 12:13:48 +0000
Statify some variables
9cd8b81473192dc0bc5476fba506d0ee995f6494
2018-11-15T02:40:41Z
2018-11-20T08:31:17Z
Add hostname option to DHCP messages
Michael Forney
mforney@mforney.org
commit 9cd8b81473192dc0bc5476fba506d0ee995f6494
parent fafdfd63ff3595a27718bd3a44a35488f1282d33
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:41 -0800
Add hostname option to DHCP messages
fafdfd63ff3595a27718bd3a44a35488f1282d33
2018-11-15T02:40:40Z
2018-11-20T08:31:15Z
Use parameters from DHCPACK, not DHCPOFFER
Michael Forney
mforney@mforney.org
commit fafdfd63ff3595a27718bd3a44a35488f1282d33
parent 5506c81d9930e68cfb29960a4211454fd46262b9
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:40 -0800
Use parameters from DHCPACK, not DHCPOFFER
Also, don't bother sending back lease time to server in DHCPREQUEST.
5506c81d9930e68cfb29960a4211454fd46262b9
2018-11-15T02:40:39Z
2018-11-20T08:31:04Z
Resend DHCPREQUEST in case server does not respond
Michael Forney
mforney@mforney.org
commit 5506c81d9930e68cfb29960a4211454fd46262b9
parent 80bdf55532fadbf9398ce7e12fe494282f45f394
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:39 -0800
Resend DHCPREQUEST in case server does not respond
The delays were chosen to follow section 4.1 of RFC 2131.
80bdf55532fadbf9398ce7e12fe494282f45f394
2018-11-15T02:40:38Z
2018-11-20T08:30:58Z
Use timerfd in order to correctly handle various renewal and rebinding timeouts
Michael Forney
mforney@mforney.org
commit 80bdf55532fadbf9398ce7e12fe494282f45f394
parent a5616cecc1506731f1ca20ae0d31325f9b0526b4
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:38 -0800
Use timerfd in order to correctly handle various renewal and rebinding timeouts
a5616cecc1506731f1ca20ae0d31325f9b0526b4
2018-11-15T02:40:37Z
2018-11-20T08:30:58Z
Handle DHCPnak in REQUESTING state
Michael Forney
mforney@mforney.org
commit a5616cecc1506731f1ca20ae0d31325f9b0526b4
parent a48cdb438ed91b4fabaf741b9c011ba3d7984883
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:37 -0800
Handle DHCPnak in REQUESTING state
a48cdb438ed91b4fabaf741b9c011ba3d7984883
2018-11-15T02:40:36Z
2018-11-20T08:30:58Z
Move acceptlease and DHCPrequest to the appropriate state section
Michael Forney
mforney@mforney.org
commit a48cdb438ed91b4fabaf741b9c011ba3d7984883
parent f397bb3ea1de20c1cac1baf2e091f2ec8c79ec82
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:36 -0800
Move acceptlease and DHCPrequest to the appropriate state section
f397bb3ea1de20c1cac1baf2e091f2ec8c79ec82
2018-11-15T02:40:35Z
2018-11-20T08:30:58Z
Ignore unexpected DHCP messages
Michael Forney
mforney@mforney.org
commit f397bb3ea1de20c1cac1baf2e091f2ec8c79ec82
parent 219b8fe1c38097c37de89b0c8c2aa771ebe1daff
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:35 -0800
Ignore unexpected DHCP messages
219b8fe1c38097c37de89b0c8c2aa771ebe1daff
2018-11-15T02:40:34Z
2018-11-20T08:30:58Z
Use _DEFAULT_SOURCE instead of _BSD_SOURCE
Michael Forney
mforney@mforney.org
commit 219b8fe1c38097c37de89b0c8c2aa771ebe1daff
parent a8cbeb12e4df31ea50f5effd25eacfe8145c538e
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:34 -0800
Use _DEFAULT_SOURCE instead of _BSD_SOURCE
a8cbeb12e4df31ea50f5effd25eacfe8145c538e
2018-11-15T02:40:33Z
2018-11-20T08:30:58Z
Convert cid to char * for strlcpy
Michael Forney
mforney@mforney.org
commit a8cbeb12e4df31ea50f5effd25eacfe8145c538e
parent cbf0f211645a92ada263ddff97e08038c9d19299
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:33 -0800
Convert cid to char * for strlcpy
cbf0f211645a92ada263ddff97e08038c9d19299
2018-11-15T02:40:32Z
2018-11-20T08:30:58Z
Other minor style fixes
Michael Forney
mforney@mforney.org
commit cbf0f211645a92ada263ddff97e08038c9d19299
parent 4871e8efcfcd14dd626d44067eb14fc0ef3ee880
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:32 -0800
Other minor style fixes
4871e8efcfcd14dd626d44067eb14fc0ef3ee880
2018-11-15T02:40:31Z
2018-11-20T08:30:58Z
Brace style in switch statements
Michael Forney
mforney@mforney.org
commit 4871e8efcfcd14dd626d44067eb14fc0ef3ee880
parent 88edf2a3924b19d804b5783540fb272bc8a52c8f
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:31 -0800
Brace style in switch statements
88edf2a3924b19d804b5783540fb272bc8a52c8f
2018-11-15T02:40:30Z
2018-11-20T08:30:58Z
Parenthesize sizeof expressions
Michael Forney
mforney@mforney.org
commit 88edf2a3924b19d804b5783540fb272bc8a52c8f
parent 90b18e7b1cfcf7ab0799b917d7c4d1318ed29f57
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 14 Nov 2018 18:40:30 -0800
Parenthesize sizeof expressions
90b18e7b1cfcf7ab0799b917d7c4d1318ed29f57
2017-02-09T21:42:27Z
2017-02-09T22:20:01Z
Fix sent lease time on 64-bit systems
Michael Forney
mforney@mforney.org
commit 90b18e7b1cfcf7ab0799b917d7c4d1318ed29f57
parent 450beea4e88ab7f80206741f18f0d5539ae60b44
Author: Michael Forney <mforney@mforney.org>
Date: Thu, 9 Feb 2017 13:42:27 -0800
Fix sent lease time on 64-bit systems
The lease time option is defined in RFC 1533 to be a 32-bit unsigned
integer. However, on 64-bit systems, unsigned long long is 64 bits, so
hnput writes 8 bytes, the first 4 of which are 0.
dnsmasq (and possibly other DHCP servers) only looks at the first 4
bytes in the option, so interprets a lease time of 0. It then sets the
lease time to a minimum of 120 seconds. This causes the server to expire
the lease long before sdhcp attempts to renew it.
450beea4e88ab7f80206741f18f0d5539ae60b44
2016-07-28T21:22:53Z
2016-07-29T08:00:16Z
Use signal-safe _exit in signal handler
Tobias Stoeckmann
tobias@stoeckmann.org
commit 450beea4e88ab7f80206741f18f0d5539ae60b44
parent a3a3e615d0e66b388b436196863095aede5c9dbe
Author: Tobias Stoeckmann <tobias@stoeckmann.org>
Date: Thu, 28 Jul 2016 23:22:53 +0200
Use signal-safe _exit in signal handler
The call to exit is not signal-safe, therefore _exit should be called
from within signal handlers.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
a3a3e615d0e66b388b436196863095aede5c9dbe
2016-01-13T19:34:17Z
2016-01-13T19:37:02Z
client id is always fixed at 16 bytes
sin
sin@2f30.org
commit a3a3e615d0e66b388b436196863095aede5c9dbe
parent 5ad98876ed3e0d8024c8e65174a675bd35ce058e
Author: sin <sin@2f30.org>
Date: Wed, 13 Jan 2016 19:34:17 +0000
client id is always fixed at 16 bytes
5ad98876ed3e0d8024c8e65174a675bd35ce058e
2016-01-13T19:28:39Z
2016-01-13T19:29:27Z
Use hardware address as default dhcp client identifier
sin
sin@2f30.org
commit 5ad98876ed3e0d8024c8e65174a675bd35ce058e
parent 3da0238a42595c0edf641d504d051f15348a205c
Author: sin <sin@2f30.org>
Date: Wed, 13 Jan 2016 19:28:39 +0000
Use hardware address as default dhcp client identifier
3da0238a42595c0edf641d504d051f15348a205c
2015-05-21T18:07:01Z
2015-05-21T18:11:44Z
config.mk: strip all symbols in sdhcp
Ypnose
linuxien@legtux.org
commit 3da0238a42595c0edf641d504d051f15348a205c
parent d64b498944cd8ca265e167f130992dff5b744e68
Author: Ypnose <linuxien@legtux.org>
Date: Thu, 21 May 2015 20:07:01 +0200
config.mk: strip all symbols in sdhcp
d64b498944cd8ca265e167f130992dff5b744e68
2015-04-27T20:59:41Z
2015-04-27T21:06:28Z
code-style, remove debug.c, config.mk: default c99
Hiltjo Posthuma
hiltjo@codemadness.org
commit d64b498944cd8ca265e167f130992dff5b744e68
parent 2a32d2ca9330dbf0c660827daf2da3d3e657697d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 27 Apr 2015 22:59:41 +0200
code-style, remove debug.c, config.mk: default c99
2a32d2ca9330dbf0c660827daf2da3d3e657697d
2015-04-27T20:30:34Z
2015-04-27T20:30:34Z
minor style fixes
Hiltjo Posthuma
hiltjo@codemadness.org
commit 2a32d2ca9330dbf0c660827daf2da3d3e657697d
parent 29ba9ee87072d80c968b56237b3b5e174ce40554
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 27 Apr 2015 22:30:34 +0200
minor style fixes
29ba9ee87072d80c968b56237b3b5e174ce40554
2015-04-27T20:30:11Z
2015-04-27T20:30:11Z
update LICENSE and TODO/CHANGES
Hiltjo Posthuma
hiltjo@codemadness.org
commit 29ba9ee87072d80c968b56237b3b5e174ce40554
parent ebefa9d8d870bedf286a6084960995c8e082fbc0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 27 Apr 2015 22:30:11 +0200
update LICENSE and TODO/CHANGES
ebefa9d8d870bedf286a6084960995c8e082fbc0
2015-04-27T20:26:49Z
2015-04-27T20:26:49Z
sdhcp.1: convert to mandoc
Hiltjo Posthuma
hiltjo@codemadness.org
commit ebefa9d8d870bedf286a6084960995c8e082fbc0
parent 6453b6d68c6452bb0731b3250e308d4e6750dbec
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 27 Apr 2015 22:26:49 +0200
sdhcp.1: convert to mandoc
6453b6d68c6452bb0731b3250e308d4e6750dbec
2015-04-27T01:00:03Z
2015-04-27T20:12:17Z
Add flag to run in foreground
Michael Forney
mforney@mforney.org
commit 6453b6d68c6452bb0731b3250e308d4e6750dbec
parent 4716991b7cf1cf79d3ddf27b16690ccb37e863b7
Author: Michael Forney <mforney@mforney.org>
Date: Mon, 27 Apr 2015 01:00:03 +0000
Add flag to run in foreground
4716991b7cf1cf79d3ddf27b16690ccb37e863b7
2015-04-27T01:00:02Z
2015-04-27T20:12:10Z
Only fork once
Michael Forney
mforney@mforney.org
commit 4716991b7cf1cf79d3ddf27b16690ccb37e863b7
parent 462f43e6073a740dfb71e720ace9d7f041e36b36
Author: Michael Forney <mforney@mforney.org>
Date: Mon, 27 Apr 2015 01:00:02 +0000
Only fork once
462f43e6073a740dfb71e720ace9d7f041e36b36
2015-04-12T11:43:04Z
2015-04-12T11:43:04Z
config.mk: default CC = cc
Hiltjo Posthuma
hiltjo@codemadness.org
commit 462f43e6073a740dfb71e720ace9d7f041e36b36
parent 839099bc5853a58cb40fc744fd891022b0bdc6bf
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Apr 2015 13:43:04 +0200
config.mk: default CC = cc
839099bc5853a58cb40fc744fd891022b0bdc6bf
2015-04-05T12:47:59Z
2015-04-05T12:50:50Z
sdhcp.1: Don't add dollar before variables
Ypnose
linuxien@legtux.org
commit 839099bc5853a58cb40fc744fd891022b0bdc6bf
parent 5b2cea6f3d520f37ac3575cabf8f3693a10352a5
Author: Ypnose <linuxien@legtux.org>
Date: Sun, 5 Apr 2015 14:47:59 +0200
sdhcp.1: Don't add dollar before variables
5b2cea6f3d520f37ac3575cabf8f3693a10352a5
2014-09-22T23:36:37Z
2014-09-22T23:36:37Z
Update TODO
sin
sin@2f30.org
commit 5b2cea6f3d520f37ac3575cabf8f3693a10352a5
parent 35938890d090e5f7e5862c6a6731f168004e6fd3
Author: sin <sin@2f30.org>
Date: Tue, 23 Sep 2014 00:36:37 +0100
Update TODO
35938890d090e5f7e5862c6a6731f168004e6fd3
2014-07-17T19:21:41Z
2014-07-17T19:21:41Z
Clean util.a as well
sin
sin@2f30.org
commit 35938890d090e5f7e5862c6a6731f168004e6fd3
parent 38916f6c32b2830cb5f04f0b345b6e01b4c23695
Author: sin <sin@2f30.org>
Date: Thu, 17 Jul 2014 20:21:41 +0100
Clean util.a as well
38916f6c32b2830cb5f04f0b345b6e01b4c23695
2014-07-05T11:32:48Z
2014-07-05T11:32:48Z
Fix date in LICENSE
sin
sin@2f30.org
commit 38916f6c32b2830cb5f04f0b345b6e01b4c23695
parent 114b10d606cf25b226f47bab8e29acca6b503d6e
Author: sin <sin@2f30.org>
Date: Sat, 5 Jul 2014 12:32:48 +0100
Fix date in LICENSE
114b10d606cf25b226f47bab8e29acca6b503d6e
2014-07-05T11:31:43Z
2014-07-05T11:31:43Z
License sdhcp under MIT/X
sin
sin@2f30.org
commit 114b10d606cf25b226f47bab8e29acca6b503d6e
parent 2152f4c9f5b4ec106bb76de15a61ce0e2f380131
Author: sin <sin@2f30.org>
Date: Sat, 5 Jul 2014 12:31:43 +0100
License sdhcp under MIT/X
2152f4c9f5b4ec106bb76de15a61ce0e2f380131
2014-05-14T10:46:40Z
2014-05-14T13:10:48Z
Just silence some unused var warnings
sin
sin@2f30.org
commit 2152f4c9f5b4ec106bb76de15a61ce0e2f380131
parent 7c74f27acfe5963ecded3ca444421e691216d5e9
Author: sin <sin@2f30.org>
Date: Wed, 14 May 2014 11:46:40 +0100
Just silence some unused var warnings
7c74f27acfe5963ecded3ca444421e691216d5e9
2014-04-28T21:17:26Z
2014-04-28T21:17:26Z
update sdhcp documentation
Hiltjo Posthuma
hiltjo@codemadness.org
commit 7c74f27acfe5963ecded3ca444421e691216d5e9
parent 9261d14454972ced5ae7b014b50b0f12eaad8de0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 28 Apr 2014 21:17:26 +0000
update sdhcp documentation
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
9261d14454972ced5ae7b014b50b0f12eaad8de0
2014-04-25T22:22:19Z
2014-04-26T17:06:08Z
add $SERVER variable
Hiltjo Posthuma
hiltjo@codemadness.org
commit 9261d14454972ced5ae7b014b50b0f12eaad8de0
parent 466314b9bd85e738d917df0298576e28c33eaec7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 26 Apr 2014 00:22:19 +0200
add $SERVER variable
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
466314b9bd85e738d917df0298576e28c33eaec7
2014-04-25T22:21:08Z
2014-04-26T17:06:08Z
set default -i and -d to 1
Hiltjo Posthuma
hiltjo@codemadness.org
commit 466314b9bd85e738d917df0298576e28c33eaec7
parent 2f36192032083fac6ee0200f3b32f5253ac6c221
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 26 Apr 2014 00:21:08 +0200
set default -i and -d to 1
this is useful for most people
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2f36192032083fac6ee0200f3b32f5253ac6c221
2014-04-25T22:18:33Z
2014-04-26T17:06:08Z
args: simplify a bit
Hiltjo Posthuma
hiltjo@codemadness.org
commit 2f36192032083fac6ee0200f3b32f5253ac6c221
parent 4f0cb77b97c5b7e907cd5b1e926a1d992f566995
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 26 Apr 2014 00:18:33 +0200
args: simplify a bit
- change -i to toggle to set ip (default none).
- add -e to launch program $CLIENT, $DNS, $ROUTER and $MASK are set.
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
4f0cb77b97c5b7e907cd5b1e926a1d992f566995
2014-04-25T22:02:49Z
2014-04-26T17:06:08Z
fix silly bug, dont read stdin ;)
Hiltjo Posthuma
hiltjo@codemadness.org
commit 4f0cb77b97c5b7e907cd5b1e926a1d992f566995
parent 3acad37482310e721ce213ab49feecdd0b8719e0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 26 Apr 2014 00:02:49 +0200
fix silly bug, dont read stdin ;)
mismatch braces so rnd evaluated to 0 (stdin).
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
3acad37482310e721ce213ab49feecdd0b8719e0
2014-04-25T21:39:22Z
2014-04-26T17:06:08Z
sdhcp.1: fix typo
Hiltjo Posthuma
hiltjo@codemadness.org
commit 3acad37482310e721ce213ab49feecdd0b8719e0
parent 8847720e8bbb4b2abe82770ad972b3774fa45d7f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 23:39:22 +0200
sdhcp.1: fix typo
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
8847720e8bbb4b2abe82770ad972b3774fa45d7f
2014-04-25T21:39:11Z
2014-04-26T17:06:08Z
update TODO
Hiltjo Posthuma
hiltjo@codemadness.org
commit 8847720e8bbb4b2abe82770ad972b3774fa45d7f
parent 1c7f40ecc174851a7833cde8da3a443f16440e8a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 23:39:11 +0200
update TODO
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
1c7f40ecc174851a7833cde8da3a443f16440e8a
2014-04-25T21:04:16Z
2014-04-26T17:06:08Z
update TODO
Hiltjo Posthuma
hiltjo@codemadness.org
commit 1c7f40ecc174851a7833cde8da3a443f16440e8a
parent 9a516fee5f808e1fb8a33f93411df70471fa0b0c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 23:04:16 +0200
update TODO
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
9a516fee5f808e1fb8a33f93411df70471fa0b0c
2014-04-25T21:04:04Z
2014-04-26T17:06:08Z
style
Hiltjo Posthuma
hiltjo@codemadness.org
commit 9a516fee5f808e1fb8a33f93411df70471fa0b0c
parent 25a4c8c5c72961fdab5de9fc38472e6fca849a4a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 23:04:04 +0200
style
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
25a4c8c5c72961fdab5de9fc38472e6fca849a4a
2014-04-25T21:03:53Z
2014-04-26T17:06:08Z
creat() return on failure
Hiltjo Posthuma
hiltjo@codemadness.org
commit 25a4c8c5c72961fdab5de9fc38472e6fca849a4a
parent b3d202e72bacd84e7a7ae53621c33fbaa983e8aa
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 23:03:53 +0200
creat() return on failure
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
b3d202e72bacd84e7a7ae53621c33fbaa983e8aa
2014-04-25T20:54:14Z
2014-04-26T17:06:07Z
fix typo and add some comments
Hiltjo Posthuma
hiltjo@codemadness.org
commit b3d202e72bacd84e7a7ae53621c33fbaa983e8aa
parent 98a77a0f7ccea2df3ca9182ff82d21e6b33193b1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:54:14 +0200
fix typo and add some comments
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
98a77a0f7ccea2df3ca9182ff82d21e6b33193b1
2014-04-25T20:54:04Z
2014-04-26T17:06:07Z
change iptoaddr, im not sure if it was correct
Hiltjo Posthuma
hiltjo@codemadness.org
commit 98a77a0f7ccea2df3ca9182ff82d21e6b33193b1
parent 970e3fa9791b1c223a0ae2f323680dee8372b838
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:54:04 +0200
change iptoaddr, im not sure if it was correct
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
970e3fa9791b1c223a0ae2f323680dee8372b838
2014-04-25T20:52:58Z
2014-04-26T17:06:07Z
set client-id to empty string for now
Hiltjo Posthuma
hiltjo@codemadness.org
commit 970e3fa9791b1c223a0ae2f323680dee8372b838
parent 5f693aa8b5aafaae588daf36fe1455ce6191882e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:52:58 +0200
set client-id to empty string for now
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
5f693aa8b5aafaae588daf36fe1455ce6191882e
2014-04-25T20:52:40Z
2014-04-26T17:06:07Z
dont use varargs for IP macro
Hiltjo Posthuma
hiltjo@codemadness.org
commit 5f693aa8b5aafaae588daf36fe1455ce6191882e
parent 112489c843d04ad8e67f831848f8e77b50df6a2c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:52:40 +0200
dont use varargs for IP macro
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
112489c843d04ad8e67f831848f8e77b50df6a2c
2014-04-25T20:52:27Z
2014-04-26T17:06:07Z
update TODO
Hiltjo Posthuma
hiltjo@codemadness.org
commit 112489c843d04ad8e67f831848f8e77b50df6a2c
parent c671dc0487570ee917373cd0c625584e04199af4
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:52:27 +0200
update TODO
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
c671dc0487570ee917373cd0c625584e04199af4
2014-04-25T20:22:31Z
2014-04-26T17:06:07Z
update TODO / CHANGELOG
Hiltjo Posthuma
hiltjo@codemadness.org
commit c671dc0487570ee917373cd0c625584e04199af4
parent 176aad994ae2ddf0603b572ae57b88bfbed5708a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:22:31 +0200
update TODO / CHANGELOG
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
176aad994ae2ddf0603b572ae57b88bfbed5708a
2014-04-25T20:22:18Z
2014-04-26T17:06:07Z
compile with -Wextra for now
Hiltjo Posthuma
hiltjo@codemadness.org
commit 176aad994ae2ddf0603b572ae57b88bfbed5708a
parent 875f71857e85ec86a1903f4622a1de62d4882800
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:22:18 +0200
compile with -Wextra for now
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
875f71857e85ec86a1903f4622a1de62d4882800
2014-04-25T20:16:36Z
2014-04-26T17:06:07Z
fix warning with -Wextra
Hiltjo Posthuma
hiltjo@codemadness.org
commit 875f71857e85ec86a1903f4622a1de62d4882800
parent b9a0a3e1c7b194f9c82015a03cfe05fb4286d98f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:16:36 +0200
fix warning with -Wextra
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
b9a0a3e1c7b194f9c82015a03cfe05fb4286d98f
2014-04-25T20:13:25Z
2014-04-26T17:06:07Z
fix arg parsing
Hiltjo Posthuma
hiltjo@codemadness.org
commit b9a0a3e1c7b194f9c82015a03cfe05fb4286d98f
parent 983d3375adcee59bf8acc476e0e6260bcbb88ce8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:13:25 +0200
fix arg parsing
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
983d3375adcee59bf8acc476e0e6260bcbb88ce8
2014-04-25T20:07:25Z
2014-04-26T17:06:07Z
fix remaining warnings
Hiltjo Posthuma
hiltjo@codemadness.org
commit 983d3375adcee59bf8acc476e0e6260bcbb88ce8
parent b97fe80b0c80d16802031d321f8aeb4f642ba37a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:07:25 +0200
fix remaining warnings
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
b97fe80b0c80d16802031d321f8aeb4f642ba37a
2014-04-25T20:02:57Z
2014-04-26T17:06:07Z
whoops add arg.h
Hiltjo Posthuma
hiltjo@codemadness.org
commit b97fe80b0c80d16802031d321f8aeb4f642ba37a
parent ba2f7b64cceb89657c54733fbfdfb0b127427da1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:02:57 +0200
whoops add arg.h
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
ba2f7b64cceb89657c54733fbfdfb0b127427da1
2014-04-25T20:02:37Z
2014-04-26T17:06:07Z
use BUFSIZ for optimal buffer size, check open return fd
Hiltjo Posthuma
hiltjo@codemadness.org
commit ba2f7b64cceb89657c54733fbfdfb0b127427da1
parent 6d5cb4daf78d159d9a6446183956c7a7086f1b80
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:02:37 +0200
use BUFSIZ for optimal buffer size, check open return fd
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
6d5cb4daf78d159d9a6446183956c7a7086f1b80
2014-04-25T20:02:11Z
2014-04-26T17:06:07Z
optget doesn't return
Hiltjo Posthuma
hiltjo@codemadness.org
commit 6d5cb4daf78d159d9a6446183956c7a7086f1b80
parent 1c2db38abfb99b98dfcb3e13eab361e741c08d4e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:02:11 +0200
optget doesn't return
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
1c2db38abfb99b98dfcb3e13eab361e741c08d4e
2014-04-25T20:02:00Z
2014-04-26T17:06:07Z
add arg.h and -d, -i and -c options (untested)
Hiltjo Posthuma
hiltjo@codemadness.org
commit 1c2db38abfb99b98dfcb3e13eab361e741c08d4e
parent ff21770ca48baa7851a9e6972e33584d66c3e785
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:02:00 +0200
add arg.h and -d, -i and -c options (untested)
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
ff21770ca48baa7851a9e6972e33584d66c3e785
2014-04-25T20:01:20Z
2014-04-26T17:06:06Z
cleanup code
Hiltjo Posthuma
hiltjo@codemadness.org
commit ff21770ca48baa7851a9e6972e33584d66c3e785
parent 7780d06e8ee64392f8c852ae24cdf5ff8c11845a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 22:01:20 +0200
cleanup code
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
7780d06e8ee64392f8c852ae24cdf5ff8c11845a
2014-04-25T19:58:18Z
2014-04-26T17:06:06Z
replace UDPWRAPPER macro with readable normal version
Hiltjo Posthuma
hiltjo@codemadness.org
commit 7780d06e8ee64392f8c852ae24cdf5ff8c11845a
parent 253bb65b9f029890469c3726c446daf34747bcba
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 21:58:18 +0200
replace UDPWRAPPER macro with readable normal version
fix some compiler warnings aswell (signed/unsigned)
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
253bb65b9f029890469c3726c446daf34747bcba
2014-04-25T19:52:54Z
2014-04-26T17:06:06Z
removenote, this is correct, make i unsigned though
Hiltjo Posthuma
hiltjo@codemadness.org
commit 253bb65b9f029890469c3726c446daf34747bcba
parent 19e0ab7cc747ad5f6f239e484531a5fec0626e14
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 21:52:54 +0200
removenote, this is correct, make i unsigned though
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
19e0ab7cc747ad5f6f239e484531a5fec0626e14
2014-04-25T19:50:25Z
2014-04-26T17:06:06Z
add eprintf(), weprintf()
Hiltjo Posthuma
hiltjo@codemadness.org
commit 19e0ab7cc747ad5f6f239e484531a5fec0626e14
parent 8559ac1f08e7592d9f9b142e11125e210d6e7f5b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 21:50:25 +0200
add eprintf(), weprintf()
use it instead of die()
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
8559ac1f08e7592d9f9b142e11125e210d6e7f5b
2014-04-25T19:48:24Z
2014-04-26T17:06:06Z
exclude lib.a from git
Hiltjo Posthuma
hiltjo@codemadness.org
commit 8559ac1f08e7592d9f9b142e11125e210d6e7f5b
parent ecd7d1ab7d75dae0f468bacd43b985f37e61f01c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 21:48:24 +0200
exclude lib.a from git
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
ecd7d1ab7d75dae0f468bacd43b985f37e61f01c
2014-04-25T18:59:41Z
2014-04-26T17:06:06Z
add strlcpy
Hiltjo Posthuma
hiltjo@codemadness.org
commit ecd7d1ab7d75dae0f468bacd43b985f37e61f01c
parent c1aa3d309eb59561dbc17845ee9fdb73efa51679
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 20:59:41 +0200
add strlcpy
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
c1aa3d309eb59561dbc17845ee9fdb73efa51679
2014-04-25T18:58:34Z
2014-04-26T17:06:06Z
code style fixes
Hiltjo Posthuma
hiltjo@codemadness.org
commit c1aa3d309eb59561dbc17845ee9fdb73efa51679
parent 64736a417ed037670ee916078b94903d9882f28e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 20:58:34 +0200
code style fixes
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
64736a417ed037670ee916078b94903d9882f28e
2014-04-25T18:57:46Z
2014-04-26T17:06:06Z
util.h for strlcpy() and MIN() macro
Hiltjo Posthuma
hiltjo@codemadness.org
commit 64736a417ed037670ee916078b94903d9882f28e
parent 2e4eae5360a37cf9d7ebad8cb4bfa135dae6b3d8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 20:57:46 +0200
util.h for strlcpy() and MIN() macro
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2e4eae5360a37cf9d7ebad8cb4bfa135dae6b3d8
2014-04-25T18:57:19Z
2014-04-26T17:06:06Z
fix include for time and read(), write()
Hiltjo Posthuma
hiltjo@codemadness.org
commit 2e4eae5360a37cf9d7ebad8cb4bfa135dae6b3d8
parent d02e213601a5432e7efcd1bbeab1bff151ee04fe
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 20:57:19 +0200
fix include for time and read(), write()
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
d02e213601a5432e7efcd1bbeab1bff151ee04fe
2014-04-25T18:57:00Z
2014-04-26T17:06:06Z
make man page (8) to (1), use VERSION
Hiltjo Posthuma
hiltjo@codemadness.org
commit d02e213601a5432e7efcd1bbeab1bff151ee04fe
parent 61b1942be50463eb03c55c055df4b8f62a4549e2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 20:57:00 +0200
make man page (8) to (1), use VERSION
and fix uninstall rule (/bin to /sbin)
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
61b1942be50463eb03c55c055df4b8f62a4549e2
2014-04-25T18:52:34Z
2014-04-26T17:06:06Z
use suckless style makefile
Hiltjo Posthuma
hiltjo@codemadness.org
commit 61b1942be50463eb03c55c055df4b8f62a4549e2
parent 0d4e3b57668dbabd501b83f2228d18b0a53598d0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 20:52:34 +0200
use suckless style makefile
- add config.mk,
- use -ansi and -D_BSD_SOURCE (needed for IFF_*) for CFLAGS.
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
0d4e3b57668dbabd501b83f2228d18b0a53598d0
2014-04-25T17:29:06Z
2014-04-26T17:06:06Z
update TODO
Hiltjo Posthuma
hiltjo@codemadness.org
commit 0d4e3b57668dbabd501b83f2228d18b0a53598d0
parent 3e2bf1a43fc43b90a8d1bc2ffae62b83b765cb84
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:29:06 +0200
update TODO
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
3e2bf1a43fc43b90a8d1bc2ffae62b83b765cb84
2014-04-25T17:26:40Z
2014-04-26T17:06:06Z
cleanup (WIP)
Hiltjo Posthuma
hiltjo@codemadness.org
commit 3e2bf1a43fc43b90a8d1bc2ffae62b83b765cb84
parent 45c39c4a1772a01d0d37a26f2a92e3fa2f5a750e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:26:40 +0200
cleanup (WIP)
- code style, trailing whitespace and use tabs
- add some notes for further cleanup
- remove dbgprintf() code in sdhcp.c
- make exit(n), EXIT_SUCCESS or EXIT_FAILURE
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
45c39c4a1772a01d0d37a26f2a92e3fa2f5a750e
2014-04-25T17:24:30Z
2014-04-26T17:06:06Z
add gitignore
Hiltjo Posthuma
hiltjo@codemadness.org
commit 45c39c4a1772a01d0d37a26f2a92e3fa2f5a750e
parent fee8efc7684cde41fcbc2ca2d903c30a008c22cd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:24:30 +0200
add gitignore
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
fee8efc7684cde41fcbc2ca2d903c30a008c22cd
2014-04-25T17:24:05Z
2014-04-26T17:06:06Z
fix typos
Hiltjo Posthuma
hiltjo@codemadness.org
commit fee8efc7684cde41fcbc2ca2d903c30a008c22cd
parent d810f71b91a99088de330bf3d16459a8a5c7c859
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:24:05 +0200
fix typos
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
d810f71b91a99088de330bf3d16459a8a5c7c859
2014-04-25T17:23:26Z
2014-04-26T17:06:05Z
code style, move debug specific code to debug.c
Hiltjo Posthuma
hiltjo@codemadness.org
commit d810f71b91a99088de330bf3d16459a8a5c7c859
parent d6f464ea4a66968f3d3a44433dfdd7819006804c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:23:26 +0200
code style, move debug specific code to debug.c
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
d6f464ea4a66968f3d3a44433dfdd7819006804c
2014-04-25T17:22:21Z
2014-04-26T17:06:05Z
makefile: remove debug from normal build
Hiltjo Posthuma
hiltjo@codemadness.org
commit d6f464ea4a66968f3d3a44433dfdd7819006804c
parent 45822e2399a0daad7046b2cf309c0cbaff96104d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:22:21 +0200
makefile: remove debug from normal build
stricter options for now (cleanup)
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
45822e2399a0daad7046b2cf309c0cbaff96104d
2014-04-25T17:21:53Z
2014-04-26T17:06:05Z
makefile: man page install should respect $DESTDIR
Hiltjo Posthuma
hiltjo@codemadness.org
commit 45822e2399a0daad7046b2cf309c0cbaff96104d
parent 26f8405cf619f67a76b170480efbcc1defa04c46
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 25 Apr 2014 19:21:53 +0200
makefile: man page install should respect $DESTDIR
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
26f8405cf619f67a76b170480efbcc1defa04c46
2014-03-05T16:51:33Z
2014-03-05T16:52:04Z
Use poll.h not sys/poll.h
sin
sin@2f30.org
commit 26f8405cf619f67a76b170480efbcc1defa04c46
parent a91f359dd69354befd8c70a89e0effd8891e1644
Author: sin <sin@2f30.org>
Date: Wed, 5 Mar 2014 16:51:33 +0000
Use poll.h not sys/poll.h
a91f359dd69354befd8c70a89e0effd8891e1644
2013-09-25T11:14:00Z
2013-09-25T11:14:00Z
Initial import of http://galos.no-ip.org/sdhcp
sin
sin@2f30.org
commit a91f359dd69354befd8c70a89e0effd8891e1644
Author: sin <sin@2f30.org>
Date: Wed, 25 Sep 2013 12:14:00 +0100
Initial import of http://galos.no-ip.org/sdhcp