Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
4dfce407
Commit
4dfce407
authored
Jun 30, 2008
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WAN: cosmetic changes to generic HDLC
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
d6f8aa85
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
72 deletions
+65
-72
drivers/net/wan/hdlc.c
drivers/net/wan/hdlc.c
+12
-13
drivers/net/wan/hdlc_cisco.c
drivers/net/wan/hdlc_cisco.c
+14
-15
drivers/net/wan/hdlc_fr.c
drivers/net/wan/hdlc_fr.c
+9
-10
drivers/net/wan/hdlc_ppp.c
drivers/net/wan/hdlc_ppp.c
+7
-8
drivers/net/wan/hdlc_raw.c
drivers/net/wan/hdlc_raw.c
+7
-8
drivers/net/wan/hdlc_raw_eth.c
drivers/net/wan/hdlc_raw_eth.c
+8
-9
drivers/net/wan/hdlc_x25.c
drivers/net/wan/hdlc_x25.c
+8
-9
No files found.
drivers/net/wan/hdlc.c
View file @
4dfce407
...
@@ -22,20 +22,19 @@
...
@@ -22,20 +22,19 @@
* - proto->start() and stop() are called with spin_lock_irq held.
* - proto->start() and stop() are called with spin_lock_irq held.
*/
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_sched.h>
#include <linux/inetdevice.h>
#include <linux/poll.h>
#include <linux/lapb.h>
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
#include <linux/
notifier
.h>
#include <linux/
skbuff
.h>
#include <linux/
hdlc
.h>
#include <linux/
slab
.h>
#include <net/net_namespace.h>
#include <net/net_namespace.h>
...
...
drivers/net/wan/hdlc_cisco.c
View file @
4dfce407
...
@@ -9,19 +9,18 @@
...
@@ -9,19 +9,18 @@
* as published by the Free Software Foundation.
* as published by the Free Software Foundation.
*/
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_sched.h>
#include <linux/inetdevice.h>
#include <linux/poll.h>
#include <linux/lapb.h>
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
#include <linux/hdlc.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#undef DEBUG_HARD_HEADER
#undef DEBUG_HARD_HEADER
...
@@ -68,9 +67,9 @@ struct cisco_state {
...
@@ -68,9 +67,9 @@ struct cisco_state {
static
int
cisco_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
static
int
cisco_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
static
inline
struct
cisco_state
*
state
(
hdlc_device
*
hdlc
)
static
inline
struct
cisco_state
*
state
(
hdlc_device
*
hdlc
)
{
{
return
(
struct
cisco_state
*
)(
hdlc
->
state
)
;
return
(
struct
cisco_state
*
)
hdlc
->
state
;
}
}
...
@@ -172,7 +171,7 @@ static int cisco_rx(struct sk_buff *skb)
...
@@ -172,7 +171,7 @@ static int cisco_rx(struct sk_buff *skb)
data
->
address
!=
CISCO_UNICAST
)
data
->
address
!=
CISCO_UNICAST
)
goto
rx_error
;
goto
rx_error
;
switch
(
ntohs
(
data
->
protocol
))
{
switch
(
ntohs
(
data
->
protocol
))
{
case
CISCO_SYS_INFO
:
case
CISCO_SYS_INFO
:
/* Packet is not needed, drop it. */
/* Packet is not needed, drop it. */
dev_kfree_skb_any
(
skb
);
dev_kfree_skb_any
(
skb
);
...
@@ -359,10 +358,10 @@ static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr)
...
@@ -359,10 +358,10 @@ static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr)
return
0
;
return
0
;
case
IF_PROTO_CISCO
:
case
IF_PROTO_CISCO
:
if
(
!
capable
(
CAP_NET_ADMIN
))
if
(
!
capable
(
CAP_NET_ADMIN
))
return
-
EPERM
;
return
-
EPERM
;
if
(
dev
->
flags
&
IFF_UP
)
if
(
dev
->
flags
&
IFF_UP
)
return
-
EBUSY
;
return
-
EBUSY
;
if
(
copy_from_user
(
&
new_settings
,
cisco_s
,
size
))
if
(
copy_from_user
(
&
new_settings
,
cisco_s
,
size
))
...
@@ -372,7 +371,7 @@ static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr)
...
@@ -372,7 +371,7 @@ static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr)
new_settings
.
timeout
<
2
)
new_settings
.
timeout
<
2
)
return
-
EINVAL
;
return
-
EINVAL
;
result
=
hdlc
->
attach
(
dev
,
ENCODING_NRZ
,
PARITY_CRC16_PR1_CCITT
);
result
=
hdlc
->
attach
(
dev
,
ENCODING_NRZ
,
PARITY_CRC16_PR1_CCITT
);
if
(
result
)
if
(
result
)
return
result
;
return
result
;
...
...
drivers/net/wan/hdlc_fr.c
View file @
4dfce407
...
@@ -33,20 +33,19 @@
...
@@ -33,20 +33,19 @@
*/
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/etherdevice.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_sched.h>
#include <linux/inetdevice.h>
#include <linux/poll.h>
#include <linux/lapb.h>
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
#include <linux/
etherdevice
.h>
#include <linux/
skbuff
.h>
#include <linux/
hdlc
.h>
#include <linux/
slab
.h>
#undef DEBUG_PKT
#undef DEBUG_PKT
#undef DEBUG_ECN
#undef DEBUG_ECN
...
...
drivers/net/wan/hdlc_ppp.c
View file @
4dfce407
...
@@ -9,19 +9,18 @@
...
@@ -9,19 +9,18 @@
* as published by the Free Software Foundation.
* as published by the Free Software Foundation.
*/
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_sched.h>
#include <linux/inetdevice.h>
#include <linux/poll.h>
#include <linux/lapb.h>
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
#include <linux/hdlc.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <net/syncppp.h>
#include <net/syncppp.h>
struct
ppp_state
{
struct
ppp_state
{
...
...
drivers/net/wan/hdlc_raw.c
View file @
4dfce407
...
@@ -9,19 +9,18 @@
...
@@ -9,19 +9,18 @@
* as published by the Free Software Foundation.
* as published by the Free Software Foundation.
*/
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_sched.h>
#include <linux/inetdevice.h>
#include <linux/poll.h>
#include <linux/lapb.h>
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
#include <linux/hdlc.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
static
int
raw_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
static
int
raw_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
...
...
drivers/net/wan/hdlc_raw_eth.c
View file @
4dfce407
...
@@ -9,20 +9,19 @@
...
@@ -9,20 +9,19 @@
* as published by the Free Software Foundation.
* as published by the Free Software Foundation.
*/
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/etherdevice.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_sched.h>
#include <linux/inetdevice.h>
#include <linux/poll.h>
#include <linux/lapb.h>
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
#include <linux/
etherdevice
.h>
#include <linux/
skbuff
.h>
#include <linux/
hdlc
.h>
#include <linux/
slab
.h>
static
int
raw_eth_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
static
int
raw_eth_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
...
...
drivers/net/wan/hdlc_x25.c
View file @
4dfce407
...
@@ -9,20 +9,19 @@
...
@@ -9,20 +9,19 @@
* as published by the Free Software Foundation.
* as published by the Free Software Foundation.
*/
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/pkt_sched.h>
#include <linux/inetdevice.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/lapb.h>
#include <linux/lapb.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/poll.h>
#include <linux/rtnetlink.h>
#include <linux/rtnetlink.h>
#include <linux/
hdlc
.h>
#include <linux/
skbuff
.h>
#include <linux/slab.h>
#include <net/x25device.h>
#include <net/x25device.h>
static
int
x25_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
static
int
x25_ioctl
(
struct
net_device
*
dev
,
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