summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2000-04-28 18:36:47 +0000
committerShirish Kalele <kalele@samba.org>2000-04-28 18:36:47 +0000
commitb39cee0bb9de856f8e4fa1f8a227ff885a5c56ff (patch)
treea0328a42ebfc34914a5417d7ac98e7617e325794 /source3/rpc_parse
parentea9b2ed326caba0f7dfa514167bb6f89bc852a18 (diff)
downloadsamba-b39cee0bb9de856f8e4fa1f8a227ff885a5c56ff.tar.gz
samba-b39cee0bb9de856f8e4fa1f8a227ff885a5c56ff.tar.bz2
samba-b39cee0bb9de856f8e4fa1f8a227ff885a5c56ff.zip
Added info level 1005 to netsharegetinfo (is the share a DFS root)
Added dfs_server announcement in set_default_server_announce_type() (This used to be commit 99d07e13520b04d99999938d259d56fa65c8a8ea)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_srv.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index 8997b05e0b..6eeae80cfc 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -204,6 +204,27 @@ static BOOL srv_io_share_info2(char *desc, SH_INFO_2 *sh2, prs_struct *ps, int d
/*******************************************************************
Reads or writes a structure.
********************************************************************/
+static BOOL srv_io_share_info1005(char* desc, SRV_SHARE_INFO_1005* sh1005,
+ prs_struct* ps, int depth)
+{
+ if(sh1005 == NULL)
+ return False;
+
+ prs_debug(ps, depth, desc, "srv_io_share_info1005");
+ depth++;
+
+ if(!prs_align(ps))
+ return False;
+
+ if(!prs_uint32("dfs_root_flag", ps, depth, &sh1005->dfs_root_flag))
+ return False;
+
+ return True;
+}
+
+/*******************************************************************
+ Reads or writes a structure.
+********************************************************************/
static BOOL srv_io_srv_share_ctr(char *desc, SRV_SHARE_INFO_CTR *ctr, prs_struct *ps, int depth)
{
@@ -527,8 +548,12 @@ BOOL srv_io_r_net_share_get_info(char *desc, SRV_R_NET_SHARE_GET_INFO *r_n, prs_
return False;
break;
+ case 1005:
+ if(!srv_io_share_info1005("", &r_n->share.info1005,
+ ps, depth))
+ return False;
default:
- DEBUG(5,("%s no share info at switch_value %d\n",
+ DEBUG(5,("%s no share info at switch_value %d\n",
tab_depth(depth), r_n->switch_value));
break;
}