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
nexedi
linux
Commits
0e8cef16
Commit
0e8cef16
authored
Oct 06, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[X25]: Fix to be PKT_CAN_SHARE_SKB.
parent
11c4348e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
net/x25/af_x25.c
net/x25/af_x25.c
+1
-0
net/x25/x25_dev.c
net/x25/x25_dev.c
+6
-1
No files found.
net/x25/af_x25.c
View file @
0e8cef16
...
@@ -1345,6 +1345,7 @@ SOCKOPS_WRAP(x25_proto, AF_X25);
...
@@ -1345,6 +1345,7 @@ SOCKOPS_WRAP(x25_proto, AF_X25);
static
struct
packet_type
x25_packet_type
=
{
static
struct
packet_type
x25_packet_type
=
{
.
type
=
__constant_htons
(
ETH_P_X25
),
.
type
=
__constant_htons
(
ETH_P_X25
),
.
func
=
x25_lapb_receive_frame
,
.
func
=
x25_lapb_receive_frame
,
.
data
=
PKT_CAN_SHARE_SKB
,
};
};
struct
notifier_block
x25_dev_notifier
=
{
struct
notifier_block
x25_dev_notifier
=
{
...
...
net/x25/x25_dev.c
View file @
0e8cef16
...
@@ -100,9 +100,14 @@ static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb)
...
@@ -100,9 +100,14 @@ static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb)
int
x25_lapb_receive_frame
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
int
x25_lapb_receive_frame
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
struct
packet_type
*
ptype
)
struct
packet_type
*
ptype
)
{
{
struct
sk_buff
*
nskb
;
struct
x25_neigh
*
nb
;
struct
x25_neigh
*
nb
;
skb
->
sk
=
NULL
;
nskb
=
skb_copy
(
skb
,
GFP_ATOMIC
);
if
(
!
nskb
)
goto
drop
;
kfree_skb
(
skb
);
skb
=
nskb
;
/*
/*
* Packet received from unrecognised device, throw it away.
* Packet received from unrecognised device, throw it away.
...
...
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