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
0b7d91a9
Commit
0b7d91a9
authored
Jul 12, 2003
by
James Morris
Committed by
David S. Miller
Jul 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETLINK]: Just drop packets for kernel netlink socket with no data_ready handler.
parent
a7f8fc95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
net/netlink/af_netlink.c
net/netlink/af_netlink.c
+4
-0
No files found.
net/netlink/af_netlink.c
View file @
0b7d91a9
...
@@ -430,6 +430,10 @@ int netlink_unicast(struct sock *ssk, struct sk_buff *skb, u32 pid, int nonblock
...
@@ -430,6 +430,10 @@ int netlink_unicast(struct sock *ssk, struct sk_buff *skb, u32 pid, int nonblock
goto
no_dst
;
goto
no_dst
;
nlk
=
nlk_sk
(
sk
);
nlk
=
nlk_sk
(
sk
);
/* Don't bother queuing skb if kernel socket has no input function */
if
(
nlk
->
pid
==
0
&&
!
nlk
->
data_ready
)
goto
no_dst
;
#ifdef NL_EMULATE_DEV
#ifdef NL_EMULATE_DEV
if
(
nlk
->
handler
)
{
if
(
nlk
->
handler
)
{
skb_orphan
(
skb
);
skb_orphan
(
skb
);
...
...
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