Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
60117a0c
Commit
60117a0c
authored
Jan 23, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-106 my_gethwaddr() does not compile on Solaris 11
parent
58026fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mysys/my_gethwaddr.c
mysys/my_gethwaddr.c
+3
-3
No files found.
mysys/my_gethwaddr.c
View file @
60117a0c
...
...
@@ -101,14 +101,14 @@ my_bool my_gethwaddr(uchar *to)
uint
i
;
for
(
i
=
0
;
res
&&
i
<
ifc
.
ifc_len
/
sizeof
(
ifr
[
0
]);
i
++
)
{
#ifdef
SIOCGIFHWADDR
#ifdef
__linux__
if
(
ioctl
(
fd
,
SIOCGIFHWADDR
,
&
ifr
[
i
])
>=
0
)
res
=
memcpy_and_test
(
to
,
(
uchar
*
)
&
ifr
[
i
].
ifr_hwaddr
.
sa_data
,
ETHER_ADDR_LEN
);
#else
/*
A bug in OpenSolaris
prevents
non-root from getting a mac address:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4720634
A bug in OpenSolaris
used to prevent
non-root from getting a mac address:
{no url. Oracle killed the old OpenSolaris bug database}
Thus, we'll use an alternative method and extract the address from the
arp table.
...
...
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