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
64755c1e
Commit
64755c1e
authored
17 years ago
by
tho
Browse files
Options
Downloads
Patches
Plain Diff
grmpf, erst testen, dann einchecken.
parent
cc493058
No related branches found
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 @
64755c1e
...
...
@@ -55,7 +55,7 @@ prefix_ senf::NetdeviceController::NetdeviceController(int interface_index)
prefix_
std
::
string
senf
::
NetdeviceController
::
interfaceName
()
{
struct
ifreq
ifr
;
ifr
_n
ame
(
ifr
);
ifr
N
ame
(
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
;
ifr
_n
ame
(
ifr
);
ifr
N
ame
(
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
;
ifr
_n
ame
(
ifr
);
ifr
N
ame
(
ifr
);
ifr
.
ifr_mtu
=
new_mtu
;
doIoctl
(
ifr
,
SIOCSIFMTU
);
}
...
...
@@ -99,7 +99,7 @@ prefix_ void senf::NetdeviceController::openSocket()
throwErrno
();
}
prefix_
void
senf
::
NetdeviceController
::
ifr
_n
ame
(
ifreq
&
ifr
)
prefix_
void
senf
::
NetdeviceController
::
ifr
N
ame
(
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 @
64755c1e
...
...
@@ -58,7 +58,7 @@ namespace senf {
private:
void
openSocket
();
void
doIoctl
(
ifreq
&
ifr
,
int
request
);
void
ifr
_n
ame
(
ifreq
&
ifr
);
void
ifr
N
ame
(
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