From c396f9aa0581bfb003926cc42f6e6cea96d05205 Mon Sep 17 00:00:00 2001 From: Hanbeom kim Date: Mon, 1 Jul 2024 10:45:53 +0900 Subject: [PATCH] Rename the `chwaddr` field in `Bootp` to `chaddr` Close: #128 --- CHANGELOG.md | 7 +++++++ src/ingest/network.rs | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95df300..555731c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Rename the `chwaddr` field in `Bootp` to `chaddr`. + ## [0.19.0] - 2024-06-28 ### Added @@ -269,6 +275,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Move from giganto +[Unreleased]: https://github.com/aicers/giganto-client/compare/0.19.0...main [0.19.0]: https://github.com/aicers/giganto-client/compare/0.18.0...0.19.0 [0.18.0]: https://github.com/aicers/giganto-client/compare/0.17.0...0.18.0 [0.17.0]: https://github.com/aicers/giganto-client/compare/0.16.0...0.17.0 diff --git a/src/ingest/network.rs b/src/ingest/network.rs index e754ca8..cdd00f4 100644 --- a/src/ingest/network.rs +++ b/src/ingest/network.rs @@ -908,7 +908,7 @@ pub struct Bootp { pub yiaddr: IpAddr, pub siaddr: IpAddr, pub giaddr: IpAddr, - pub chwaddr: Vec, + pub chaddr: Vec, pub sname: String, pub file: String, } @@ -932,7 +932,7 @@ impl Display for Bootp { self.yiaddr, self.siaddr, self.giaddr, - vec_to_string_or_default(&self.chwaddr), + vec_to_string_or_default(&self.chaddr), as_str_or_default(&self.sname), as_str_or_default(&self.file), )