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
56b29296
Commit
56b29296
authored
Nov 09, 2010
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete redundant code for 2.6.27
parent
3e5db3af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
19 deletions
+14
-19
connect.c
sources/2.6.27/connect.c
+14
-19
No files found.
sources/2.6.27/connect.c
View file @
56b29296
...
@@ -1649,15 +1649,13 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket,
...
@@ -1649,15 +1649,13 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket,
}
}
if
(
!
orig_port_error
&&
!
connected
)
{
if
(
!
orig_port_error
&&
!
connected
)
{
if
(
psin_server
->
sin_port
!=
htons
(
CIFS_PORT
))
{
psin_server
->
sin_port
=
htons
(
CIFS_PORT
);
psin_server
->
sin_port
=
htons
(
CIFS_PORT
);
rc
=
(
*
csocket
)
->
ops
->
connect
(
*
csocket
,
rc
=
(
*
csocket
)
->
ops
->
connect
(
*
csocket
,
(
struct
sockaddr
*
)
psin_server
,
(
struct
sockaddr
*
)
psin_server
,
sizeof
(
struct
sockaddr_in
),
0
);
sizeof
(
struct
sockaddr_in
),
0
);
if
(
rc
>=
0
)
if
(
rc
>=
0
)
connected
=
1
;
connected
=
1
;
}
}
}
if
(
!
orig_port_error
&&
!
connected
)
{
if
(
!
orig_port_error
&&
!
connected
)
{
...
@@ -1784,16 +1782,13 @@ ipv6_connect(struct sockaddr_in6 *psin_server, struct socket **csocket,
...
@@ -1784,16 +1782,13 @@ ipv6_connect(struct sockaddr_in6 *psin_server, struct socket **csocket,
}
}
if
(
!
orig_port_error
&&
!
connected
)
{
if
(
!
orig_port_error
&&
!
connected
)
{
/* do not retry on the same port we just failed on */
psin_server
->
sin6_port
=
htons
(
CIFS_PORT
);
if
(
psin_server
->
sin6_port
!=
htons
(
CIFS_PORT
))
{
psin_server
->
sin6_port
=
htons
(
CIFS_PORT
);
rc
=
(
*
csocket
)
->
ops
->
connect
(
*
csocket
,
(
struct
sockaddr
*
)
psin_server
,
rc
=
(
*
csocket
)
->
ops
->
connect
(
*
csocket
,
sizeof
(
struct
sockaddr_in6
),
0
);
(
struct
sockaddr
*
)
psin_server
,
if
(
rc
>=
0
)
sizeof
(
struct
sockaddr_in6
),
0
);
connected
=
1
;
if
(
rc
>=
0
)
connected
=
1
;
}
}
}
if
(
!
orig_port_error
&&
!
connected
)
{
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