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
ca322389
Commit
ca322389
authored
Dec 08, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Do not use udp_poll for RAW sockets.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
737c994c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+23
-1
No files found.
net/ipv6/af_inet6.c
View file @
ca322389
...
@@ -524,11 +524,33 @@ extern void ipv6_sysctl_register(void);
...
@@ -524,11 +524,33 @@ extern void ipv6_sysctl_register(void);
extern
void
ipv6_sysctl_unregister
(
void
);
extern
void
ipv6_sysctl_unregister
(
void
);
#endif
#endif
/* Same as inet6_dgram_ops, sans udp_poll. */
static
struct
proto_ops
inet6_sockraw_ops
=
{
.
family
=
PF_INET6
,
.
owner
=
THIS_MODULE
,
.
release
=
inet6_release
,
.
bind
=
inet6_bind
,
.
connect
=
inet_dgram_connect
,
/* ok */
.
socketpair
=
sock_no_socketpair
,
/* a do nothing */
.
accept
=
sock_no_accept
,
/* a do nothing */
.
getname
=
inet6_getname
,
.
poll
=
datagram_poll
,
/* ok */
.
ioctl
=
inet6_ioctl
,
/* must change */
.
listen
=
sock_no_listen
,
/* ok */
.
shutdown
=
inet_shutdown
,
/* ok */
.
setsockopt
=
sock_common_setsockopt
,
/* ok */
.
getsockopt
=
sock_common_getsockopt
,
/* ok */
.
sendmsg
=
inet_sendmsg
,
/* ok */
.
recvmsg
=
sock_common_recvmsg
,
/* ok */
.
mmap
=
sock_no_mmap
,
.
sendpage
=
sock_no_sendpage
,
};
static
struct
inet_protosw
rawv6_protosw
=
{
static
struct
inet_protosw
rawv6_protosw
=
{
.
type
=
SOCK_RAW
,
.
type
=
SOCK_RAW
,
.
protocol
=
IPPROTO_IP
,
/* wild card */
.
protocol
=
IPPROTO_IP
,
/* wild card */
.
prot
=
&
rawv6_prot
,
.
prot
=
&
rawv6_prot
,
.
ops
=
&
inet6_
dgram
_ops
,
.
ops
=
&
inet6_
sockraw
_ops
,
.
capability
=
CAP_NET_RAW
,
.
capability
=
CAP_NET_RAW
,
.
no_check
=
UDP_CSUM_DEFAULT
,
.
no_check
=
UDP_CSUM_DEFAULT
,
.
flags
=
INET_PROTOSW_REUSE
,
.
flags
=
INET_PROTOSW_REUSE
,
...
...
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