]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
18 years agoPointless looping in bpf.packet, as pointed out by D. Young.
Roy Marples [Sun, 30 Mar 2008 08:26:34 +0000 (08:26 +0000)] 
Pointless looping in bpf.packet, as pointed out by D. Young.

18 years agoUse d_droute.
Roy Marples [Sun, 30 Mar 2008 08:07:37 +0000 (08:07 +0000)] 
Use d_droute.

18 years agobitmask options should take less space than booleans.
Roy Marples [Sat, 29 Mar 2008 19:14:52 +0000 (19:14 +0000)] 
bitmask options should take less space than booleans.

18 years agostrlcpy is more lightweight than memcpy.
Roy Marples [Sat, 29 Mar 2008 17:03:34 +0000 (17:03 +0000)] 
strlcpy is more lightweight than memcpy.

18 years agoFix compile on NetBSD.
Roy Marples [Sat, 29 Mar 2008 16:58:42 +0000 (16:58 +0000)] 
Fix compile on NetBSD.

18 years agoRemove all logging from if.c and into the proper bits.
Roy Marples [Sat, 29 Mar 2008 16:50:18 +0000 (16:50 +0000)] 
Remove all logging from if.c and into the proper bits.

18 years agoConvert has_address into a macro.
Roy Marples [Sat, 29 Mar 2008 13:07:39 +0000 (13:07 +0000)] 
Convert has_address into a macro.

18 years agoflush_addresses can become a macro.
Roy Marples [Sat, 29 Mar 2008 12:53:24 +0000 (12:53 +0000)] 
flush_addresses can become a macro.

18 years agoSave a few more bytes.
Roy Marples [Sat, 29 Mar 2008 11:41:00 +0000 (11:41 +0000)] 
Save a few more bytes.

18 years agoMove log_route to if.c
Roy Marples [Sat, 29 Mar 2008 11:36:43 +0000 (11:36 +0000)] 
Move log_route to if.c

18 years agoWe need sys/stat.h on fbsd.
Roy Marples [Sat, 29 Mar 2008 09:48:57 +0000 (09:48 +0000)] 
We need sys/stat.h on fbsd.

18 years agoRework our error handling code a little to save ~5k on x86_64
Roy Marples [Sat, 29 Mar 2008 08:40:55 +0000 (08:40 +0000)] 
Rework our error handling code a little to save ~5k on x86_64

18 years agoFix compile on Linux.
Roy Marples [Fri, 28 Mar 2008 17:56:45 +0000 (17:56 +0000)] 
Fix compile on Linux.

18 years agoIt's more proper to use ~0U here.
Roy Marples [Fri, 28 Mar 2008 15:07:23 +0000 (15:07 +0000)] 
It's more proper to use ~0U here.

18 years agoInstall INFODIR in the Makefile to reduce the dhcpcd code size.
Roy Marples [Fri, 28 Mar 2008 13:16:04 +0000 (13:16 +0000)] 
Install INFODIR in the Makefile to reduce the dhcpcd code size.

18 years agoNo need to create /etc
Roy Marples [Fri, 28 Mar 2008 12:39:53 +0000 (12:39 +0000)] 
No need to create /etc

18 years agoUse strlcpy here.
Roy Marples [Fri, 28 Mar 2008 12:19:49 +0000 (12:19 +0000)] 
Use strlcpy here.

18 years agoDon't bother compiling these if undefined.
Roy Marples [Fri, 28 Mar 2008 12:10:12 +0000 (12:10 +0000)] 
Don't bother compiling these if undefined.

18 years agoUse the close_on_exec function here.
Roy Marples [Fri, 28 Mar 2008 11:54:29 +0000 (11:54 +0000)] 
Use the close_on_exec function here.

18 years agoIt appears that some DHCP servers don't reply to a DISCOVER if we just have DNS_SERVE...
Roy Marples [Fri, 28 Mar 2008 11:45:34 +0000 (11:45 +0000)] 
It appears that some DHCP servers don't reply to a DISCOVER if we just have DNS_SERVER in the parameter list, so just use the whole list all the time.

18 years agoFix compile on fbsd-6.2
Roy Marples [Thu, 27 Mar 2008 20:23:34 +0000 (20:23 +0000)] 
Fix compile on fbsd-6.2

