Added DHCPv4 Client
This adds a bare-bones DHCPv4 client. Currently leases are handled by a single callback which
can then be used to implement option observers and other ways to deal with them.
Test Plan: Some tests already here, more coming.
X-Origin-Diff: phab/D645
GitOrigin-RevId: 76fae7080cdd8ba59cf77368179cae0bc9c9c824
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index dd79302..e934373 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -911,8 +911,8 @@
go_repository(
name = "com_github_insomniacslk_dhcp",
importpath = "github.com/insomniacslk/dhcp",
- version = "v0.0.0-20200402185128-5dd7202f1971",
- sum = "h1:P1pxzF2xvdnSY12ODSSwjxA4tyEjDEJNn829OXKnqks=",
+ version = "v0.0.0-20200922210017-67c425063dca",
+ sum = "h1:zhwTlFGM8ZkD5J/c43IWkxSJQWzhm20QWou8zajbCck=",
)
go_repository(
name = "com_github_j_keck_arping",
@@ -1079,8 +1079,8 @@
go_repository(
name = "com_github_mdlayher_raw",
importpath = "github.com/mdlayher/raw",
- version = "v0.0.0-20190606142536-fef19f00fc18",
- sum = "h1:zwOa3e/13D6veNIz6zzuqrd3eZEMF0dzD0AQWKcYSs4=",
+ version = "v0.0.0-20191009151244-50f2db8cc065",
+ sum = "h1:aFkJ6lx4FPip+S+Uw4aTegFMct9shDvP+79PsSxpm3w=",
)
go_repository(
name = "com_github_miekg_dns",
@@ -1460,8 +1460,8 @@
go_repository(
name = "com_github_u_root_u_root",
importpath = "github.com/u-root/u-root",
- version = "v6.0.0+incompatible",
- sum = "h1:YqPGmRoRyYmeg17KIWFRSyVq6LX5T6GSzawyA6wG6EE=",
+ version = "v7.0.0+incompatible",
+ sum = "h1:u+KSS04pSxJGI5E7WE4Bs9+Zd75QjFv+REkjy/aoAc8=",
)
go_repository(
name = "com_github_urfave_cli",
diff --git a/third_party/go/shelf.pb.text b/third_party/go/shelf.pb.text
index 6eb9603..e78522e 100644
--- a/third_party/go/shelf.pb.text
+++ b/third_party/go/shelf.pb.text
@@ -1378,6 +1378,13 @@
semver: "v0.0.0-20200402185128-5dd7202f1971"
>
entry: <
+ import_path: "github.com/insomniacslk/dhcp"
+ version: "67c425063dcad32c5d14ce9a520c8865240dc945"
+ bazel_name: "com_github_insomniacslk_dhcp"
+ sum: "h1:zhwTlFGM8ZkD5J/c43IWkxSJQWzhm20QWou8zajbCck="
+ semver: "v0.0.0-20200922210017-67c425063dca"
+>
+entry: <
import_path: "github.com/j-keck/arping"
version: "v0.0.0-20160618110441-2cf9dc699c56"
bazel_name: "com_github_j_keck_arping"
@@ -1574,6 +1581,13 @@
semver: "v0.0.0-20190606142754-0394541c37b7"
>
entry: <
+ import_path: "github.com/mdlayher/ethernet"
+ version: "v0.0.0-20190606142754-0394541c37b7"
+ bazel_name: "com_github_mdlayher_ethernet"
+ sum: "h1:lez6TS6aAau+8wXUP3G9I3TGlmPFEq2CTxBaRqY6AGE="
+ semver: "v0.0.0-20190606142754-0394541c37b7"
+>
+entry: <
import_path: "github.com/mdlayher/genetlink"
version: "v1.0.0"
bazel_name: "com_github_mdlayher_genetlink"
@@ -1602,6 +1616,13 @@
semver: "v0.0.0-20190606142536-fef19f00fc18"
>
entry: <
+ import_path: "github.com/mdlayher/raw"
+ version: "v0.0.0-20191009151244-50f2db8cc065"
+ bazel_name: "com_github_mdlayher_raw"
+ sum: "h1:aFkJ6lx4FPip+S+Uw4aTegFMct9shDvP+79PsSxpm3w="
+ semver: "v0.0.0-20191009151244-50f2db8cc065"
+>
+entry: <
import_path: "github.com/miekg/dns"
version: "v1.0.14"
bazel_name: "com_github_miekg_dns"
@@ -2232,6 +2253,13 @@
semver: "v6.0.0+incompatible"
>
entry: <
+ import_path: "github.com/u-root/u-root"
+ version: "v7.0.0+incompatible"
+ bazel_name: "com_github_u_root_u_root"
+ sum: "h1:u+KSS04pSxJGI5E7WE4Bs9+Zd75QjFv+REkjy/aoAc8="
+ semver: "v7.0.0+incompatible"
+>
+entry: <
import_path: "github.com/urfave/cli"
version: "bfe2e925cfb6d44b40ad3a779165ea7e8aff9212"
bazel_name: "com_github_urfave_cli"