samba文件协议

source/smbd/process.c

/* 0x00 / { “SMBmkdir”,reply_mkdir,AS_USER | NEED_WRITE},
/
0x01 / { “SMBrmdir”,reply_rmdir,AS_USER | NEED_WRITE},
/
0x02 / { “SMBopen”,reply_open,AS_USER },
/
0x03 / { “SMBcreate”,reply_mknew,AS_USER},
/
0x04 / { “SMBclose”,reply_close,AS_USER | CAN_IPC },
/
0x05 / { “SMBflush”,reply_flush,AS_USER},
/
0x06 / { “SMBunlink”,reply_unlink,AS_USER | NEED_WRITE },
/
0x07 / { “SMBmv”,reply_mv,AS_USER | NEED_WRITE },
/
0x08 / { “SMBgetatr”,reply_getatr,AS_USER},
/
0x09 / { “SMBsetatr”,reply_setatr,AS_USER | NEED_WRITE},
/
0x0a / { “SMBread”,reply_read,AS_USER},
/
0x0b / { “SMBwrite”,reply_write,AS_USER | CAN_IPC },
/
0x0c / { “SMBlock”,reply_lock,AS_USER},
/
0x0d / { “SMBunlock”,reply_unlock,AS_USER},
/
0x0e / { “SMBctemp”,reply_ctemp,AS_USER },
/
0x0f / { “SMBmknew”,reply_mknew,AS_USER},
/
0x10 / { “SMBchkpth”,reply_chkpth,AS_USER},
/
0x11 / { “SMBexit”,reply_exit,DO_CHDIR},
/
0x12 / { “SMBlseek”,reply_lseek,AS_USER},
/
0x13 / { “SMBlockread”,reply_lockread,AS_USER},
/
0x14 / { “SMBwriteunlock”,reply_writeunlock,AS_USER},
/
0x15 / { NULL, NULL, 0 },
/
0x16 / { NULL, NULL, 0 },
/
0x17 / { NULL, NULL, 0 },
/
0x18 / { NULL, NULL, 0 },
/
0x19 / { NULL, NULL, 0 },
/
0x1a / { “SMBreadbraw”,reply_readbraw,AS_USER},
/
0x1b / { “SMBreadBmpx”,reply_readbmpx,AS_USER},
/
0x1c / { “SMBreadBs”,NULL,0 },
/
0x1d / { “SMBwritebraw”,reply_writebraw,AS_USER},
/
0x1e / { “SMBwriteBmpx”,reply_writebmpx,AS_USER},
/
0x1f / { “SMBwriteBs”,reply_writebs,AS_USER},
/
0x20 / { “SMBwritec”,NULL,0},
/
0x21 / { NULL, NULL, 0 },
/
0x22 / { “SMBsetattrE”,reply_setattrE,AS_USER | NEED_WRITE },
/
0x23 / { “SMBgetattrE”,reply_getattrE,AS_USER },
/
0x24 / { “SMBlockingX”,reply_lockingX,AS_USER },
/
0x25 / { “SMBtrans”,reply_trans,AS_USER | CAN_IPC },
/
0x26 / { “SMBtranss”,NULL,AS_USER | CAN_IPC},
/
0x27 / { “SMBioctl”,reply_ioctl,0},
/
0x28 / { “SMBioctls”,NULL,AS_USER},
/
0x29 / { “SMBcopy”,reply_copy,AS_USER | NEED_WRITE },
/
0x2a / { “SMBmove”,NULL,AS_USER | NEED_WRITE },
/
0x2b / { “SMBecho”,reply_echo,0},
/
0x2c / { “SMBwriteclose”,reply_writeclose,AS_USER},
/
0x2d / { “SMBopenX”,reply_open_and_X,AS_USER | CAN_IPC },
/
0x2e / { “SMBreadX”,reply_read_and_X,AS_USER | CAN_IPC },
/
0x2f / { “SMBwriteX”,reply_write_and_X,AS_USER | CAN_IPC },
/
0x30 / { NULL, NULL, 0 },
/
0x31 / { NULL, NULL, 0 },
/
0x32 / { “SMBtrans2”, reply_trans2, AS_USER | CAN_IPC },
/
0x33 / { “SMBtranss2”, reply_transs2, AS_USER},
/
0x34 / { “SMBfindclose”, reply_findclose,AS_USER},
/
0x35 / { “SMBfindnclose”, reply_findnclose, AS_USER},
/
0x36 */ { NULL, NULL, 0 },

/* 0x6c / { NULL, NULL, 0 },
/
0x6d / { NULL, NULL, 0 },
/
0x6e / { NULL, NULL, 0 },
/
0x6f / { NULL, NULL, 0 },
/
0x70 / { “SMBtcon”,reply_tcon,0},
/
0x71 / { “SMBtdis”,reply_tdis,DO_CHDIR},
/
0x72 / { “SMBnegprot”,reply_negprot,0},
/
0x73 / { “SMBsesssetupX”,reply_sesssetup_and_X,0},
/
0x74 / { “SMBulogoffX”, reply_ulogoffX, 0}, / ulogoff doesn’t give a valid TID /
/
0x75 / { “SMBtconX”,reply_tcon_and_X,0},
/
0x76 / { NULL, NULL, 0 },
。。。。。。。
/
0x7f / { NULL, NULL, 0 },
/
0x80 / { “SMBdskattr”,reply_dskattr,AS_USER},
/
0x81 / { “SMBsearch”,reply_search,AS_USER},
/
0x82 / { “SMBffirst”,reply_search,AS_USER},
/
0x83 / { “SMBfunique”,reply_search,AS_USER},
/
0x84 / { “SMBfclose”,reply_fclose,AS_USER},
。。。。。。。。
/
0x9f / { NULL, NULL, 0 },
/
0xa0 / { “SMBnttrans”, reply_nttrans, AS_USER | CAN_IPC },
/
0xa1 / { “SMBnttranss”, reply_nttranss, AS_USER | CAN_IPC },
/
0xa2 / { “SMBntcreateX”, reply_ntcreate_and_X, AS_USER | CAN_IPC },
/
0xa3 / { NULL, NULL, 0 },
/
0xa4 / { “SMBntcancel”, reply_ntcancel, 0 },
/
0xa5 / { “SMBntrename”, reply_ntrename, AS_USER | NEED_WRITE },
/
0xa6 / { NULL, NULL, 0 },
。。。。。。。。。
/
0xbf / { NULL, NULL, 0 },
/
0xc0 / { “SMBsplopen”,reply_printopen,AS_USER},
/
0xc1 / { “SMBsplwr”,reply_printwrite,AS_USER},
/
0xc2 / { “SMBsplclose”,reply_printclose,AS_USER},
/
0xc3 / { “SMBsplretq”,reply_printqueue,AS_USER},
/
0xc4 / { NULL, NULL, 0 },
。。。。。。。。。
/
0xcf / { NULL, NULL, 0 },
/
0xd0 / { “SMBsends”,reply_sends,AS_GUEST},
/
0xd1 / { “SMBsendb”,NULL,AS_GUEST},
/
0xd2 / { “SMBfwdname”,NULL,AS_GUEST},
/
0xd3 / { “SMBcancelf”,NULL,AS_GUEST},
/
0xd4 / { “SMBgetmac”,NULL,AS_GUEST},
/
0xd5 / { “SMBsendstrt”,reply_sendstrt,AS_GUEST},
/
0xd6 / { “SMBsendend”,reply_sendend,AS_GUEST},
/
0xd7 / { “SMBsendtxt”,reply_sendtxt,AS_GUEST},
。。。。。。。。。。。
/
0xff */ { NULL, NULL, 0 }

};

你可能感兴趣的:(源码分析)