Roy Marples
|
5c7da81448
|
Fix compile on BSD.
|
2008-03-24 01:45:37 +00:00 |
|
Roy Marples
|
a9819bfb1f
|
Split interface and socket out into OS bpf, if-bsd and if-linux.
|
2008-03-24 01:29:33 +00:00 |
|
Roy Marples
|
daee47fc1d
|
Fix compile on NetBSD
|
2008-03-20 17:03:55 +00:00 |
|
Roy Marples
|
bea09961d8
|
Remove uneeded structs.
|
2008-03-20 17:00:11 +00:00 |
|
Roy Marples
|
8d21242476
|
Change code style to match the BSDs in the hope the might adpot it instead of dhclient.
|
2008-03-20 16:47:51 +00:00 |
|
Roy Marples
|
74befdac5d
|
Work with zerolength options again.
|
2008-03-16 08:22:01 +00:00 |
|
Roy Marples
|
51660b1d47
|
Include our own queue.h only for Linux systems.
|
2008-03-05 12:34:29 +00:00 |
|
Roy Marples
|
698dd74463
|
Import STAIL_QUEUE from FreeBSD headers as not all libc's we support provide it.
|
2008-03-04 11:44:44 +00:00 |
|
Roy Marples
|
a7e70542a7
|
Add back asm/types.h direct include for crappy 2.4 linux headers.
|
2008-03-04 11:24:28 +00:00 |
|
Roy Marples
|
b7fdefd260
|
Allow --fqdn to work without an option, defaulting to both.
|
2008-03-04 11:05:23 +00:00 |
|
Roy Marples
|
bb213ed6bf
|
Release dhcpcd-3.2.3
|
2008-02-25 08:28:19 +00:00 |
|
Roy Marples
|
808f78582d
|
NIS could just be a domain without addresses.
|
2008-02-24 10:56:21 +00:00 |
|
Roy Marples
|
57a0827f70
|
Fix hostname lookup, #31
|
2008-02-23 23:12:54 +00:00 |
|
Roy Marples
|
a869183969
|
Clean up some valgrind errors.
|
2008-02-23 23:12:09 +00:00 |
|
Roy Marples
|
56f32d4037
|
As we don't use the udp socket, set the recieve buffer to 1.
|
2008-02-22 14:53:02 +00:00 |
|
Roy Marples
|
349d5cd8ea
|
Fix building on GNU/kFreeBSD, Debian #467005
|
2008-02-22 14:35:27 +00:00 |
|
Roy Marples
|
4ccd6ec66f
|
PCC compiler fixes.
|
2008-02-22 11:45:18 +00:00 |
|
Roy Marples
|
d030cc06d6
|
Always open UDP port for DHCP client t avoid more ICMP nastyness.
|
2008-02-22 10:11:21 +00:00 |
|
Roy Marples
|
33184ac664
|
ifreqs could have more than structs larger than sockaddr, so use the union size.
|
2008-02-22 09:29:40 +00:00 |
|
Roy Marples
|
817201ac0e
|
Style.
|
2008-02-21 20:55:27 +00:00 |
|
Roy Marples
|
4695df5739
|
Fix rebinding.
|
2008-02-21 20:50:01 +00:00 |
|
Roy Marples
|
f58bb07c86
|
Be more RFC conformant regarding sending server id.
|
2008-02-21 17:59:15 +00:00 |
|
Roy Marples
|
8ee31d946f
|
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.
|
2008-02-21 16:45:01 +00:00 |
|
Roy Marples
|
4259dca800
|
When renewing, talk to the server ip address.
|
2008-02-21 16:35:59 +00:00 |
|
Roy Marples
|
38ff2646bc
|
Fix mode of pidfile so any user can read it.
|
2008-02-21 16:35:15 +00:00 |
|
Roy Marples
|
1428b44665
|
Fix compile on NOMMU systems.
|
2008-02-21 07:45:02 +00:00 |
|
Roy Marples
|
6da1a3d0cf
|
Bail out of sys/queue.h lacks STAILQ
|
2008-02-20 19:09:30 +00:00 |
|
Roy Marples
|
8c43c8baa5
|
Support the PCC compiler.
|
2008-02-20 17:49:51 +00:00 |
|
Roy Marples
|
4e0e64a9d9
|
Quickly fix a valgrind error.
|
2008-02-20 17:13:12 +00:00 |
|
Roy Marples
|
92b2def08c
|
Release dhcpcd-3.2.2
|
2008-02-20 17:09:14 +00:00 |
|
Roy Marples
|
7fc53ef794
|
Use tailq from queue.h instead of rolling our down linked lists.
|
2008-02-20 17:04:56 +00:00 |
|
Roy Marples
|
946bc2424b
|
Add a comment about older linux headers and -std=c99.
|
2008-02-20 12:15:13 +00:00 |
|
Roy Marples
|
925ec2f6bd
|
Don't include -pipe by default.
|
2008-02-20 10:35:12 +00:00 |
|
Roy Marples
|
3261396e1c
|
Test each CC flag we want to set so we will work on other compilers such as pcc when it matures a little.
|
2008-02-20 10:12:40 +00:00 |
|
Roy Marples
|
7aee501895
|
Typo.
|
2008-02-19 18:31:37 +00:00 |
|
Roy Marples
|
d13f8f2808
|
Remove hardcoded defines for linux and add a nasty hackaround for glibc.
|
2008-02-19 18:30:16 +00:00 |
|
Roy Marples
|
76d06e75e8
|
Fix compile.
|
2008-02-19 17:43:39 +00:00 |
|
Roy Marples
|
f6038d23e4
|
Linux-2.6.23 finally supports -std=c99 for asm/types.h, included by headers we include.
|
2008-02-19 17:35:31 +00:00 |
|
Roy Marples
|
0d934a0ae4
|
Add comments about interupts and stop polling for events we ignore.
|
2008-02-19 09:57:27 +00:00 |
|
Roy Marples
|
1f765cc21b
|
When polling and interupted, continue as the signal will then be in our pipe.
|
2008-02-11 21:43:34 +00:00 |
|
Roy Marples
|
0ee2469dc7
|
Fix compile warning for new netlink callback header.
|
2008-02-11 21:42:53 +00:00 |
|
Roy Marples
|
568f95fa5d
|
Fix poll timeout.
|
2008-02-10 23:40:24 +00:00 |
|
Roy Marples
|
d78d972e6f
|
Fix compile on NetBSD.
|
2008-02-10 23:30:08 +00:00 |
|
Roy Marples
|
182ac3def5
|
Just warn when running as non root.
|
2008-02-10 23:08:34 +00:00 |
|
Roy Marples
|
b014ee76e1
|
Replace select with poll and nanosleep.
|
2008-02-10 23:01:44 +00:00 |
|
Roy Marples
|
ca1e79c0f8
|
We should only have one bit of code to mark sockets close_on_exec.
|
2008-02-09 21:58:05 +00:00 |
|
Roy Marples
|
2136d44495
|
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.
|
2008-02-06 10:18:03 +00:00 |
|
Roy Marples
|
c737e99e65
|
Allow hardware type to be specified in the ClientID. This is needed, as the ethernet length matches other lengths.
|
2008-02-05 21:38:00 +00:00 |
|
Roy Marples
|
0cd986e35c
|
We should block and reset our signals when daemonising also.
|
2008-02-03 22:35:48 +00:00 |
|
Roy Marples
|
1b3ab874f4
|
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.
|
2008-02-02 21:56:12 +00:00 |
|