Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
netmisc.c File Reference
#include <linux/net.h>
#include <linux/string.h>
#include <linux/in.h>
#include <linux/ctype.h>
#include <linux/fs.h>
#include <asm/div64.h>
#include <asm/byteorder.h>
#include <linux/inet.h>
#include "cifsfs.h"
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifsproto.h"
#include "smberr.h"
#include "cifs_debug.h"
#include "nterr.h"

Go to the source code of this file.

Data Structures

struct  smb_to_posix_error
 

Macros

#define NTFS_TIME_OFFSET   ((u64)(369*365 + 89) * 24 * 3600 * 10000000)
 

Functions

int cifs_convert_address (struct sockaddr *dst, const char *src, int len)
 
int cifs_set_port (struct sockaddr *addr, const unsigned short int port)
 
int cifs_fill_sockaddr (struct sockaddr *dst, const char *src, int len, const unsigned short int port)
 
int map_smb_to_linux_error (char *buf, bool logErr)
 
unsigned int smbCalcSize (void *buf)
 
struct timespec cifs_NTtimeToUnix (__le64 ntutc)
 
u64 cifs_UnixTimeToNT (struct timespec t)
 
struct timespec cnvrtDosUnixTm (__le16 le_date, __le16 le_time, int offset)
 

Macro Definition Documentation

#define NTFS_TIME_OFFSET   ((u64)(369*365 + 89) * 24 * 3600 * 10000000)

Definition at line 925 of file netmisc.c.

Function Documentation

int cifs_convert_address ( struct sockaddr dst,
const char src,
int  len 
)

Definition at line 169 of file netmisc.c.

int cifs_fill_sockaddr ( struct sockaddr dst,
const char src,
int  len,
const unsigned short int  port 
)

Definition at line 224 of file netmisc.c.

struct timespec cifs_NTtimeToUnix ( __le64  ntutc)
read

Definition at line 932 of file netmisc.c.

int cifs_set_port ( struct sockaddr addr,
const unsigned short int  port 
)

Definition at line 208 of file netmisc.c.

u64 cifs_UnixTimeToNT ( struct timespec  t)

Definition at line 948 of file netmisc.c.

struct timespec cnvrtDosUnixTm ( __le16  le_date,
__le16  le_time,
int  offset 
)
read

Definition at line 957 of file netmisc.c.

int map_smb_to_linux_error ( char buf,
bool  logErr 
)

Definition at line 838 of file netmisc.c.

unsigned int smbCalcSize ( void buf)

Definition at line 916 of file netmisc.c.

Variable Documentation

__u8 dos_class

Definition at line 237 of file netmisc.c.

__u16 dos_code

Definition at line 238 of file netmisc.c.

Definition at line 239 of file netmisc.c.