Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
44d13453
Commit
44d13453
authored
Jun 06, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: Add PPP statistics in bytes
(by Karsten Keil)
parent
e899adea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
drivers/isdn/i4l/isdn_ppp.c
drivers/isdn/i4l/isdn_ppp.c
+2
-0
No files found.
drivers/isdn/i4l/isdn_ppp.c
View file @
44d13453
...
@@ -1844,8 +1844,10 @@ isdn_ppp_dev_ioctl_stats(int slot, struct ifreq *ifr, struct net_device *dev)
...
@@ -1844,8 +1844,10 @@ isdn_ppp_dev_ioctl_stats(int slot, struct ifreq *ifr, struct net_device *dev)
memset
(
&
t
,
0
,
sizeof
(
struct
ppp_stats
));
memset
(
&
t
,
0
,
sizeof
(
struct
ppp_stats
));
if
(
dev
->
flags
&
IFF_UP
)
{
if
(
dev
->
flags
&
IFF_UP
)
{
t
.
p
.
ppp_ipackets
=
lp
->
stats
.
rx_packets
;
t
.
p
.
ppp_ipackets
=
lp
->
stats
.
rx_packets
;
t
.
p
.
ppp_ibytes
=
lp
->
stats
.
rx_bytes
;
t
.
p
.
ppp_ierrors
=
lp
->
stats
.
rx_errors
;
t
.
p
.
ppp_ierrors
=
lp
->
stats
.
rx_errors
;
t
.
p
.
ppp_opackets
=
lp
->
stats
.
tx_packets
;
t
.
p
.
ppp_opackets
=
lp
->
stats
.
tx_packets
;
t
.
p
.
ppp_obytes
=
lp
->
stats
.
tx_bytes
;
t
.
p
.
ppp_oerrors
=
lp
->
stats
.
tx_errors
;
t
.
p
.
ppp_oerrors
=
lp
->
stats
.
tx_errors
;
#ifdef CONFIG_ISDN_PPP_VJ
#ifdef CONFIG_ISDN_PPP_VJ
if
(
slot
>=
0
&&
ippp_table
[
slot
]
->
slcomp
)
{
if
(
slot
>=
0
&&
ippp_table
[
slot
]
->
slcomp
)
{
...
...
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