18 years agoIf not Linux then assume BSD.
Roy Marples [Thu, 27 Mar 2008 20:10:31 +0000 (20:10 +0000)] 
If not Linux then assume BSD.

18 years agoFix compiler warnings.
Roy Marples [Tue, 25 Mar 2008 08:36:28 +0000 (08:36 +0000)] 
Fix compiler warnings.

18 years agoAdd alternative building method to save around 500 bytes.
Roy Marples [Mon, 24 Mar 2008 20:09:30 +0000 (20:09 +0000)] 
Add alternative building method to save around 500 bytes.

18 years agoUse functions over bloaty macros to save a few bytes.
Roy Marples [Mon, 24 Mar 2008 20:08:51 +0000 (20:08 +0000)] 
Use functions over bloaty macros to save a few bytes.

18 years agoFix compile on BSD.
Roy Marples [Mon, 24 Mar 2008 01:45:37 +0000 (01:45 +0000)] 
Fix compile on BSD.

18 years agoSplit interface and socket out into OS bpf, if-bsd and if-linux.
Roy Marples [Mon, 24 Mar 2008 01:29:33 +0000 (01:29 +0000)] 
Split interface and socket out into OS bpf, if-bsd and if-linux.

18 years agoFix compile on NetBSD
Roy Marples [Thu, 20 Mar 2008 17:03:55 +0000 (17:03 +0000)] 
Fix compile on NetBSD

18 years agoRemove uneeded structs.
Roy Marples [Thu, 20 Mar 2008 17:00:11 +0000 (17:00 +0000)] 
Remove uneeded structs.

18 years agoChange code style to match the BSDs in the hope the might adpot it instead of dhclient.
Roy Marples [Thu, 20 Mar 2008 16:47:51 +0000 (16:47 +0000)] 
Change code style to match the BSDs in the hope the might adpot it instead of dhclient.

18 years agoWork with zerolength options again.
Roy Marples [Sun, 16 Mar 2008 08:22:01 +0000 (08:22 +0000)] 
Work with zerolength options again.

18 years agoInclude our own queue.h only for Linux systems.
Roy Marples [Wed, 5 Mar 2008 12:34:29 +0000 (12:34 +0000)] 
Include our own queue.h only for Linux systems.

18 years agoImport STAIL_QUEUE from FreeBSD headers as not all libc's we support provide it.
Roy Marples [Tue, 4 Mar 2008 11:44:44 +0000 (11:44 +0000)] 
Import STAIL_QUEUE from FreeBSD headers as not all libc's we support provide it.

18 years agoAdd back asm/types.h direct include for crappy 2.4 linux headers.
Roy Marples [Tue, 4 Mar 2008 11:24:28 +0000 (11:24 +0000)] 
Add back asm/types.h direct include for crappy 2.4 linux headers.

18 years agoAllow --fqdn to work without an option, defaulting to both.
Roy Marples [Tue, 4 Mar 2008 11:05:23 +0000 (11:05 +0000)] 
Allow --fqdn to work without an option, defaulting to both.

18 years agoRelease dhcpcd-3.2.3 v3.2.3
Roy Marples [Mon, 25 Feb 2008 08:28:19 +0000 (08:28 +0000)] 
Release dhcpcd-3.2.3

18 years agoNIS could just be a domain without addresses.
Roy Marples [Sun, 24 Feb 2008 10:56:21 +0000 (10:56 +0000)] 
NIS could just be a domain without addresses.

18 years agoFix hostname lookup, #31
Roy Marples [Sat, 23 Feb 2008 23:12:54 +0000 (23:12 +0000)] 
Fix hostname lookup, #31

18 years agoClean up some valgrind errors.
Roy Marples [Sat, 23 Feb 2008 23:12:09 +0000 (23:12 +0000)] 
Clean up some valgrind errors.

18 years agoAs we don't use the udp socket, set the recieve buffer to 1.
Roy Marples [Fri, 22 Feb 2008 14:53:02 +0000 (14:53 +0000)] 
As we don't use the udp socket, set the recieve buffer to 1.

18 years agoFix building on GNU/kFreeBSD, Debian #467005
Roy Marples [Fri, 22 Feb 2008 14:35:27 +0000 (14:35 +0000)] 
Fix building on GNU/kFreeBSD, Debian #467005

18 years agoPCC compiler fixes.
Roy Marples [Fri, 22 Feb 2008 11:45:18 +0000 (11:45 +0000)] 
PCC compiler fixes.

18 years agoAlways open UDP port for DHCP client t avoid more ICMP nastyness.
Roy Marples [Fri, 22 Feb 2008 10:11:21 +0000 (10:11 +0000)] 
Always open UDP port for DHCP client t avoid more ICMP nastyness.

18 years agoifreqs could have more than structs larger than sockaddr, so use the union size.
Roy Marples [Fri, 22 Feb 2008 09:29:40 +0000 (09:29 +0000)] 
ifreqs could have more than structs larger than sockaddr, so use the union size.

18 years agoStyle.
Roy Marples [Thu, 21 Feb 2008 20:55:27 +0000 (20:55 +0000)] 
Style.

18 years agoFix rebinding.
Roy Marples [Thu, 21 Feb 2008 20:50:01 +0000 (20:50 +0000)] 
Fix rebinding.

18 years agoBe more RFC conformant regarding sending server id.
Roy Marples [Thu, 21 Feb 2008 17:59:15 +0000 (17:59 +0000)] 
Be more RFC conformant regarding sending server id.

18 years agoAdd a listening port for linux for when we have configured an address and need to...
Roy Marples [Thu, 21 Feb 2008 16:45:01 +0000 (16:45 +0000)] 
Add a listening port for linux for when we have configured an address and need to renew. Otherwise linux likes to generate an ICMP destination unreachable port unreachable message, which is probably a linux bug as we have obviously read the packet correctly through our packet filter.

18 years agoWhen renewing, talk to the server ip address.
Roy Marples [Thu, 21 Feb 2008 16:35:59 +0000 (16:35 +0000)] 
When renewing, talk to the server ip address.

18 years agoFix mode of pidfile so any user can read it.
Roy Marples [Thu, 21 Feb 2008 16:35:15 +0000 (16:35 +0000)] 
Fix mode of pidfile so any user can read it.

18 years agoFix compile on NOMMU systems.
Roy Marples [Thu, 21 Feb 2008 07:45:02 +0000 (07:45 +0000)] 
Fix compile on NOMMU systems.

18 years agoBail out of sys/queue.h lacks STAILQ
Roy Marples [Wed, 20 Feb 2008 19:09:30 +0000 (19:09 +0000)] 
Bail out of sys/queue.h lacks STAILQ

18 years agoSupport the PCC compiler.
Roy Marples [Wed, 20 Feb 2008 17:49:51 +0000 (17:49 +0000)] 
Support the PCC compiler.

18 years agoQuickly fix a valgrind error.
Roy Marples [Wed, 20 Feb 2008 17:13:12 +0000 (17:13 +0000)] 
Quickly fix a valgrind error.

18 years agoRelease dhcpcd-3.2.2
Roy Marples [Wed, 20 Feb 2008 17:09:14 +0000 (17:09 +0000)] 
Release dhcpcd-3.2.2

18 years agoUse tailq from queue.h instead of rolling our down linked lists.
Roy Marples [Wed, 20 Feb 2008 17:04:56 +0000 (17:04 +0000)] 
Use tailq from queue.h instead of rolling our down linked lists.

18 years agoAdd a comment about older linux headers and -std=c99.
Roy Marples [Wed, 20 Feb 2008 12:15:13 +0000 (12:15 +0000)] 
Add a comment about older linux headers and -std=c99.

18 years agoDon't include -pipe by default.
Roy Marples [Wed, 20 Feb 2008 10:35:12 +0000 (10:35 +0000)] 
Don't include -pipe by default.

18 years agoTest each CC flag we want to set so we will work on other compilers such as pcc when...
Roy Marples [Wed, 20 Feb 2008 10:12:40 +0000 (10:12 +0000)] 
Test each CC flag we want to set so we will work on other compilers such as pcc when it matures a little.

18 years agoTypo.
Roy Marples [Tue, 19 Feb 2008 18:31:37 +0000 (18:31 +0000)] 
Typo.

18 years agoRemove hardcoded defines for linux and add a nasty hackaround for glibc.
Roy Marples [Tue, 19 Feb 2008 18:30:16 +0000 (18:30 +0000)] 
Remove hardcoded defines for linux and add a nasty hackaround for glibc.

18 years agoFix compile.
Roy Marples [Tue, 19 Feb 2008 17:43:39 +0000 (17:43 +0000)] 
Fix compile.

18 years agoLinux-2.6.23 finally supports -std=c99 for asm/types.h, included by headers we include.
Roy Marples [Tue, 19 Feb 2008 17:35:31 +0000 (17:35 +0000)] 
Linux-2.6.23 finally supports -std=c99 for asm/types.h, included by headers we include.

18 years agoAdd comments about interupts and stop polling for events we ignore.
Roy Marples [Tue, 19 Feb 2008 09:57:27 +0000 (09:57 +0000)] 
Add comments about interupts and stop polling for events we ignore.

18 years agoWhen polling and interupted, continue as the signal will then be in our pipe.
Roy Marples [Mon, 11 Feb 2008 21:43:34 +0000 (21:43 +0000)] 
When polling and interupted, continue as the signal will then be in our pipe.

18 years agoFix compile warning for new netlink callback header.
Roy Marples [Mon, 11 Feb 2008 21:42:53 +0000 (21:42 +0000)] 
Fix compile warning for new netlink callback header.

18 years agoFix poll timeout.
Roy Marples [Sun, 10 Feb 2008 23:40:24 +0000 (23:40 +0000)] 
Fix poll timeout.

18 years agoFix compile on NetBSD.
Roy Marples [Sun, 10 Feb 2008 23:30:08 +0000 (23:30 +0000)] 
Fix compile on NetBSD.

18 years agoJust warn when running as non root.
Roy Marples [Sun, 10 Feb 2008 23:08:34 +0000 (23:08 +0000)] 
Just warn when running as non root.

18 years agoReplace select with poll and nanosleep.
Roy Marples [Sun, 10 Feb 2008 23:01:44 +0000 (23:01 +0000)] 
Replace select with poll and nanosleep.

18 years agoWe should only have one bit of code to mark sockets close_on_exec.
Roy Marples [Sat, 9 Feb 2008 21:58:05 +0000 (21:58 +0000)] 
We should only have one bit of code to mark sockets close_on_exec.

18 years agoRename getline to get_line so we don't conflict with crappy GNU headers that wrongly...
Roy Marples [Wed, 6 Feb 2008 10:18:03 +0000 (10:18 +0000)] 
Rename getline to get_line so we don't conflict with crappy GNU headers that wrongly expose getline when _GNU_SOURCE isn't set. Bug #17.

18 years agoAllow hardware type to be specified in the ClientID. This is needed, as the ethernet...
Roy Marples [Tue, 5 Feb 2008 21:38:00 +0000 (21:38 +0000)] 
Allow hardware type to be specified in the ClientID. This is needed, as the ethernet length matches other lengths.

18 years agoWe should block and reset our signals when daemonising also.
Roy Marples [Sun, 3 Feb 2008 22:35:48 +0000 (22:35 +0000)] 
We should block and reset our signals when daemonising also.

18 years agoRevert posix_spawn as it seems only glibc supports it for us right now. Hope that...
Roy Marples [Sat, 2 Feb 2008 21:56:12 +0000 (21:56 +0000)] 
Revert posix_spawn as it seems only glibc supports it for us right now. Hope that libc is tolerant to changing signals inside a vfork if we put them back afterwards in the parent.

18 years agoBlock signals to avoid potential signal racing on BSD using fork.
Roy Marples [Sat, 2 Feb 2008 19:17:08 +0000 (19:17 +0000)] 
Block signals to avoid potential signal racing on BSD using fork.

18 years agoOf course, BSD systems don't have posix_spawn yet :/
Roy Marples [Sat, 2 Feb 2008 18:08:49 +0000 (18:08 +0000)] 
Of course, BSD systems don't have posix_spawn yet :/

18 years agoUse posix_spawn instead of vfork to avoid signal races.
Roy Marples [Sat, 2 Feb 2008 17:28:22 +0000 (17:28 +0000)] 
Use posix_spawn instead of vfork to avoid signal races.

18 years agoFix adding routes on BSD.
Roy Marples [Thu, 31 Jan 2008 14:18:30 +0000 (14:18 +0000)] 
Fix adding routes on BSD.

18 years agoMove clientid generation to client.c and put it on the interface object inplace of...
Roy Marples [Thu, 31 Jan 2008 11:19:17 +0000 (11:19 +0000)] 
Move clientid generation to client.c and put it on the interface object inplace of duid. Always save the ClientID as a hex string. This reduces our binary size.

