Skip to content

Commit

Permalink
solve malformed packet error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-weqe committed Jul 4, 2024
1 parent 2ddf8ef commit 9473787
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions holo-vrrp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ holo-vrrp = { path = ".", features = ["testing"] }
holo-protocol = { path = "../holo-protocol", features = ["testing"] }
holo-utils = { path = "../holo-utils", features = ["testing"] }

[lints]
workspace = true

[features]
default = []
testing = []
2 changes: 1 addition & 1 deletion holo-vrrp/src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl ARPframe {
hardware_type: arp_pkt.hw_type.to_be(),
protocol_type: arp_pkt.proto_type.to_be(),
hw_addr_len: arp_pkt.hw_length,
proto_addr_len: arp_pkt.hw_length,
proto_addr_len: arp_pkt.proto_length,
opcode: arp_pkt.operation.to_be(),

sender_hw_addr: arp_pkt.sender_hw_address,
Expand Down

0 comments on commit 9473787

Please sign in to comment.