Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
8e1abab7
Commit
8e1abab7
authored
17 years ago
by
tho
Browse files
Options
Downloads
Patches
Plain Diff
-/-
parent
64755c1e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Socket/NetdeviceController.cc
+1
-0
1 addition, 0 deletions
Socket/NetdeviceController.cc
Socket/NetdeviceController.hh
+1
-1
1 addition, 1 deletion
Socket/NetdeviceController.hh
Socket/NetdeviceController.test.cc
+1
-0
1 addition, 0 deletions
Socket/NetdeviceController.test.cc
with
3 additions
and
1 deletion
Socket/NetdeviceController.cc
+
1
−
0
View file @
8e1abab7
...
...
@@ -62,6 +62,7 @@ prefix_ std::string senf::NetdeviceController::interfaceName()
prefix_
senf
::
MACAddress
senf
::
NetdeviceController
::
hardwareAddress
()
{
struct
ifreq
ifr
;
ifrName
(
ifr
);
doIoctl
(
ifr
,
SIOCGIFHWADDR
);
return
senf
::
MACAddress
::
from_data
(
ifr
.
ifr_hwaddr
.
sa_data
);
}
...
...
This diff is collapsed.
Click to expand it.
Socket/NetdeviceController.hh
+
1
−
1
View file @
8e1abab7
...
...
@@ -51,7 +51,7 @@ namespace senf {
MACAddress
hardwareAddress
();
std
::
string
interfaceName
();
int
interfaceIndex
();
int
interfaceIndex
();
///< return the interface index of the interface
int
mtu
();
void
mtu
(
int
new_mtu
);
...
...
This diff is collapsed.
Click to expand it.
Socket/NetdeviceController.test.cc
+
1
−
0
View file @
8e1abab7
...
...
@@ -37,6 +37,7 @@
BOOST_AUTO_UNIT_TEST
(
NetdeviceController
)
{
// senf::NetdeviceController ctrl ("eth0");
// std::cout << ctrl.hardwareAddress() << "\n";
}
///////////////////////////////cc.e////////////////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment