Skip to content

Commit

Permalink
chore: remove unnecessary IPv6 feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
thvdveld committed Nov 27, 2023
1 parent a5da783 commit f3be43a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/iface/interface/ipv6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use crate::phy::PacketMeta;
use crate::wire::*;

impl InterfaceInner {
#[cfg(feature = "proto-ipv6")]
pub(super) fn process_ipv6<'frame>(
&mut self,
sockets: &mut SocketSet,
Expand Down Expand Up @@ -46,7 +45,6 @@ impl InterfaceInner {

/// Given the next header value forward the payload onto the correct process
/// function.
#[cfg(feature = "proto-ipv6")]
pub(super) fn process_nxt_hdr<'frame>(
&mut self,
sockets: &mut SocketSet,
Expand Down Expand Up @@ -106,7 +104,6 @@ impl InterfaceInner {
}
}

#[cfg(feature = "proto-ipv6")]
pub(super) fn process_icmpv6<'frame>(
&mut self,
_sockets: &mut SocketSet,
Expand All @@ -124,7 +121,7 @@ impl InterfaceInner {
#[cfg(feature = "socket-icmp")]
let mut handled_by_icmp_socket = false;

#[cfg(all(feature = "socket-icmp", feature = "proto-ipv6"))]
#[cfg(feature = "socket-icmp")]
for icmp_socket in _sockets
.items_mut()
.filter_map(|i| icmp::Socket::downcast_mut(&mut i.socket))
Expand Down Expand Up @@ -175,10 +172,7 @@ impl InterfaceInner {
}
}

#[cfg(all(
any(feature = "medium-ethernet", feature = "medium-ieee802154"),
feature = "proto-ipv6"
))]
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
pub(super) fn process_ndisc<'frame>(
&mut self,
ip_repr: Ipv6Repr,
Expand Down Expand Up @@ -241,7 +235,6 @@ impl InterfaceInner {
}
}

#[cfg(feature = "proto-ipv6")]
pub(super) fn process_hopbyhop<'frame>(
&mut self,
sockets: &mut SocketSet,
Expand Down Expand Up @@ -286,7 +279,6 @@ impl InterfaceInner {
)
}

#[cfg(feature = "proto-ipv6")]
pub(super) fn icmpv6_reply<'frame, 'icmp: 'frame>(
&self,
ipv6_repr: Ipv6Repr,
Expand Down

0 comments on commit f3be43a

Please sign in to comment.