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
cc493058
Commit
cc493058
authored
17 years ago
by
tho
Browse files
Options
Downloads
Patches
Plain Diff
minor renaming
parent
47c3e685
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Socket/NetdeviceController.cc
+4
-4
4 additions, 4 deletions
Socket/NetdeviceController.cc
Socket/NetdeviceController.hh
+1
-1
1 addition, 1 deletion
Socket/NetdeviceController.hh
with
5 additions
and
5 deletions
Socket/NetdeviceController.cc
+
4
−
4
View file @
cc493058
...
...
@@ -55,7 +55,7 @@ prefix_ senf::NetdeviceController::NetdeviceController(int interface_index)
prefix_
std
::
string
senf
::
NetdeviceController
::
interfaceName
()
{
struct
ifreq
ifr
;
set_
ifr_name
(
ifr
);
ifr_name
(
ifr
);
return
std
::
string
(
ifr
.
ifr_name
);
}
...
...
@@ -69,7 +69,7 @@ prefix_ senf::MACAddress senf::NetdeviceController::hardwareAddress()
prefix_
int
senf
::
NetdeviceController
::
mtu
()
{
struct
ifreq
ifr
;
set_
ifr_name
(
ifr
);
ifr_name
(
ifr
);
doIoctl
(
ifr
,
SIOCGIFMTU
);
return
ifr
.
ifr_mtu
;
}
...
...
@@ -77,7 +77,7 @@ prefix_ int senf::NetdeviceController::mtu()
prefix_
void
senf
::
NetdeviceController
::
mtu
(
int
new_mtu
)
{
struct
ifreq
ifr
;
set_
ifr_name
(
ifr
);
ifr_name
(
ifr
);
ifr
.
ifr_mtu
=
new_mtu
;
doIoctl
(
ifr
,
SIOCSIFMTU
);
}
...
...
@@ -99,7 +99,7 @@ prefix_ void senf::NetdeviceController::openSocket()
throwErrno
();
}
prefix_
void
senf
::
NetdeviceController
::
set_
ifr_name
(
ifreq
&
ifr
)
prefix_
void
senf
::
NetdeviceController
::
ifr_name
(
ifreq
&
ifr
)
{
::
memset
(
&
ifr
,
0
,
sizeof
(
ifr
));
ifr
.
ifr_ifindex
=
ifindex_
;
...
...
This diff is collapsed.
Click to expand it.
Socket/NetdeviceController.hh
+
1
−
1
View file @
cc493058
...
...
@@ -58,7 +58,7 @@ namespace senf {
private:
void
openSocket
();
void
doIoctl
(
ifreq
&
ifr
,
int
request
);
void
set_
ifr_name
(
ifreq
&
ifr
);
void
ifr_name
(
ifreq
&
ifr
);
int
sockfd_
;
int
ifindex_
;
};
...
...
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