Dmitry Kovba
1d9140cc8a
Add a route when a gateway is outside a subnet ( #488 )
...
When we set a gateway outside a subnet in Linux, this fails with:
```
ip-route-add-default: netlink response indicates error, rc = -101
```
To resolve the error, we should first add a route to the gateway outside
the subnet, which this PR does.
2026-01-22 18:57:46 -08:00
J Logan
8da5f2306d
Move Bindable to ContainerizationExtras, fix binding bugs. ( #481 )
...
- Bindable is generally useful, so it makes sense to move it out of the
netlink library. Removed Equatable conformance from Bindable as this
isn't generally necessary (it's only used for unit tests in netlink).
- Fix some offset checks in a couple data binding functions and improve
the unit tests.
2026-01-21 15:34:10 -08:00
Kathryn Baldauf
ec2ee3e94d
Update license header on all files to include the current year ( #470 )
...
Related to https://github.com/apple/container/pull/1024
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com >
2026-01-05 13:08:48 -08:00
Danny Canter
cbb48bc0fd
vminitd: Strip binaries ( #464 )
2026-01-01 17:07:14 -08:00
J Logan
9f2742abf4
Handle multiple messages in netlink responses. ( #460 )
...
- Closes #459 .
- Loop in `parseResponse()` until all data is consumed.
- Add properties to LinkResponse for `isEthernet`, `isLoopback`,
`address`.
2025-12-29 08:06:34 -08:00
J Logan and Agam Dua
9ba8267afb
Use typesafe IP/CIDR parameters everywhere. ( #448 )
...
- Closes #445 .
- Adopts refined IPv4 and IPv6 types developed
by Agam Dua <agamdua@users.noreply.github.com >.
- For type safety and clarity, use IP and CIDR types
where we were previously using String.
Co-authored-by: Agam Dua <agamdua@users.noreply.github.com >
2025-12-16 09:58:44 -03:00
J Logan
995a231348
Removes "all rights reserved" from license header. ( #309 )
2025-10-03 13:27:59 -07:00
Raj
ad219fecf1
Make MTU configurable for Netlink ( #204 )
...
Here we add the implementation to make MTU value configurable instead of
hardcoding in `linkSet`.
2025-07-08 15:54:57 -07:00
Michael Crosby
5d2d7a1bc3
update license header removing new line ( #99 )
...
Fixes #63
Signed-off-by: crosbymichael <michael_crosby@apple.com >
2025-06-12 09:57:35 -04:00
J Logan
e285dc0dd4
Set MTU to 1280 for containers. ( #38 )
...
- Needed for alpine containers in some instances.
- This should be configurable. Hardcoding in linkSet for now.
2025-06-08 21:02:23 -07:00
Danny Canter
f49f668936
Updates to license headers ( #17 )
...
- Capitalize containerization.
- Wrap "All rights reserved" to a new line.
Signed-off-by: Danny Canter <danny_canter@apple.com >
2025-06-05 16:16:22 -07:00
+6
3407cc3f16
initial commit
...
Co-authored-by: Aditya Ramani <a_ramani@apple.com >
Co-authored-by: Agam Dua <agam_dua@apple.com >
Co-authored-by: Danny Canter <danny_canter@apple.com >
Co-authored-by: Dmitry Kovba <dkovba@apple.com >
Co-authored-by: Eric Ernst <eric_ernst@apple.com >
Co-authored-by: Evan Hazlett <ehazlett@apple.com >
Co-authored-by: Gilbert Song <gilbertsong@apple.com >
Co-authored-by: Hugh Bussell <hbussell@apple.com >
Co-authored-by: John Logan <john_logan@apple.com >
Co-authored-by: Kathryn Baldauf <k_baldauf@apple.com >
Co-authored-by: Madhu Venugopal <mvenugopal@apple.com >
Co-authored-by: Michael Crosby <michael_crosby@apple.com >
Co-authored-by: Sidhartha Mani <sidhartha_mani@apple.com >
Co-authored-by: Tanweer Noor <tnoor@apple.com >
Co-authored-by: Ximena Perez Diaz <xperez528@gmail.com >
Co-authored-by: Yibo Zhuang <yzhuang@apple.com >
2025-06-05 16:15:21 -07:00