#
38c63b52 |
| 23-Sep-2024 |
Michael Osipov <michaelo@FreeBSD.org> |
dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925
Ignore DHCP options 124 and 125 to shut up the warning messages. These options are defined in the RFC 3925.
PR: 281361 Reviewed
dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925
Ignore DHCP options 124 and 125 to shut up the warning messages. These options are defined in the RFC 3925.
PR: 281361 Reviewed by: jrm (mentor), otis (mentor), thj Tested by: jlduran@gmail.com MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D46760
show more ...
|
Revision tags: release/13.4.0 |
|
#
b51569ad |
| 08-Jul-2024 |
Isaac Cilia Attard <icattard@FreeBSD.org> |
dhclient: Make arp_timeout configurable
Make arp_timeout available to dhclient.c, set the default timeout to 250 ms, and provide a new command-line argument, 'n' for setting the timeout to 0.
Spons
dhclient: Make arp_timeout configurable
Make arp_timeout available to dhclient.c, set the default timeout to 250 ms, and provide a new command-line argument, 'n' for setting the timeout to 0.
Sponsored by: Google LLC (GSoC 2024) Signed-off-by: Isaac Cilia Attard <icattard@FreeBSD.org> MFC after: 10 days Reviwed by: cperciva, brooks, Tom Hukins, Alexander Ziaee Pull Request: https://github.com/freebsd/freebsd-src/pull/1368
show more ...
|
#
f0a38976 |
| 08-Jul-2024 |
Isaac Cilia Attard <icattard@FreeBSD.org> |
dhclient: Use clock_gettime() instead of time()
Change the use of time() to clock_gettime() to have millisecond-accurate rather than second-accurate timeouts.
Sponsored by: Google LLC (GSoC 2024) S
dhclient: Use clock_gettime() instead of time()
Change the use of time() to clock_gettime() to have millisecond-accurate rather than second-accurate timeouts.
Sponsored by: Google LLC (GSoC 2024) Signed-off-by: Isaac Cilia Attard <icattard@FreeBSD.org> MFC after: 10 days Reviwed by: cperciva, brooks, Tom Hukins, Alexander Ziaee Pull Request: https://github.com/freebsd/freebsd-src/pull/1368
show more ...
|
#
76e0ffd9 |
| 08-Jul-2024 |
Isaac Cilia Attard <icattard@FreeBSD.org> |
dhclient: Timeouts for entering state_selecting
Use the new add_timeout_timespec() API to handle timeouts for state_selecting within dhclient.c. No functional change intended.
Sponsored by: Google
dhclient: Timeouts for entering state_selecting
Use the new add_timeout_timespec() API to handle timeouts for state_selecting within dhclient.c. No functional change intended.
Sponsored by: Google LLC (GSoC 2024) Signed-off-by: Isaac Cilia Attard <icattard@FreeBSD.org> MFC after: 10 days Reviwed by: cperciva, brooks, Tom Hukins, Alexander Ziaee Pull Request: https://github.com/freebsd/freebsd-src/pull/1368
show more ...
|
#
ac6dc5cd |
| 04-Jul-2024 |
Yuichiro NAITO <naito.yuichiro@gmail.com> |
dhclient: Ignore SIP servers DHCP option defined in RFC 3361
Ignore SIP servers dhcp option to shut up the warning message. This option is defined in the RFC 3361 and sent from NSD-G1000T router.
P
dhclient: Ignore SIP servers DHCP option defined in RFC 3361
Ignore SIP servers dhcp option to shut up the warning message. This option is defined in the RFC 3361 and sent from NSD-G1000T router.
PR: 280119 Reviewed by: jrm (mentor), brooks MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D45873
show more ...
|
Revision tags: release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0 |
|
#
461ccb55 |
| 14-Mar-2023 |
Rob Norris <rob.norris@klarasystems.com> |
dhclient: add ability to ignore options in offers
A machine might exist on multiple networks, all of which offer, say, default routes or name servers. There's no easy way to indicate in the config t
dhclient: add ability to ignore options in offers
A machine might exist on multiple networks, all of which offer, say, default routes or name servers. There's no easy way to indicate in the config that those options are only valid for a single interface.
Now, we can write:
interface "lan0" { request routers; require routers; } interface "lan1" { ignore routers; }
And only take action on default routes offered on lan0.
Tested by: Jose Luis Duran <jlduran at gmail dot com> MFC after: 2 months Reviewed by: allanjude, imp Sponsored by: Zenith Electronics LLC Sponsored by: Klara, Inc. Pull Request: #693
show more ...
|
Revision tags: release/12.4.0 |
|
#
3492caf5 |
| 14-Nov-2022 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
dhclient(8): Verify lease-, renewal- and rebinding-time option sizes.
Else out-of-bound reads and undefined behaviour may happen. The current code only checked for the presence of the first of four
dhclient(8): Verify lease-, renewal- and rebinding-time option sizes.
Else out-of-bound reads and undefined behaviour may happen. The current code only checked for the presence of the first of four bytes. Make sure the fields in question have the minium size required.
No functional change intended.
Reviewed by: rrs@ MFC after: 1 week Sponsored by: NVIDIA Networking
show more ...
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
0a539a0f |
| 18-Aug-2021 |
Fabian Kurtz <fabian.kurtz@udo.edu> |
dhclient: support supersede statement for option 54
PR: 217978 Reported by: Franco Fichtner <franco@opnsense.org> Reviewed by: markj Obtained from: OPNsense MFC after: 1 week Differential Revision:
dhclient: support supersede statement for option 54
PR: 217978 Reported by: Franco Fichtner <franco@opnsense.org> Reviewed by: markj Obtained from: OPNsense MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D31503
show more ...
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
74aed808 |
| 29-Nov-2019 |
Conrad Meyer <cem@FreeBSD.org> |
Fix braino in previous bugfix r300174
The previous revision missed the exact same error in a copy paste block of the same code in another function. Fix the identical case, too.
A DHCP client ident
Fix braino in previous bugfix r300174
The previous revision missed the exact same error in a copy paste block of the same code in another function. Fix the identical case, too.
A DHCP client identifier is simply the hardware type (one byte) concatenated with the hardware address (some variable number of bytes, but at most 16). Limit the size of the temporary buffer to match and the rest of the calculations shake out correctly.
PR: 238022 Reported by: Young <yangx92 AT hotmail.com> Submitted by: Young <yangx92 AT hotmail.com> MFC after: I don't plan to but you should feel free Security: yes
show more ...
|
#
130cfcf3 |
| 22-Nov-2019 |
Dave Cottlehuber <dch@FreeBSD.org> |
dhclient: support option 114, default-url ascii
This will enable further automation of HTTP UEFI boot loader support by providing a specific option for providing the boot URL to FreeBSD.
Documented
dhclient: support option 114, default-url ascii
This will enable further automation of HTTP UEFI boot loader support by providing a specific option for providing the boot URL to FreeBSD.
Documented in:
https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml https://kb.isc.org/docs/isc-dhcp-44-manual-pages-dhcp-options https://tools.ietf.org/html/rfc3679
Approved by: emaste MFC after: 2 weeks Sponsored by: SkunkWerks, GmbH Differential Revision: https://reviews.freebsd.org/D22475
show more ...
|
Revision tags: release/12.1.0, release/11.3.0 |
|
#
18b18078 |
| 25-Feb-2019 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r344527
|
#
a8fe8db4 |
| 25-Feb-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r344178 through r344512.
|
#
221e5d2d |
| 24-Feb-2019 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Further refine r336195: do not even attempt to verify/update interface's MTU if we've set it once and there were no changes on the DHCP server side since the last refresh. This is consistent I believ
Further refine r336195: do not even attempt to verify/update interface's MTU if we've set it once and there were no changes on the DHCP server side since the last refresh. This is consistent I believe with how dhclient handles other settings like IP address, mask etc.
Approved by: cem, eugen Differential Revision: https://reviews.freebsd.org/D18546
show more ...
|
#
9e43c218 |
| 10-Feb-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r343807 through r343955.
|
#
3b08e0fc |
| 09-Feb-2019 |
Jilles Tjoelker <jilles@FreeBSD.org> |
dhclient: Return non-zero status when script exits due to a signal
r343896 made it such that a non-zero exit status was passed through, but was still wrong if the script exits on a signal. POSIX doe
dhclient: Return non-zero status when script exits due to a signal
r343896 made it such that a non-zero exit status was passed through, but was still wrong if the script exits on a signal. POSIX does not say what the WEXITSTATUS macro returns in this case and in practice 0 is a common value.
Instead, translate the wait status into 8 bits the same way as the shell calculates $?.
Reviewed by: kib, Nash Kaminski MFC after: 1 week
show more ...
|
#
95f237c2 |
| 08-Feb-2019 |
Konstantin Belousov <kib@FreeBSD.org> |
Correctly return exit status from the exited process.
This is also OpenBSD rev. 1.117, as pointed out by Ryan Moeller <ryan@ixsystems.com>.
Submitted by: Nash Kaminski <nashkaminski@gmail.com> MFC
Correctly return exit status from the exited process.
This is also OpenBSD rev. 1.117, as pointed out by Ryan Moeller <ryan@ixsystems.com>.
Submitted by: Nash Kaminski <nashkaminski@gmail.com> MFC after: 1 week
show more ...
|
Revision tags: release/12.0.0 |
|
#
c06e7b66 |
| 07-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340126 through r340212.
|
#
377421df |
| 04-Nov-2018 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
capsicum: use a new capsicum helpers in tools
Use caph_{rights,ioctls,fcntls}_limit to simplify the code.
|
#
14b841d4 |
| 11-Aug-2018 |
Kyle Evans <kevans@FreeBSD.org> |
MFH @ r337607, in preparation for boarding
|
#
f9c0a512 |
| 10-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r337286 through r337585.
|
#
17cfcf1d |
| 07-Aug-2018 |
Mark Johnston <markj@FreeBSD.org> |
dhclient: Enter capability mode before dropping privileges.
This is needed to be able to chroot in the fallback case where Capsicum is not available.
Reported by: Daniel Braniss <danny@cs.huji.ac.i
dhclient: Enter capability mode before dropping privileges.
This is needed to be able to chroot in the fallback case where Capsicum is not available.
Reported by: Daniel Braniss <danny@cs.huji.ac.il> X-MFC with: r337382 Sponsored by: The FreeBSD Foundation
show more ...
|
#
976e1003 |
| 06-Aug-2018 |
Mark Johnston <markj@FreeBSD.org> |
dhclient: Don't chroot if we are in capability mode.
The main dhclient process is Capsicumized but also chroots to restrict filesystem access. With r322369, pidfile(3) maintains a directory descrip
dhclient: Don't chroot if we are in capability mode.
The main dhclient process is Capsicumized but also chroots to restrict filesystem access. With r322369, pidfile(3) maintains a directory descriptor for the pidfile, which can cause the chroot to fail in certain cases. To minimize the problem, only chroot if we fail to enter capability mode, and store dhclient pidfiles in a subdirectory of /var/run, thus restricting access via pidfile(3)'s directory descriptor.
PR: 223327 Reviewed by: cem, oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D16584
show more ...
|
#
b537db69 |
| 25-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
dhclient: recorrect __progname to getprogname()
A more correct way to modernize code that uses __progname is to just replace each occurance of it with a call to getprogname(3)
Reported by: ian Revi
dhclient: recorrect __progname to getprogname()
A more correct way to modernize code that uses __progname is to just replace each occurance of it with a call to getprogname(3)
Reported by: ian Reviewed by: imp
show more ...
|
#
71c6c44d |
| 24-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
dhclient: build with WARNS=6
- add static in a number of places - initialize __progname rather than rely on magical extern values - use nitems() instead of manually spelling it out - unshadow 'idi'
dhclient: build with WARNS=6
- add static in a number of places - initialize __progname rather than rely on magical extern values - use nitems() instead of manually spelling it out - unshadow 'idi' - teach 'error' that it is '__dead2' - add missing 'break'
show more ...
|