From 0aed7e5ad09237d0a916ff1577b19fa740234d92 Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 6 Jul 2007 21:13:08 +0000 Subject: [PATCH] --- yaml --- r: 61487 b: refs/heads/master c: d20acd09e3bf89aa23af034b8c2d0f5653577ea9 h: refs/heads/master i: 61485: fa082bfba438a41ac77cc07fda3b1f8e7a55f862 61483: fa8ab6584dcd894bda4990e27974089aab454e78 61479: a6af45491af434d56a342f4afc495f75f20ff27e 61471: c2f48c1b07316e2b8a73c60da2ca93e493e6c111 v: v3 --- [refs] | 2 +- trunk/fs/cifs/cifsfs.h | 2 +- trunk/fs/cifs/netmisc.c | 61 ----------------------------------------- 3 files changed, 2 insertions(+), 63 deletions(-) diff --git a/[refs] b/[refs] index 41af65a8870e..29cfc5d3d6fb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 38c10a1ddb24b9fa9f25b6c21d0390a9723ae6d6 +refs/heads/master: d20acd09e3bf89aa23af034b8c2d0f5653577ea9 diff --git a/trunk/fs/cifs/cifsfs.h b/trunk/fs/cifs/cifsfs.h index af3689bfa38e..ee8ab87f27aa 100644 --- a/trunk/fs/cifs/cifsfs.h +++ b/trunk/fs/cifs/cifsfs.h @@ -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 */ diff --git a/trunk/fs/cifs/netmisc.c b/trunk/fs/cifs/netmisc.c index 53e304d59544..b388c356fde0 100644 --- a/trunk/fs/cifs/netmisc.c +++ b/trunk/fs/cifs/netmisc.c @@ -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 */ } /*****************************************************************************