Skip to content

Commit

Permalink
fix rtnetlink compilation
Browse files Browse the repository at this point in the history
although little-dude/netlink#203 and
little-dude/netlink#202 had no direct
conflict, merging both broke rtnetlink:

```
 error[E0063]: missing field `replace` in initializer of `neighbour::add::NeighbourAddRequest`
  --> rtnetlink/src/neighbour/add.rs:58:9
   |
58 |         NeighbourAddRequest { handle, message }
   |         ^^^^^^^^^^^^^^^^^^^ missing `replace`
```
  • Loading branch information
little-dude committed Nov 28, 2021
1 parent 7b4ec1e commit a2b4469
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/neighbour/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ impl NeighbourAddRequest {

message.nlas.push(Nla::LinkLocalAddress(lla.to_vec()));

NeighbourAddRequest { handle, message }
NeighbourAddRequest {
handle,
message,
replace: false,
}
}

/// Set a bitmask of states for the neighbor cache entry.
Expand Down

0 comments on commit a2b4469

Please sign in to comment.