Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
18533268
Commit
18533268
authored
Feb 10, 2009
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update sources/2.6.27
- source: cifs-2.6.git - refspec: v2.6.27-etercifs - commit: 0aec50edbe015cb4e982dfdd9fcd2194e4de42d4 merge with new kernel minor version (v2.6.27.15)
parent
f5709d62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
connect.c
sources/2.6.27/connect.c
+9
-9
No files found.
sources/2.6.27/connect.c
View file @
18533268
...
...
@@ -1361,7 +1361,7 @@ cifs_parse_mount_options(char *options, const char *devname,
}
static
struct
TCP_Server_Info
*
cifs_find_tcp_session
(
struct
sockaddr
*
addr
)
cifs_find_tcp_session
(
struct
sockaddr
_storage
*
addr
)
{
struct
list_head
*
tmp
;
struct
TCP_Server_Info
*
server
;
...
...
@@ -1381,11 +1381,11 @@ cifs_find_tcp_session(struct sockaddr *addr)
if
(
server
->
tcpStatus
==
CifsNew
)
continue
;
if
(
addr
->
s
a
_family
==
AF_INET
&&
if
(
addr
->
s
s
_family
==
AF_INET
&&
(
addr4
->
sin_addr
.
s_addr
!=
server
->
addr
.
sockAddr
.
sin_addr
.
s_addr
))
continue
;
else
if
(
addr
->
s
a
_family
==
AF_INET6
&&
else
if
(
addr
->
s
s
_family
==
AF_INET6
&&
memcmp
(
&
server
->
addr
.
sockAddr6
.
sin6_addr
,
&
addr6
->
sin6_addr
,
sizeof
(
addr6
->
sin6_addr
)))
continue
;
...
...
@@ -2041,7 +2041,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
int
rc
=
0
;
int
xid
;
struct
socket
*
csocket
=
NULL
;
struct
sockaddr
addr
;
struct
sockaddr
_storage
addr
;
struct
sockaddr_in
*
sin_server
=
(
struct
sockaddr_in
*
)
&
addr
;
struct
sockaddr_in6
*
sin_server6
=
(
struct
sockaddr_in6
*
)
&
addr
;
struct
smb_vol
volume_info
;
...
...
@@ -2053,7 +2053,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
/* cFYI(1, ("Entering cifs_mount. Xid: %d with: %s", xid, mount_data)); */
memset
(
&
addr
,
0
,
sizeof
(
struct
sockaddr
));
memset
(
&
addr
,
0
,
sizeof
(
struct
sockaddr
_storage
));
memset
(
&
volume_info
,
0
,
sizeof
(
struct
smb_vol
));
if
(
cifs_parse_mount_options
(
mount_data
,
devname
,
&
volume_info
))
{
rc
=
-
EINVAL
;
...
...
@@ -2083,9 +2083,9 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
rc
=
cifs_inet_pton
(
AF_INET6
,
volume_info
.
UNCip
,
&
sin_server6
->
sin6_addr
.
in6_u
);
if
(
rc
>
0
)
addr
.
s
a
_family
=
AF_INET6
;
addr
.
s
s
_family
=
AF_INET6
;
}
else
{
addr
.
s
a
_family
=
AF_INET
;
addr
.
s
s
_family
=
AF_INET
;
}
if
(
rc
<=
0
)
{
...
...
@@ -2127,7 +2127,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
srvTcp
=
cifs_find_tcp_session
(
&
addr
);
if
(
!
srvTcp
)
{
/* create socket */
if
(
addr
.
s
a
_family
==
AF_INET6
)
{
if
(
addr
.
s
s
_family
==
AF_INET6
)
{
cFYI
(
1
,
(
"attempting ipv6 connect"
));
/* BB should we allow ipv6 on port 139? */
/* other OS never observed in Wild doing 139 with v6 */
...
...
@@ -2158,7 +2158,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
}
else
{
srvTcp
->
noblocksnd
=
volume_info
.
noblocksnd
;
srvTcp
->
noautotune
=
volume_info
.
noautotune
;
if
(
addr
.
s
a
_family
==
AF_INET6
)
if
(
addr
.
s
s
_family
==
AF_INET6
)
memcpy
(
&
srvTcp
->
addr
.
sockAddr6
,
sin_server6
,
sizeof
(
struct
sockaddr_in6
));
else
...
...
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