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

Please update prefix_ok() #11

Open
yuwata opened this issue Aug 15, 2022 · 0 comments
Open

Please update prefix_ok() #11

yuwata opened this issue Aug 15, 2022 · 0 comments
Assignees

Comments

@yuwata
Copy link

yuwata commented Aug 15, 2022

Recently we have introduced endX by systemd/systemd#24265.
Maybe the following lines need to be updated?

prefixdevname/src/util.rs

Lines 100 to 104 in 8ca3b91

pub fn prefix_ok<T: AsRef<str>>(prefix: &T) -> bool {
// List of forbidden prefixes include kernel's default prefix (eth), biosdevname's prefix (em)
// and several other prefixes used by udev's net_id built-in
// https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L20
let forbidden = vec!["eth", "eno", "ens", "enb", "enc", "enx", "enP", "enp", "env", "ena", "em"];

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

No branches or pull requests

2 participants