update the idl for wkssvc and generate the dissector by pidl

svn path=/trunk/; revision=19321
This commit is contained in:
Ronnie Sahlberg 2006-09-25 08:50:21 +00:00
parent 66c44bb699
commit e2aea53993
4 changed files with 4401 additions and 1706 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,66 +1,40 @@
/* packet-dcerpc-wkssvc.h
* Routines for SMB \PIPE\wkssvc packet disassembly
* Copyright 2001, Tim Potter <tpot@samba.org>
* Copyright 2002, Richard Sharpe <rsharpe@richardsharpe.org>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* autogenerated by pidl */
/* DO NOT EDIT
This filter was automatically generated
from wkssvc.idl and wkssvc.cnf.
Pidl is a perl based IDL compiler for DCE/RPC idl files.
It is maintained by the Samba team, not the Wireshark team.
Instructions on how to download and install Pidl can be
found at http://wiki.wireshark.org/Pidl
*/
#ifndef __PACKET_DCERPC_WKSSVC_H
#define __PACKET_DCERPC_WKSSVC_H
/* Functions available on the WKSSVC pipe. From Samba, include/rpc_wkssvc.h */
#include "packet-dcerpc-srvsvc.h"
#define WKS_NETRWKSTAGETINFO 0x00
#define WKS_NETRWKSTASETINFO 0x01
#define WKS_NETRWKSTAUSERENUM 0x02
#define WKS_NETRWKSTAUSERGETINFO 0x03
#define WKS_NETRWKSTAUSERSETINFO 0x04
#define WKS_NETRWKSTATRANSPORTENUM 0x05
#define WKS_NETRWKSTATRANSPORTADD 0x06
#define WKS_NETRWKSTATRANSPORTDEL 0x07
#define WKS_NETRUSEADD 0x08
#define WKS_NETRUSEGETINFO 0x09
#define WKS_NETRUSEDEL 0x0a
#define WKS_NETRUSEENUM 0x0b
#define WKS_NETRMESSAGEBUFFERSEND 0x0c
#define WKS_NETRWORKSTATIONSTATISTICSGET 0x0d
#define WKS_NETRLOGONDOMAINNAMEADD 0x0e
#define WKS_NETRLOGONDOMAINNAMEDEL 0x0f
#define WKS_NETRJOINDOMAIN 0x10
#define WKS_NETRUNJOINDOMAIN 0x11
#define WKS_NETRRENAMEMACHINEINDOMAIN 0x12
#define WKS_NETRVALIDATENAME 0x13
#define WKS_NETRGETJOININFORMATION 0x14
#define WKS_NETRGETJOINABLEOUS 0x15
#define WKS_NETRJOINDOMAIN2 0x16
#define WKS_NETRUNJOINDOMAIN2 0x17
#define WKS_NETRRENAMEMACHINEINDOMAIN2 0x18
#define WKS_NETRVALIDATENAME2 0x19
#define WKS_NETRGETJOINABLEOUS2 0x1a
#define WKS_NETRADDALTERNATECOMPUTERNAME 0x1b
#define WKS_NETRREMOVEALTERNATECOMPUTERNAME 0x1c
#define WKS_NETRSETPRIMARYCOMPUTERNAME 0x1d
#define WKS_NETRENUMERATECOMPUTERNAMES 0x1e
#endif /* packet-dcerpc-wkssvc.h */
int wkssvc_dissect_struct_NetWkstaInfo100(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo101(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo102(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo502(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1010(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1011(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1012(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1013(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1018(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1023(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1027(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaInfo1033(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_USER_INFO_0(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_USER_INFO_0_CONTAINER(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_USER_INFO_1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_USER_INFO_1_CONTAINER(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaTransportInfo0(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_NetWkstaTransportCtr0(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_struct_PasswordBuffer(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_);
int wkssvc_dissect_bitmap_joinflags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hf_index, guint32 param);
int wkssvc_dissect_bitmap_renameflags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hf_index, guint32 param);
#endif /* __PACKET_DCERPC_WKSSVC_H */

View File

@ -14,3 +14,17 @@ TFS hf_wkssvc_wkssvc_joinflags_WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE "Create the acco
TFS hf_wkssvc_wkssvc_joinflags_WKSSVC_JOIN_FLAGS_JOIN_TYPE "Join the computer to a domain" "Join the computer to a workgroup"
HF_FIELD hf_wkssvc_platform_id "Platform Id" "wkssvc.platform_id" FT_UINT32 BASE_DEC VALS(srvsvc_srvsvc_PlatformId_vals) 0 "" "" ""
CODE START
/* Bug in pidl. Can not handle these dependencies properly yet */
static int
srvsvc_dissect_struct_PlatformId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hf_index _U_, guint32 param _U_)
{
offset = srvsvc_dissect_enum_PlatformId(tvb,offset,pinfo,tree,drep,hf_wkssvc_platform_id,0);
return offset;
}
CODE END

View File

@ -1,9 +1,3 @@
/* slightly modified from the samba 4 idl since we have not converted SRVSVC yet.
the generated dissector is not yet for inclusion.
*/
#include "idl_types.h"
/*
wkssvc interface definitions
*/
@ -12,16 +6,11 @@
version(1.0),
pointer_default(unique),
pointer_default_top(unique),
helpstring("Workstation Service")
helpstring("Workstation Service"),
depends(srvsvc)
] interface wkssvc
{
typedef [public] enum {
PLATFORM_ID_DOS = 300,
PLATFORM_ID_OS2 = 400,
PLATFORM_ID_NT = 500,
PLATFORM_ID_OSF = 600,
PLATFORM_ID_VMS = 700
} srvsvc_PlatformId;
declare [v1_enum] enum srvsvc_PlatformId;
#define BOOL uint32
@ -301,7 +290,7 @@
WERROR WKSSVC_NETRGETJOINABLEOUS ();
typedef struct {
uint8 blob[524];
uint8 data[524];
} wkssvc_PasswordBuffer;
typedef [bitmap32bit] bitmap {
@ -338,7 +327,7 @@
[in] [string,charset(UTF16),ref] uint16 *domain_name,
[in] [string,charset(UTF16)] uint16 *account_name,
[in] [string,charset(UTF16)] uint16 *admin_account,
[in] wkssvc_PasswordBuffer *type_30,
[in] wkssvc_PasswordBuffer *encrypted_password,
[in] wkssvc_joinflags join_flags
);
@ -347,7 +336,7 @@
WERROR wkssvc_NetrUnjoinDomain2 (
[in] [unique] [string,charset(UTF16)] uint16 *server_name,
[in] [unique] [string,charset(UTF16)] uint16 *account,
[in] [unique] wkssvc_PasswordBuffer *Encrypted_password,
[in] [unique] wkssvc_PasswordBuffer *encrypted_password,
[in] wkssvc_joinflags unjoin_flags
);