Commit Graph

176 Commits

Author SHA1 Message Date
abhinav
8d3dde9add Fix typo: s/obtaind/obtained 2017-01-23 11:18:02 +00:00
abhinav
b21f38a299 Fix several typos. 2017-01-23 11:09:14 +00:00
abhinav
c96e8d55f0 Fix typo: s/Unpriviledged/Unprivileged 2017-01-23 10:50:11 +00:00
christos
d5970ab2da make DEBUG_NS compile. 2016-10-09 19:38:08 +00:00
roy
a94cf675a8 Sync 2016-10-09 09:18:26 +00:00
roy
90f85a50d4 Remove files from botched import 2016-10-07 09:38:10 +00:00
roy
b2a8abed61 Import dhcpcd-6.11.4 with the following changes:
*  Fixed octal and hex string parsing in options.
  *  Several statically sized buffers have been removed and replaced
     with dynamically sized ones where we have no real idea of what
     the size will be.
  *  Reverse IPv4 route removal order.
  *  Added --small configure directive to reduce binary size
  *  Allow DHCPv6, IPv4lL and authentication to be compiled out
  *  Add support for ifa_addrflags in getifaddrs(3)
  *  Add support for ifam_addrflags and ifam_pid from route(4)
  *  If T1 or T2 are not set in DHCPv6 messages, use a default from the
     lowest pltime instead of the expiration time.
  *  Validate lease before moving to REQUEST when both ends use
     rapid commit.
  *  If lease validation fails, don't restart the DISCOVER phase if
     we're already in it.
2016-10-07 08:36:16 +00:00
christos
9acd45d4f4 provide a NO_AUTH option to strip auth for boot media; saves around 40K. 2016-09-18 15:37:23 +00:00
roy
df5ed7c4f2 Sync 2016-08-15 11:04:53 +00:00
roy
3799d64d34 Sync 2016-07-29 10:07:57 +00:00
roy
f992e6532d Sync 2016-06-17 19:42:31 +00:00
christos
b011f946a6 fix variable length stack allocation from upstream 2016-06-08 01:33:08 +00:00
prlw1
854e85e5bd Handle truncated DHCP messages, provided only the BOOTP vendor area
is truncated.  [3fd740f3ed]
OK from roy@
2016-05-26 09:09:47 +00:00
martin
6f47729145 Avoid a "conversion to '__uint16_t' from 'int' may alter its value"
error on some architectures (like m68k).
2016-05-09 20:28:08 +00:00
roy
bc693cba55 Sync 2016-05-09 10:15:59 +00:00
christos
f8e7276e29 CID 1358677: (Negative returns) tuck in poll_fd assignment in eloop_open() 2016-04-24 18:20:40 +00:00
christos
5ca807aba7 CID 1358676: Forward NULL. 2016-04-24 18:16:05 +00:00
roy
302733a775 Sync 2016-04-20 08:53:01 +00:00
roy
9c9a1de605 Sync 2016-04-10 21:00:53 +00:00
christos
65da133ce8 Handle static routes in IPv4. Routing messages for static routes have a
gateway address of AF_INET, not AF_LINK. Find the interface for that gateway.
XXX: We need to do the same for IPv6...
2016-02-01 16:47:00 +00:00
roy
239a09e1aa Sync 2016-01-20 19:42:33 +00:00
roy
26d95753d3 Sync 2016-01-07 20:09:43 +00:00
christos
0ba3ac345d CID 1341552: Fix NULL deref 2015-12-03 21:04:59 +00:00
christos
e0b573d1a4 CID 1341552: Fix NULL deref. 2015-12-03 21:04:06 +00:00
roy
2d980baa58 Sync 2015-11-30 16:33:00 +00:00
christos
9fa485335a We really mean __sysloglike here... 2015-10-14 15:58:08 +00:00
roy
9a309d287d Sync 2015-09-04 12:25:01 +00:00
christos
34bf41c699 fix bogus gcc unitialized warning 2015-08-22 05:45:57 +00:00
roy
33ca8eec34 Remove unused variable. 2015-08-21 13:24:47 +00:00
roy
d5314d23aa Sync 2015-08-21 10:39:00 +00:00
roy
76ccb05303 Sync 2015-07-09 10:15:34 +00:00
roy
7fd072243f Sync 2015-05-16 23:31:32 +00:00
roy
c2e67a9bab Import dhcpcd-6.9.0 with the following changes:
*  Fix IPv6 prefix underflow when confirming deprecated but valid leases
  *  eloop.c and .h are now 100% portable outside of dhcpcd
     (provided the system supports recent POSIX and either you or
     the system provide working TAILQ macros)
  *  Allow waitip to work per interface.
  *  Handle ND options in the same way we handle DHCP and DHCPv6 options.
  *  Add new variable of type bitflags:flags where the flags ABCDEFGH,
     A is 10000000, B is 01000000, etc.
     Variables with the name reserved are no longer processed.
  *  Improve IN_IFF_TENTATIVE with ip sharing.
