-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3fd055
commit 3c60a4b
Showing
1 changed file
with
3 additions
and
2 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
3c60a4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @tschettervictor, please see: d3fd055#commitcomment-150827544
Regards!
3c60a4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at the comment, and tried to explain my reasoning. This is my current goal on this commit.
Hash the host MAC (the full MAC) and strip the first 6 digits.
Hash the jail name for the last 5 digits.
The very last digit is used as "a" and "b" for the host side of the epair/bastille interface respectively to differentiate better.
3c60a4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below is a jail with two interfaces created with the code in PR #783 and the corresponding jail.conf file.
Notice the MAC addresses are completely different even though the interfaces are bridge0 and bridge1, but since the name of the jail remains the same, the last half of the MAC is the same.