-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mtu calculation for raw raw_socket
Previously, the ethernet frame header was added twice to the MTU. The first time in `interface_mtu` and a second time after calling `interface_mtu` in the raw socket `new` function. I removed the one in the `interface_mtu` function.
- Loading branch information
Showing
2 changed files
with
2 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ impl RawSocket { | |
Ok(RawSocket { | ||
medium, | ||
lower: Rc::new(RefCell::new(lower)), | ||
mtu: mtu, | ||
mtu, | ||
}) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters