Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add type and conversion methods #347

Merged
merged 2 commits into from
Feb 21, 2019
Merged

Conversation

flier
Copy link
Contributor

@flier flier commented Aug 12, 2018

No description provided.

pub const ETHER_ADDR_LEN: usize = 6;

/// Structure of a 48-bit Ethernet address.
pub type EtherAddr = [u8; ETHER_ADDR_LEN];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be public - we don't expose anything else similar to this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem

pnet_base/src/macaddr.rs Outdated Show resolved Hide resolved
@mrmonday
Copy link
Contributor

Hi,

Really sorry it has taken so long to get back to you on these changes.

I think most of it looks fine - there are a couple of things I'm not sure about that I have left comments on.

FYI The best place to chase me if I don't get back to you is on IRC - I check it more regularly than my swamped inbox!

@mrmonday
Copy link
Contributor

Welp. Took a really long time again. Sorry!

This looks good now, thank you :)

@mrmonday mrmonday merged commit 4c5a7f7 into libpnet:master Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants