209 Commits

Author SHA1 Message Date
cbrejla
a0841cb303 support v4 dhcp inform messages
Signed-off-by: cbrejla <christoph.brejla@gmail.com>
2026-02-17 19:22:48 +01:00
Anatole Denis
0be7f35fd8 Pin golangci-lint version to avoid golang forwards incompatibility
golangci-lint only supports running with an older version of go than it was
built for, so we should upgrade the version of go it runs on in lockstep with
its own version (previously we ran a pinned version of golangci-lint on the
latest stable go)

Signed-off-by: Anatole Denis <anatole@unverle.fr>
2026-02-17 19:19:59 +01:00
Rick Beton
60ec8025cd file: Homogenize logging levels with other plugins
Signed-off-by: Rick Beton <rick.beton@gmail.com>
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
2026-01-17 14:58:07 +01:00
Rick Beton
d087353b4b file: Rework leases file parsing to allow trailing comments
Also warn on duplicate IP/MAC addresses and use netip for a better API

Signed-off-by: Rick Beton <rick.beton@gmail.com>
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
2026-01-17 14:58:07 +01:00
Rick Beton
c8a9de0e8b file/tests: Close lease files before running tests
As documentation that the files aren't modified during the test

Signed-off-by: Rick Beton <rick.beton@gmail.com>
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
2026-01-17 14:58:07 +01:00
dependabot[bot]
ff70c20cff build(deps): bump github.com/spf13/viper from 1.20.1 to 1.21.0
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.20.1 to 1.21.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.20.1...v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-version: 1.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-13 21:02:40 +01:00
Anatole Denis
6b627b2954 Fix license header for range plugin tests
Fixes: da62c7b1bd5622e127f9e664659299972274e048

Signed-off-by: Anatole Denis <anatole@unverle.fr>
2026-01-12 20:07:56 +01:00
Nikita Vakula
da62c7b1bd
Add DHCP RELEASE message support (#266)
Implement DHCP RELEASE message handling in the range plugin

Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
2026-01-10 20:59:01 +01:00
dependabot[bot]
23bac1fa46 build(deps): bump github.com/bits-and-blooms/bitset
Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset) from 1.24.0 to 1.24.2.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases)
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.24.0...v1.24.2)

---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
  dependency-version: 1.24.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-10 20:26:10 +01:00
dependabot[bot]
82d835523c build(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
Bumps [github.com/spf13/pflag](https://github.com/spf13/pflag) from 1.0.7 to 1.0.10.
- [Release notes](https://github.com/spf13/pflag/releases)
- [Commits](https://github.com/spf13/pflag/compare/v1.0.7...v1.0.10)

---
updated-dependencies:
- dependency-name: github.com/spf13/pflag
  dependency-version: 1.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-10 20:09:30 +01:00
dependabot[bot]
cb7a587ab9 build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.10.0 to 1.11.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-10 20:04:27 +01:00
Anatole Denis
7b3293c9ae Bump go versions to supported releases
Signed-off-by: Anatole Denis <anatole@unverle.fr>
2026-01-10 19:54:42 +01:00
Anatole Denis
9ec2ea1360 Bump golangci-lint version in CI
Signed-off-by: Anatole Denis <anatole@unverle.fr>
2026-01-10 19:54:42 +01:00
dependabot[bot]
d2ed887fca build(deps): bump github.com/bits-and-blooms/bitset
Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset) from 1.22.0 to 1.24.0.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases)
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.22.0...v1.24.0)

---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
  dependency-version: 1.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-27 18:40:30 +02:00
dependabot[bot]
2924b46119 build(deps): bump github.com/mattn/go-sqlite3 from 1.14.29 to 1.14.32
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.29 to 1.14.32.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.29...v1.14.32)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-version: 1.14.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-27 18:36:13 +02:00
dependabot[bot]
90aa63bfde build(deps): bump github.com/spf13/cast from 1.7.1 to 1.10.0
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.7.1 to 1.10.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.7.1...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-version: 1.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-27 18:32:00 +02:00
dependabot[bot]
caeece72fe build(deps): bump golang.org/x/net from 0.42.0 to 0.44.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.42.0 to 0.44.0.
- [Commits](https://github.com/golang/net/compare/v0.42.0...v0.44.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-27 18:27:53 +02:00
Wielewout
f7e98e4e35 feat(plugins/range): add support for a single IP address
This is mainly done for usage in a test context, where it would be nice to ensure that only a single IP address can be used.

Signed-off-by: Wielewout <vandewiel.wout@gmail.com>
2025-08-06 09:02:28 +02:00
dependabot[bot]
4593bd5854 build(deps): bump github.com/spf13/viper from 1.20.0 to 1.20.1
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.20.0 to 1.20.1.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.20.0...v1.20.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-29 14:53:02 +02:00
dependabot[bot]
8ab2084b85 build(deps): bump github.com/fsnotify/fsnotify from 1.8.0 to 1.9.0
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases)
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
  dependency-version: 1.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-29 14:34:45 +02:00
dependabot[bot]
0dc339c7a1 build(deps): bump golang.org/x/net from 0.38.0 to 0.42.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.38.0 to 0.42.0.
- [Commits](https://github.com/golang/net/compare/v0.38.0...v0.42.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-29 14:30:12 +02:00
dependabot[bot]
ab11710c44 build(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7
Bumps [github.com/spf13/pflag](https://github.com/spf13/pflag) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/spf13/pflag/releases)
- [Commits](https://github.com/spf13/pflag/compare/v1.0.6...v1.0.7)

---
updated-dependencies:
- dependency-name: github.com/spf13/pflag
  dependency-version: 1.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-29 14:25:22 +02:00
dependabot[bot]
ae9b085bf9 build(deps): bump github.com/mattn/go-sqlite3 from 1.14.24 to 1.14.29
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.24 to 1.14.29.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.24...v1.14.29)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-version: 1.14.29
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-29 14:19:55 +02:00
Andrea Barberio
9e581a5631 Updated dependencies
To address dependabot alerts.

Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2025-04-23 16:39:40 +02:00
dependabot[bot]
6d3dd835d9 build(deps): bump github.com/bits-and-blooms/bitset
Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset) from 1.20.0 to 1.22.0.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases)
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.20.0...v1.22.0)

---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-19 12:34:00 +01:00
dependabot[bot]
3df9e41f5a build(deps): bump github.com/spf13/viper from 1.19.0 to 1.20.0
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-19 12:32:40 +01:00
Andrea Barberio
dc09130d05 Fixed example: reference to sqlite3 db rather than old txt file
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2025-03-19 12:30:56 +01:00
dependabot[bot]
cbc175753a build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-13 17:38:32 +01:00
dependabot[bot]
2fc7b54581 build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-30 15:11:50 +01:00
dependabot[bot]
dbe6146a3e build(deps): bump github.com/spf13/cast from 1.7.0 to 1.7.1
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-30 15:08:51 +01:00
dependabot[bot]
830217b2f8 build(deps): bump github.com/vishvananda/netns from 0.0.4 to 0.0.5
Bumps [github.com/vishvananda/netns](https://github.com/vishvananda/netns) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/vishvananda/netns/releases)
- [Commits](https://github.com/vishvananda/netns/compare/v0.0.4...v0.0.5)

---
updated-dependencies:
- dependency-name: github.com/vishvananda/netns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-30 15:07:26 +01:00
Andrea Barberio
d477d9b2cc Added Dockerfile and docker-compose.yml
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2024-12-29 08:00:53 +01:00
dependabot[bot]
cbe78a7c73 build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-25 20:17:46 +01:00
dependabot[bot]
b5a6138d2c build(deps): bump github.com/bits-and-blooms/bitset
Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset) from 1.19.1 to 1.20.0.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases)
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.19.1...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-25 20:17:16 +01:00
Andrea Barberio
14762bf010 Updated dependencies
Also fixes https://github.com/coredhcp/coredhcp/security/dependabot/25

Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2024-12-15 13:41:11 +01:00
Andrea Barberio
6fcc48bde6 Upload build artifacts
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2024-12-15 13:33:05 +01:00
dependabot[bot]
576af8676f build(deps): bump github.com/bits-and-blooms/bitset
Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset) from 1.13.0 to 1.14.2.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases)
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.13.0...v1.14.2)

---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-08 20:42:40 +02:00
Anatole Denis
bd8c8089a5 Remove use of deprecated rand.Read
Using the global rand source is deprecated since go 1.20, so instead we
make an explicit local one with a fixed seed

Signed-off-by: Anatole Denis <anatole@unverle.fr>
2024-07-09 11:23:56 +02:00
dependabot[bot]
61e82ae633 build(deps): bump github.com/spf13/viper from 1.18.2 to 1.19.0
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.18.2 to 1.19.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.18.2...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 09:28:07 +02:00
dependabot[bot]
634fcf30c6 build(deps): bump golang.org/x/net from 0.24.0 to 0.27.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.24.0 to 0.27.0.
- [Commits](https://github.com/golang/net/compare/v0.24.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 08:12:32 +02:00
Anatole Denis
28988eb6c1 server: Ignore net.ErrClosed errors when shutting down
Also make server.Wait wait for all the listeners to exit, instead of
returning when the first one closes, which we couldn't do before because
of the spurious errors it would return

errors.Join requires go 1.20, update go.mod

Fixes #103

Signed-off-by: Anatole Denis <anatole@unverle.fr>
2024-05-05 17:29:20 +02:00
dependabot[bot]
e3f75291db build(deps): bump golang.org/x/net from 0.20.0 to 0.24.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.24.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 22:53:28 +02:00
dependabot[bot]
8454246d26 build(deps): bump github.com/mattn/go-sqlite3 from 1.14.19 to 1.14.22
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.19 to 1.14.22.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.19...v1.14.22)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 22:53:01 +02:00
dependabot[bot]
53d704b3e3 build(deps): bump github.com/vishvananda/netns
Bumps [github.com/vishvananda/netns](https://github.com/vishvananda/netns) from 0.0.0-20210104183010-2eb08e3e575f to 0.0.4.
- [Release notes](https://github.com/vishvananda/netns/releases)
- [Commits](https://github.com/vishvananda/netns/commits/v0.0.4)

---
updated-dependencies:
- dependency-name: github.com/vishvananda/netns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 22:49:47 +02:00
dependabot[bot]
b4a96a2f19 build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 22:47:31 +02:00
dependabot[bot]
4ce3984f29 build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 22:38:58 +02:00
insomniac
1f2a10b791 Create dependabot.yml
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2024-05-01 22:38:21 +02:00
Anatole Denis
dfd0594edf Add README note to the debugging client
Signed-off-by: Anatole Denis <anatole@unverle.fr>
2024-03-14 08:56:32 +01:00
Anatole Denis
f97f9f36e8 integ: Use go 1.20 integration cover support
go 1.20 now has built-in merging of cover profiles, using GOCOVERDIR and
the `go tool covdata` command.
This feature requires running integration tests as "normal" binaries
instead of tests, so I've updated the server6_test accordingly

cf https://go.dev/blog/integration-test-coverage

Signed-off-by: Anatole Denis <anatole@unverle.fr>
2024-02-29 11:28:45 +01:00
Anatole Denis
bb0406dadf actions: Update codecov uploader and simplify unit-test runner
The newer version of the codecov uploader requires the token to be
explicitly passed.
Use globs in codecov.yml to make it easier for forks of the repository
to get coverage information

Signed-off-by: Anatole Denis <anatole@unverle.fr>
2024-02-29 11:28:45 +01:00