<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-03-27T15:00:17+00:00</updated>
<entry>
<title>T8410: Fix typos and mistakes for comments and messages</title>
<updated>2026-03-27T15:00:17+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2026-03-27T14:43:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=139b0841f8242a5c6ebdafb37380c1fb78342aae'/>
<id>urn:sha1:139b0841f8242a5c6ebdafb37380c1fb78342aae</id>
<content type='text'>
Fix typos and mistakes
No functional changes
</content>
</entry>
<entry>
<title>T8188: Preserve static IPv4 addresses flushed by dhclient</title>
<updated>2026-03-19T16:07:08+00:00</updated>
<author>
<name>Nataliia Solomko</name>
<email>natalirs1985@gmail.com</email>
</author>
<published>2026-02-04T12:55:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=2a6a63391173e8cef9354a696e188e90f43def74'/>
<id>urn:sha1:2a6a63391173e8cef9354a696e188e90f43def74</id>
<content type='text'>
When dhclient renews/rebinds a lease, it calls "ip -4 addr flush dev
&lt;interface&gt;". This removes ALL IPv4 addresses, including static
addresses configured via VyOS (e.g., "set interfaces ethernet eth0
address 192.168.1.1/24").
The updated hook logic now intercepts the "ip -4 addr flush" command and replaces
it with a selective flush that only removes addresses marked as
"dynamic" by the kernel. DHCP-assigned addresses have the "dynamic" flag
set automatically.
</content>
</entry>
<entry>
<title>T7941: fix DHCP client running in VRF with non-word characters</title>
<updated>2025-10-18T11:19:10+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-10-18T11:14:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=6a5cd3b87b2dee397ddb4a72dffd25e4e24122f1'/>
<id>urn:sha1:6a5cd3b87b2dee397ddb4a72dffd25e4e24122f1</id>
<content type='text'>
The previous implementation used awk with a regex to extract the VRF name from
JSON data, relying on "(\w+)" to match the value. This broke for valid VRF
names containing hyphens or other non-word characters.

This update replaces the regex-based extraction with a jq query that reliably
parses the JSON structure, ensuring correct behavior regardless of VRF name
format. This also reduces parsing fragility by using a tool purpose-built for
JSON processing.
</content>
</entry>
<entry>
<title>dhclient: T6667: Added workaround for communication with FRR</title>
<updated>2024-08-24T08:06:39+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2024-08-21T18:55:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=da64a7246e9b12d5bd84287517cfbfa59e364c28'/>
<id>urn:sha1:da64a7246e9b12d5bd84287517cfbfa59e364c28</id>
<content type='text'>
To increase the chance for dhclient to configure routes in FRR, added a
workaround. Now 10 attempts are performed with 1 second delay and only after
this dhclient gives up.
</content>
</entry>
<entry>
<title>T4405: Fix administrative distance of DHCP routes</title>
<updated>2022-05-10T15:56:01+00:00</updated>
<author>
<name>Dmitri Toubelis</name>
<email>dtoubelis@users.noreply.github.com</email>
</author>
<published>2022-05-05T05:41:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=636e9dc5b2b8e8911ff8d704b553b8d285ad6f1e'/>
<id>urn:sha1:636e9dc5b2b8e8911ff8d704b553b8d285ad6f1e</id>
<content type='text'>
- Default dhclient script only uses value of `$IF_MERIC` envvar for default route recived via `router` option.
- This variable has no effect on rotes received via `rfc3442-classless-static-routes` option
- Considering that Vyos overrrides `ip` command originating from `dhclient` this can be easily fixed in `iptovtysh()` function by using the `$IF_METRIC` envvar directly in the dhclient hook.

(cherry picked from commit 0c00e7bf8b6e68814607fde4ff0cd70ce9f4b486)
</content>
</entry>
<entry>
<title>Revert "dhclient: T3392: remove /usr/sbin prefix from iproute2 ip command"</title>
<updated>2022-02-01T07:00:58+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-02-01T07:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=bf549b34e7daab7e843176bc1c8a8d03148f3840'/>
<id>urn:sha1:bf549b34e7daab7e843176bc1c8a8d03148f3840</id>
<content type='text'>
This reverts commit 78b247b724f74bdabab0706aaa7f5b00e5809bc1.
</content>
</entry>
<entry>
<title>dhclient: T3392: remove /usr/sbin prefix from iproute2 ip command</title>
<updated>2022-01-28T21:15:29+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-01-28T21:15:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=78b247b724f74bdabab0706aaa7f5b00e5809bc1'/>
<id>urn:sha1:78b247b724f74bdabab0706aaa7f5b00e5809bc1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhclient: T3392: Changed dhclient-script hooks for VRF</title>
<updated>2021-04-14T22:37:50+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2021-04-14T21:20:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=9ec8e2b6dc8144d4d5a17e53b1c183e22497580f'/>
<id>urn:sha1:9ec8e2b6dc8144d4d5a17e53b1c183e22497580f</id>
<content type='text'>
There were two problems with VRF support inside dhclient-script:
- VRF check inside the `01-vyos-cleanup` hook was needless because it will be done inside the `03-vyos-ipwrapper` anyway;
- VRF was ignored for in-kernel routes in `03-vyos-ipwrapper`. Theoretically, there must be no situation now when this can leads to a real problem, but better will be to keep both kernel and FRR backends in sync.

Also, the way to get and use a VRF name was changed to an easier one.
</content>
</entry>
<entry>
<title>dhcp: T3392: fix VRF detection</title>
<updated>2021-03-08T19:20:00+00:00</updated>
<author>
<name>Brandon Stepler</name>
<email>brandon@stepler.net</email>
</author>
<published>2021-03-08T19:20:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=ce0600e97baec18c1781605f3a80c26d4ed01e2b'/>
<id>urn:sha1:ce0600e97baec18c1781605f3a80c26d4ed01e2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dhcp: T3300: add DHCP default route distance</title>
<updated>2021-02-15T15:30:00+00:00</updated>
<author>
<name>Brandon Stepler</name>
<email>brandon@stepler.net</email>
</author>
<published>2021-02-15T15:30:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=dd2eb5e5686655c996ae95285b8ad7eb73d63d0b'/>
<id>urn:sha1:dd2eb5e5686655c996ae95285b8ad7eb73d63d0b</id>
<content type='text'>
</content>
</entry>
</feed>
