projects
/
swifty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8df0212
)
raw: Fix: check type for SOCK_DGRAM instead of SOCK_RAW.
author
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Sat, 21 May 2011 10:29:53 +0000
(13:29 +0300)
committer
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Sat, 21 May 2011 10:29:53 +0000
(13:29 +0300)
src/raw/swift_raw.c
patch
|
blob
|
history
diff --git
a/src/raw/swift_raw.c
b/src/raw/swift_raw.c
index
84cb382
..
55510a2
100644
(file)
--- a/
src/raw/swift_raw.c
+++ b/
src/raw/swift_raw.c
@@
-179,7
+179,7
@@
int sw_socket(int __domain, int __type, int __protocol)
int s;
struct sock_list *list;
- if (__domain != PF_INET || __type != SOCK_
RAW
|| __protocol != IPPROTO_SWIFT) {
+ if (__domain != PF_INET || __type != SOCK_
DGRAM
|| __protocol != IPPROTO_SWIFT) {
errno = EINVAL;
goto sock_err;
}