Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wol] Extend wol to support sending magic pattern in udp payload #20523

Merged
merged 7 commits into from
Oct 18, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sonic-nettools/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target/
bin/
.vscode/
.vscode/
*.pcap
5 changes: 3 additions & 2 deletions src/sonic-nettools/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/sonic-nettools/Makefile
Original file line number Diff line number Diff line change
@@ -14,4 +14,10 @@ endif

clean:
rm -rf target
rm -rf bin
rm -rf bin

test:
cargo test

fmt:
cargo clippy
1 change: 1 addition & 0 deletions src/sonic-nettools/wol/Cargo.toml
Original file line number Diff line number Diff line change
@@ -5,3 +5,4 @@ version = "0.0.1"
[dependencies]
pnet = "0.35.0"
clap = { version = "4.5.7", features = ["derive"] }
libc = "0.2.159"
2 changes: 2 additions & 0 deletions src/sonic-nettools/wol/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
mod wol;
mod socket;

extern crate clap;
extern crate pnet;
extern crate libc;

fn main() {
if let Err(e) = wol::build_and_send() {
Loading
Loading