Skip to content

feat: implement IGMP parsing #426

feat: implement IGMP parsing

feat: implement IGMP parsing #426

GitHub Actions / clippy failed Jan 29, 2025 in 0s

clippy

27 errors, 6 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 27
Warning 6
Note 0
Help 0

Versions

  • rustc 1.84.0 (9fc6b4312 2025-01-07)
  • cargo 1.84.0 (66221abde 2024-11-19)
  • clippy 0.1.84 (9fc6b43126 2025-01-07)

Annotations

Check warning on line 82 in src/logger.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `timestamp`

warning: unused variable: `timestamp`
  --> src/logger.rs:82:13
   |
82 |         let timestamp = Local::now().format("%Y-%m-%d %H:%M:%S %z").to_string();
   |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp`
   |
   = note: `#[warn(unused_variables)]` on by default

Check warning on line 2 in src/net/parser/raw/ethertypes/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file is loaded as a module multiple times: `/home/runner/work/fluere/fluere/clippy.toml`

warning: file is loaded as a module multiple times: `/home/runner/work/fluere/fluere/clippy.toml`
  --> src/net/parser/raw/ethertypes/mod.rs:2:1
   |
2  | mod mpls;
   | ^^^^^^^^^ first loaded here
3  | mod vpn;
4  | mod vxlan;
   | ^^^^^^^^^^ loaded again here
5  | mod wireguard;
   | ^^^^^^^^^^^^^^ loaded again here
   |
  ::: src/net/parser/raw/protocols/mod.rs:1:1
   |
1  | mod ah;
   | ^^^^^^^ loaded again here
2  | mod bgp;
   | ^^^^^^^^ loaded again here
3  | mod eigrp;
   | ^^^^^^^^^^ loaded again here
4  | mod esp;
   | ^^^^^^^^ loaded again here
...
8  | mod ipx;
   | ^^^^^^^^ loaded again here
9  | mod isis;
   | ^^^^^^^^^ loaded again here
10 | mod l2tp;
   | ^^^^^^^^^ loaded again here
11 | mod ospf;
   | ^^^^^^^^^ loaded again here
12 | mod pim;
   | ^^^^^^^^ loaded again here
13 | mod sctp;
   | ^^^^^^^^^ loaded again here
14 | mod vrrp;
   | ^^^^^^^^^ loaded again here
   |
   = help: replace all but one `mod` item with `use` items
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_mod
   = note: `#[warn(clippy::duplicate_mod)]` on by default

Check failure on line 69 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `parse_bgp` in module `bgp`

error[E0425]: cannot find function `parse_bgp` in module `bgp`
  --> src/net/parser/raw/protocols/mod.rs:69:21
   |
69 |         179 => bgp::parse_bgp(packet),
   |                     ^^^^^^^^^ not found in `bgp`

Check failure on line 67 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `parse_isis` in module `isis`

error[E0425]: cannot find function `parse_isis` in module `isis`
  --> src/net/parser/raw/protocols/mod.rs:67:22
   |
67 |         124 => isis::parse_isis(packet),
   |                      ^^^^^^^^^^ not found in `isis`

Check failure on line 66 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `parse_l2tp` in module `l2tp`

error[E0425]: cannot find function `parse_l2tp` in module `l2tp`
  --> src/net/parser/raw/protocols/mod.rs:66:22
   |
66 |         115 => l2tp::parse_l2tp(packet),
   |                      ^^^^^^^^^^ not found in `l2tp`

Check failure on line 45 in src/net/parser/raw/ethertypes/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `parse_wireguard` in module `wireguard`

error[E0425]: cannot find function `parse_wireguard` in module `wireguard`
  --> src/net/parser/raw/ethertypes/mod.rs:45:34
   |
45 |             0x88B8 => wireguard::parse_wireguard(packet),
   |                                  ^^^^^^^^^^^^^^^ not found in `wireguard`

Check failure on line 44 in src/net/parser/raw/ethertypes/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `parse_vxlan` in module `vxlan`

error[E0425]: cannot find function `parse_vxlan` in module `vxlan`
  --> src/net/parser/raw/ethertypes/mod.rs:44:30
   |
44 |             0x12B5 => vxlan::parse_vxlan(packet),
   |                              ^^^^^^^^^^^ not found in `vxlan`

Check failure on line 43 in src/net/parser/raw/ethertypes/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `parse_mpls` in module `mpls`

error[E0425]: cannot find function `parse_mpls` in module `mpls`
  --> src/net/parser/raw/ethertypes/mod.rs:43:38
   |
43 |             0x8847 | 0x8848 => mpls::parse_mpls(packet),
   |                                      ^^^^^^^^^^ not found in `mpls`

Check failure on line 27 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `vrrp::VrrpParser`

error[E0432]: unresolved import `vrrp::VrrpParser`
  --> src/net/parser/raw/protocols/mod.rs:27:9
   |
27 | pub use vrrp::VrrpParser;
   |         ^^^^^^^^^^^^^^^^ no `VrrpParser` in `net::parser::raw::protocols::vrrp`

Check failure on line 26 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `sctp::SctpParser`

error[E0432]: unresolved import `sctp::SctpParser`
  --> src/net/parser/raw/protocols/mod.rs:26:9
   |
26 | pub use sctp::SctpParser;
   |         ^^^^^^^^^^^^^^^^ no `SctpParser` in `net::parser::raw::protocols::sctp`

Check failure on line 25 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `pim::PimParser`

error[E0432]: unresolved import `pim::PimParser`
  --> src/net/parser/raw/protocols/mod.rs:25:9
   |
25 | pub use pim::PimParser;
   |         ^^^^^^^^^^^^^^ no `PimParser` in `net::parser::raw::protocols::pim`

Check failure on line 24 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `ospf::OspfParser`

error[E0432]: unresolved import `ospf::OspfParser`
  --> src/net/parser/raw/protocols/mod.rs:24:9
   |
24 | pub use ospf::OspfParser;
   |         ^^^^^^^^^^^^^^^^ no `OspfParser` in `net::parser::raw::protocols::ospf`

Check failure on line 23 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `ipx::IpxParser`

error[E0432]: unresolved import `ipx::IpxParser`
  --> src/net/parser/raw/protocols/mod.rs:23:9
   |
23 | pub use ipx::IpxParser;
   |         ^^^^^^^^^^^^^^ no `IpxParser` in `net::parser::raw::protocols::ipx`

Check failure on line 19 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `esp::EspParser`

error[E0432]: unresolved import `esp::EspParser`
  --> src/net/parser/raw/protocols/mod.rs:19:9
   |
19 | pub use esp::EspParser;
   |         ^^^^^^^^^^^^^^ no `EspParser` in `net::parser::raw::protocols::esp`

Check failure on line 18 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `ah::AhParser`

error[E0432]: unresolved import `ah::AhParser`
  --> src/net/parser/raw/protocols/mod.rs:18:9
   |
18 | pub use ah::AhParser;
   |         ^^^^^^^^^^^^ no `AhParser` in `net::parser::raw::protocols::ah`

Check failure on line 14 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `vrrp`

error[E0583]: file not found for module `vrrp`
  --> src/net/parser/raw/protocols/mod.rs:14:1
   |
14 | mod vrrp;
   | ^^^^^^^^^
   |
   = help: to create the module `vrrp`, create file "src/net/parser/raw/protocols/vrrp.rs" or "src/net/parser/raw/protocols/vrrp/mod.rs"
   = note: if there is a `mod vrrp` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 13 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `sctp`

error[E0583]: file not found for module `sctp`
  --> src/net/parser/raw/protocols/mod.rs:13:1
   |
13 | mod sctp;
   | ^^^^^^^^^
   |
   = help: to create the module `sctp`, create file "src/net/parser/raw/protocols/sctp.rs" or "src/net/parser/raw/protocols/sctp/mod.rs"
   = note: if there is a `mod sctp` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 12 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `pim`

error[E0583]: file not found for module `pim`
  --> src/net/parser/raw/protocols/mod.rs:12:1
   |
12 | mod pim;
   | ^^^^^^^^
   |
   = help: to create the module `pim`, create file "src/net/parser/raw/protocols/pim.rs" or "src/net/parser/raw/protocols/pim/mod.rs"
   = note: if there is a `mod pim` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 11 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `ospf`

error[E0583]: file not found for module `ospf`
  --> src/net/parser/raw/protocols/mod.rs:11:1
   |
11 | mod ospf;
   | ^^^^^^^^^
   |
   = help: to create the module `ospf`, create file "src/net/parser/raw/protocols/ospf.rs" or "src/net/parser/raw/protocols/ospf/mod.rs"
   = note: if there is a `mod ospf` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 10 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `l2tp`

error[E0583]: file not found for module `l2tp`
  --> src/net/parser/raw/protocols/mod.rs:10:1
   |
10 | mod l2tp;
   | ^^^^^^^^^
   |
   = help: to create the module `l2tp`, create file "src/net/parser/raw/protocols/l2tp.rs" or "src/net/parser/raw/protocols/l2tp/mod.rs"
   = note: if there is a `mod l2tp` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 9 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `isis`

error[E0583]: file not found for module `isis`
 --> src/net/parser/raw/protocols/mod.rs:9:1
  |
9 | mod isis;
  | ^^^^^^^^^
  |
  = help: to create the module `isis`, create file "src/net/parser/raw/protocols/isis.rs" or "src/net/parser/raw/protocols/isis/mod.rs"
  = note: if there is a `mod isis` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 8 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `ipx`

error[E0583]: file not found for module `ipx`
 --> src/net/parser/raw/protocols/mod.rs:8:1
  |
8 | mod ipx;
  | ^^^^^^^^
  |
  = help: to create the module `ipx`, create file "src/net/parser/raw/protocols/ipx.rs" or "src/net/parser/raw/protocols/ipx/mod.rs"
  = note: if there is a `mod ipx` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 4 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `esp`

error[E0583]: file not found for module `esp`
 --> src/net/parser/raw/protocols/mod.rs:4:1
  |
4 | mod esp;
  | ^^^^^^^^
  |
  = help: to create the module `esp`, create file "src/net/parser/raw/protocols/esp.rs" or "src/net/parser/raw/protocols/esp/mod.rs"
  = note: if there is a `mod esp` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 3 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `eigrp`

error[E0583]: file not found for module `eigrp`
 --> src/net/parser/raw/protocols/mod.rs:3:1
  |
3 | mod eigrp;
  | ^^^^^^^^^^
  |
  = help: to create the module `eigrp`, create file "src/net/parser/raw/protocols/eigrp.rs" or "src/net/parser/raw/protocols/eigrp/mod.rs"
  = note: if there is a `mod eigrp` elsewhere in the crate already, import it with `use crate::...` instead

Check failure on line 2 in src/net/parser/raw/protocols/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

file not found for module `bgp`

error[E0583]: file not found for module `bgp`
 --> src/net/parser/raw/protocols/mod.rs:2:1
  |
2 | mod bgp;
  | ^^^^^^^^
  |
  = help: to create the module `bgp`, create file "src/net/parser/raw/protocols/bgp.rs" or "src/net/parser/raw/protocols/bgp/mod.rs"
  = note: if there is a `mod bgp` elsewhere in the crate already, import it with `use crate::...` instead