Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
338eb19b
Commit
338eb19b
authored
Oct 18, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore null MAC addresses.
parent
7d98e134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
kernel.c
kernel.c
+3
-2
No files found.
kernel.c
View file @
338eb19b
...
@@ -80,8 +80,9 @@ if_eui64(char *ifname, int ifindex, unsigned char *eui)
...
@@ -80,8 +80,9 @@ if_eui64(char *ifname, int ifindex, unsigned char *eui)
close
(
s
);
close
(
s
);
mac
=
(
unsigned
char
*
)
req
.
ifr_hwaddr
.
sa_data
;
mac
=
(
unsigned
char
*
)
req
.
ifr_hwaddr
.
sa_data
;
/* Check not group and global */
/* OpenVPN interfaces have a null MAC address. Also check not group
if
((
mac
[
0
]
&
1
)
!=
0
||
(
mac
[
0
]
&
2
)
!=
0
)
{
and global */
if
(
memcmp
(
mac
,
zeroes
,
6
)
==
0
||
(
mac
[
0
]
&
1
)
!=
0
||
(
mac
[
0
]
&
2
)
!=
0
)
{
errno
=
ENOENT
;
errno
=
ENOENT
;
return
-
1
;
return
-
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment