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
aa7815ef
Commit
aa7815ef
authored
Jan 10, 2004
by
Alexander Viro
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wan hdlc] hdlc_fr: eliminated ->netdev, hdlc_to_dev() and hdlc_to_name() uses.
parent
8f3c812a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
59 deletions
+68
-59
drivers/net/wan/hdlc_fr.c
drivers/net/wan/hdlc_fr.c
+64
-55
drivers/net/wan/hdlc_generic.c
drivers/net/wan/hdlc_generic.c
+2
-2
include/linux/hdlc.h
include/linux/hdlc.h
+2
-2
No files found.
drivers/net/wan/hdlc_fr.c
View file @
aa7815ef
This diff is collapsed.
Click to expand it.
drivers/net/wan/hdlc_generic.c
View file @
aa7815ef
...
@@ -185,7 +185,7 @@ void hdlc_close(struct net_device *dev)
...
@@ -185,7 +185,7 @@ void hdlc_close(struct net_device *dev)
#endif
#endif
#ifndef CONFIG_HDLC_FR
#ifndef CONFIG_HDLC_FR
#define hdlc_fr_ioctl(
hdlc
, ifr) -ENOSYS
#define hdlc_fr_ioctl(
dev
, ifr) -ENOSYS
#endif
#endif
#ifndef CONFIG_HDLC_X25
#ifndef CONFIG_HDLC_X25
...
@@ -220,7 +220,7 @@ int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
...
@@ -220,7 +220,7 @@ int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
case
IF_PROTO_HDLC_ETH
:
return
hdlc_raw_eth_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_HDLC_ETH
:
return
hdlc_raw_eth_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_PPP
:
return
hdlc_ppp_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_PPP
:
return
hdlc_ppp_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_CISCO
:
return
hdlc_cisco_ioctl
(
dev
,
ifr
);
case
IF_PROTO_CISCO
:
return
hdlc_cisco_ioctl
(
dev
,
ifr
);
case
IF_PROTO_FR
:
return
hdlc_fr_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_FR
:
return
hdlc_fr_ioctl
(
dev
,
ifr
);
case
IF_PROTO_X25
:
return
hdlc_x25_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_X25
:
return
hdlc_x25_ioctl
(
hdlc
,
ifr
);
default:
return
-
EINVAL
;
default:
return
-
EINVAL
;
}
}
...
...
include/linux/hdlc.h
View file @
aa7815ef
...
@@ -75,7 +75,7 @@ typedef struct {
...
@@ -75,7 +75,7 @@ typedef struct {
typedef
struct
pvc_device_struct
{
typedef
struct
pvc_device_struct
{
struct
hdlc_device_struct
*
master
;
struct
net_device
*
master
;
struct
net_device
*
main
;
struct
net_device
*
main
;
struct
net_device
*
ether
;
/* bridged Ethernet interface */
struct
net_device
*
ether
;
/* bridged Ethernet interface */
struct
pvc_device_struct
*
next
;
/* Sorted in ascending DLCI order */
struct
pvc_device_struct
*
next
;
/* Sorted in ascending DLCI order */
...
@@ -175,7 +175,7 @@ int hdlc_raw_ioctl(hdlc_device *hdlc, struct ifreq *ifr);
...
@@ -175,7 +175,7 @@ int hdlc_raw_ioctl(hdlc_device *hdlc, struct ifreq *ifr);
int
hdlc_raw_eth_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_raw_eth_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_cisco_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
int
hdlc_cisco_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
int
hdlc_ppp_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_ppp_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_fr_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_fr_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
int
hdlc_x25_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_x25_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
...
...
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