18 years agoSpecify install modes for all our files.
Roy Marples [Wed, 30 Jan 2008 10:08:59 +0000 (10:08 +0000)] 
Specify install modes for all our files.

18 years agoBPF documentation says use +, so lets do that.
Roy Marples [Wed, 30 Jan 2008 09:42:20 +0000 (09:42 +0000)] 
BPF documentation says use +, so lets do that.

18 years agoRelease dhcpcd-3.2.1
Roy Marples [Tue, 29 Jan 2008 11:26:24 +0000 (11:26 +0000)] 
Release dhcpcd-3.2.1

18 years agoUpdate comment style.
Roy Marples [Tue, 29 Jan 2008 11:20:55 +0000 (11:20 +0000)] 
Update comment style.

18 years agoRe add the code to re-send message now - last time sent >= TIMOUT_MINI just incase.
Roy Marples [Tue, 29 Jan 2008 11:12:59 +0000 (11:12 +0000)] 
Re add the code to re-send message now - last time sent >= TIMOUT_MINI just incase.

18 years agoBetter to use the size of the packet.
Roy Marples [Tue, 29 Jan 2008 10:53:59 +0000 (10:53 +0000)] 
Better to use the size of the packet.

18 years agoMan page updates.
Roy Marples [Tue, 29 Jan 2008 10:46:54 +0000 (10:46 +0000)] 
Man page updates.

18 years agoUse sizeof with the variable, not the declaration more.
Roy Marples [Mon, 28 Jan 2008 17:47:54 +0000 (17:47 +0000)] 
Use sizeof with the variable, not the declaration more.

18 years agoUse sizeof with the variable, not the declaration.
Roy Marples [Mon, 28 Jan 2008 16:32:04 +0000 (16:32 +0000)] 
Use sizeof with the variable, not the declaration.

18 years agoIntroduce xzalloc, which zeros memory as well as allocates it. This makes us smaller.
Roy Marples [Mon, 28 Jan 2008 15:32:04 +0000 (15:32 +0000)] 
Introduce xzalloc, which zeros memory as well as allocates it. This makes us smaller.

18 years agoMan page updates.
Roy Marples [Mon, 28 Jan 2008 14:33:46 +0000 (14:33 +0000)] 
Man page updates.

18 years agoStyle
Roy Marples [Mon, 28 Jan 2008 14:29:54 +0000 (14:29 +0000)] 
Style

18 years agoWe shouldn't need to re-send this message now as our timeout and signal interupt...
Roy Marples [Mon, 28 Jan 2008 14:17:46 +0000 (14:17 +0000)] 
We shouldn't need to re-send this message now as our timeout and signal interupt code is a lot more robust plus we now use LPF. We can always add it back if we need to.

18 years agoWe should zero the sa structure before use.
Roy Marples [Sun, 27 Jan 2008 19:49:32 +0000 (19:49 +0000)] 
We should zero the sa structure before use.

18 years agoFix compile on NetBSD
Roy Marples [Sun, 27 Jan 2008 19:48:32 +0000 (19:48 +0000)] 
Fix compile on NetBSD

18 years agoUse sigaction over signal and check iface and state before freeing
Roy Marples [Sun, 27 Jan 2008 18:39:31 +0000 (18:39 +0000)] 
Use sigaction over signal and check iface and state before freeing

18 years agoLinux has LPF, which is almost like BPF. Let's use and let the kernel filter out...
Roy Marples [Sun, 27 Jan 2008 11:31:01 +0000 (11:31 +0000)] 
Linux has LPF, which is almost like BPF. Let's use and let the kernel filter out what we don't need.

18 years agocast to int for isxdigit
Roy Marples [Sat, 26 Jan 2008 10:40:53 +0000 (10:40 +0000)] 
cast to int for isxdigit

18 years agoAdd NETWORK= to dhcpcd-.info, bug #10
Roy Marples [Fri, 25 Jan 2008 19:35:45 +0000 (19:35 +0000)] 
Add NETWORK= to dhcpcd-.info, bug #10

18 years agoFix ntpd.conf
Roy Marples [Fri, 25 Jan 2008 11:02:52 +0000 (11:02 +0000)] 
Fix ntpd.conf