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
1b5f7623
Commit
1b5f7623
authored
Nov 09, 2010
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete redundant code for 2.6.31
parent
2ee78754
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
+13
-19
connect.c
sources/2.6.31/connect.c
+13
-19
No files found.
sources/2.6.31/connect.c
View file @
1b5f7623
...
...
@@ -1785,16 +1785,13 @@ ipv4_connect(struct TCP_Server_Info *server)
}
if
(
!
orig_port_error
&&
!
connected
)
{
/* do not retry on the same port we just failed on */
if
(
server
->
addr
.
sockAddr
.
sin_port
!=
htons
(
CIFS_PORT
))
{
server
->
addr
.
sockAddr
.
sin_port
=
htons
(
CIFS_PORT
);
rc
=
socket
->
ops
->
connect
(
socket
,
(
struct
sockaddr
*
)
&
server
->
addr
.
sockAddr
,
sizeof
(
struct
sockaddr_in
),
0
);
if
(
rc
>=
0
)
connected
=
true
;
}
server
->
addr
.
sockAddr
.
sin_port
=
htons
(
CIFS_PORT
);
rc
=
socket
->
ops
->
connect
(
socket
,
(
struct
sockaddr
*
)
&
server
->
addr
.
sockAddr
,
sizeof
(
struct
sockaddr_in
),
0
);
if
(
rc
>=
0
)
connected
=
true
;
}
if
(
!
orig_port_error
&&
!
connected
)
{
...
...
@@ -1934,15 +1931,12 @@ ipv6_connect(struct TCP_Server_Info *server)
}
if
(
!
orig_port_error
&&
!
connected
)
{
/* do not retry on the same port we just failed on */
if
(
server
->
addr
.
sockAddr6
.
sin6_port
!=
htons
(
CIFS_PORT
))
{
server
->
addr
.
sockAddr6
.
sin6_port
=
htons
(
CIFS_PORT
);
rc
=
socket
->
ops
->
connect
(
socket
,
(
struct
sockaddr
*
)
&
server
->
addr
.
sockAddr6
,
sizeof
(
struct
sockaddr_in6
),
0
);
if
(
rc
>=
0
)
connected
=
true
;
}
server
->
addr
.
sockAddr6
.
sin6_port
=
htons
(
CIFS_PORT
);
rc
=
socket
->
ops
->
connect
(
socket
,
(
struct
sockaddr
*
)
&
server
->
addr
.
sockAddr6
,
sizeof
(
struct
sockaddr_in6
),
0
);
if
(
rc
>=
0
)
connected
=
true
;
}
if
(
!
orig_port_error
&&
!
connected
)
{
...
...
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