2015-05-16 23:25:41 +00:00
roy
4d6391b4f4 Sync 2015-05-02 15:18:36 +00:00
christos
6bb2a64eb0 CID 1292550: Missing call to va_end(). 2015-03-31 18:01:09 +00:00
christos
c324220739 more htons uint16_t lossage 2015-03-28 14:16:52 +00:00
christos
305d2d665e cast htons 2015-03-27 18:53:15 +00:00
christos
bc65f041a3 cast htons() args. 2015-03-27 18:51:08 +00:00
roy
868e06c27f Sync 2015-03-27 11:33:46 +00:00
roy
b03ca99758 Sync 2015-03-26 10:26:37 +00:00
roy
dbc46acaa3 Import dhcpcd-6.8.0 with the following changes:
*  Use the exit code of EXIT_SUCCESS when terminating gracefully.
  *  Fix dumping a lease file by filename.
  *  If RTF_LOCAL is defined, don't try and set loopback routes.
  *  Fix adding host routes on BSD.
  *  After adding an address load the kernel routing table for the
     interface. When routes are rebuilt try not to remove any existing
     routes if they don't need changing.
  *  Replace timeval with timespec for our internal functions.
  *  Support kqueue(2).
  *  Better support for more interface types on BSD, thanks to Guy Yur.
  *  Many Prefix Delegation fixes.
  *  Fix creation of normal IPv6 link-local addresses overflowing the
     address storage and fooling dhcpcd into thinking it's not
     tentative when added.
  *  Add own syslog(3) like logging function for a nicer output and so
     we can log to a file for the case when syslogd(8) starts after
     dhcpcd so we can log any errors during system start using the new
     --logfile option.
2015-03-26 10:20:41 +00:00
roy
dc4f241359 Sync 2015-01-30 10:20:43 +00:00
roy
c40a479dcf Sync 2015-01-30 09:47:05 +00:00
roy
b7934c7750 Import dhcpcd-6.7.0 with the following changes:
*  Only release the DHCPv6 lease when dropping it.
  *  Fix handling of ND6_IFF_OVERRIDE_RTADV on BSD.
  *  Include paths.h to get _PATH_BPF. Thanks to Joerg Sonnenberger.
  *  Report a better error of the kernel lacks a BPF equivalent filter.
  *  Implement RFC4941, Privacy Extensions for Stateless Address
     Autoconfiguration in IPv6 when dhcpcd is overriding the in-kernel
     RA support. For BSD, this is a full userland implementation.
  *  reject <option> will now reject any DHCP message that contains
     that option.
  *  Ignore RA's from ourself for very badly configured stations.
2015-01-30 09:40:24 +00:00
prlw1
f44489f8dc MKINET6=no build fixes
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html
2014-12-20 13:15:48 +00:00
roy
5de3a50c7e Sync 2014-12-19 10:54:08 +00:00
roy
a850849c48 Sync 2014-12-17 20:50:08 +00:00
roy
c4df7c91c1 Sync 2014-12-09 20:21:05 +00:00
christos
765d671eef avoid macro clash. 2014-12-02 22:13:13 +00:00
roy
c1ce8e7e2b Sync 2014-11-26 16:05:14 +00:00