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
0d502d82
Commit
0d502d82
authored
Aug 06, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/lowpan/lowpan
parents
09384dfc
a9dfac33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
3 deletions
+33
-3
net/ieee802154/af_ieee802154.c
net/ieee802154/af_ieee802154.c
+5
-3
net/ieee802154/dgram.c
net/ieee802154/dgram.c
+14
-0
net/ieee802154/raw.c
net/ieee802154/raw.c
+14
-0
No files found.
net/ieee802154/af_ieee802154.c
View file @
0d502d82
...
...
@@ -136,7 +136,7 @@ static int ieee802154_dev_ioctl(struct sock *sk, struct ifreq __user *arg,
unsigned
int
cmd
)
{
struct
ifreq
ifr
;
int
ret
=
-
E
INVAL
;
int
ret
=
-
E
NOIOCTLCMD
;
struct
net_device
*
dev
;
if
(
copy_from_user
(
&
ifr
,
arg
,
sizeof
(
struct
ifreq
)))
...
...
@@ -146,8 +146,10 @@ static int ieee802154_dev_ioctl(struct sock *sk, struct ifreq __user *arg,
dev_load
(
sock_net
(
sk
),
ifr
.
ifr_name
);
dev
=
dev_get_by_name
(
sock_net
(
sk
),
ifr
.
ifr_name
);
if
(
dev
->
type
==
ARPHRD_IEEE802154
||
dev
->
type
==
ARPHRD_IEEE802154_PHY
)
if
((
dev
->
type
==
ARPHRD_IEEE802154
||
dev
->
type
==
ARPHRD_IEEE802154_PHY
)
&&
dev
->
netdev_ops
->
ndo_do_ioctl
)
ret
=
dev
->
netdev_ops
->
ndo_do_ioctl
(
dev
,
&
ifr
,
cmd
);
if
(
!
ret
&&
copy_to_user
(
arg
,
&
ifr
,
sizeof
(
struct
ifreq
)))
...
...
net/ieee802154/dgram.c
View file @
0d502d82
...
...
@@ -377,6 +377,18 @@ int ieee802154_dgram_deliver(struct net_device *dev, struct sk_buff *skb)
return
ret
;
}
static
int
dgram_getsockopt
(
struct
sock
*
sk
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
__user
*
optlen
)
{
return
-
EOPNOTSUPP
;
}
static
int
dgram_setsockopt
(
struct
sock
*
sk
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
__user
optlen
)
{
return
-
EOPNOTSUPP
;
}
struct
proto
ieee802154_dgram_prot
=
{
.
name
=
"IEEE-802.15.4-MAC"
,
.
owner
=
THIS_MODULE
,
...
...
@@ -391,5 +403,7 @@ struct proto ieee802154_dgram_prot = {
.
connect
=
dgram_connect
,
.
disconnect
=
dgram_disconnect
,
.
ioctl
=
dgram_ioctl
,
.
getsockopt
=
dgram_getsockopt
,
.
setsockopt
=
dgram_setsockopt
,
};
net/ieee802154/raw.c
View file @
0d502d82
...
...
@@ -238,6 +238,18 @@ void ieee802154_raw_deliver(struct net_device *dev, struct sk_buff *skb)
read_unlock
(
&
raw_lock
);
}
static
int
raw_getsockopt
(
struct
sock
*
sk
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
__user
*
optlen
)
{
return
-
EOPNOTSUPP
;
}
static
int
raw_setsockopt
(
struct
sock
*
sk
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
__user
optlen
)
{
return
-
EOPNOTSUPP
;
}
struct
proto
ieee802154_raw_prot
=
{
.
name
=
"IEEE-802.15.4-RAW"
,
.
owner
=
THIS_MODULE
,
...
...
@@ -250,5 +262,7 @@ struct proto ieee802154_raw_prot = {
.
unhash
=
raw_unhash
,
.
connect
=
raw_connect
,
.
disconnect
=
raw_disconnect
,
.
getsockopt
=
raw_getsockopt
,
.
setsockopt
=
raw_setsockopt
,
};
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