Skip to content

Commit eb04e60

Browse files
ydirsoncathay4t
authored andcommitted
Do not activate AddressFamily::Bridge on FreeBSD
Not supported there. Signed-off-by: Yann Dirson <[email protected]>
1 parent a1b79a1 commit eb04e60

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/neighbour/add.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ impl NeighbourAddRequest {
5151
}
5252
}
5353

54+
#[cfg(not(target_os = "freebsd"))]
5455
pub(crate) fn new_bridge(handle: Handle, index: u32, lla: &[u8]) -> Self {
5556
let mut message = NeighbourMessage::default();
5657

src/neighbour/handle.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ impl NeighbourHandle {
2323
NeighbourAddRequest::new(self.0.clone(), index, destination)
2424
}
2525

26+
#[cfg(not(target_os = "freebsd"))]
2627
/// Add a new fdb entry (equivalent to `bridge fdb add`)
2728
pub fn add_bridge(&self, index: u32, lla: &[u8]) -> NeighbourAddRequest {
2829
NeighbourAddRequest::new_bridge(self.0.clone(), index, lla)

0 commit comments

Comments
 (0)