Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
d20acd09
Commit
d20acd09
authored
Jul 06, 2007
by
Jeff
Committed by
Steve French
Jul 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] ipv6 support no longer experimental
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
38c10a1d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
62 deletions
+1
-62
fs/cifs/cifsfs.h
fs/cifs/cifsfs.h
+1
-1
fs/cifs/netmisc.c
fs/cifs/netmisc.c
+0
-61
No files found.
fs/cifs/cifsfs.h
View file @
d20acd09
...
...
@@ -101,5 +101,5 @@ extern ssize_t cifs_getxattr(struct dentry *, const char *, void *, size_t);
extern
ssize_t
cifs_listxattr
(
struct
dentry
*
,
char
*
,
size_t
);
extern
int
cifs_ioctl
(
struct
inode
*
inode
,
struct
file
*
filep
,
unsigned
int
command
,
unsigned
long
arg
);
#define CIFS_VERSION "1.
49
"
#define CIFS_VERSION "1.
50
"
#endif
/* _CIFSFS_H */
fs/cifs/netmisc.c
View file @
d20acd09
...
...
@@ -135,7 +135,6 @@ static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
int
cifs_inet_pton
(
int
address_family
,
char
*
cp
,
void
*
dst
)
{
#ifdef CONFIG_CIFS_EXPERIMENTAL
int
ret
=
0
;
/* calculate length by finding first slash or NULL */
...
...
@@ -152,66 +151,6 @@ cifs_inet_pton(int address_family, char *cp,void *dst)
if
(
ret
>
0
)
ret
=
1
;
return
ret
;
#else
int
value
;
int
digit
;
int
i
;
char
temp
;
char
bytes
[
4
];
char
*
end
=
bytes
;
static
const
int
addr_class_max
[
4
]
=
{
0xffffffff
,
0xffffff
,
0xffff
,
0xff
};
if
(
address_family
!=
AF_INET
)
return
-
EAFNOSUPPORT
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
bytes
[
i
]
=
0
;
}
temp
=
*
cp
;
while
(
TRUE
)
{
if
(
!
isdigit
(
temp
))
return
0
;
value
=
0
;
digit
=
0
;
for
(;;)
{
if
(
isascii
(
temp
)
&&
isdigit
(
temp
))
{
value
=
(
value
*
10
)
+
temp
-
'0'
;
temp
=
*++
cp
;
digit
=
1
;
}
else
break
;
}
if
(
temp
==
'.'
)
{
if
((
end
>
bytes
+
2
)
||
(
value
>
255
))
return
0
;
*
end
++
=
value
;
temp
=
*++
cp
;
}
else
if
(
temp
==
':'
)
{
cFYI
(
1
,(
"IPv6 addresses not supported for CIFS mounts yet"
));
return
-
1
;
}
else
break
;
}
/* check for last characters */
if
(
temp
!=
'\0'
&&
(
!
isascii
(
temp
)
||
!
isspace
(
temp
)))
if
(
temp
!=
'\\'
)
{
if
(
temp
!=
'/'
)
return
0
;
else
(
*
cp
=
'\\'
);
/* switch the slash the expected way */
}
if
(
value
>
addr_class_max
[
end
-
bytes
])
return
0
;
*
((
__be32
*
)
dst
)
=
*
((
__be32
*
)
bytes
)
|
htonl
(
value
);
return
1
;
/* success */
#endif
/* EXPERIMENTAL */
}
/*****************************************************************************
...
...
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