Home
last modified time | relevance | path

Searched refs:PTR_DIFF (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/dports/security/ADMsmb/ADMsmb_0.3/rpc_pipes/
H A Dntclientnet.c79 0, PTR_DIFF(p, data), 2, in do_lsa_req_chal()
97 hdr_len = PTR_DIFF(p, rdata); in do_lsa_req_chal()
109 pkt_len = PTR_DIFF(p, rdata); in do_lsa_req_chal()
198 hdr_len = PTR_DIFF(p, rdata); in do_lsa_auth2()
210 pkt_len = PTR_DIFF(p, rdata); in do_lsa_auth2()
315 hdr_len = PTR_DIFF(p, rdata); in do_lsa_srv_pwset()
327 pkt_len = PTR_DIFF(p, rdata); in do_lsa_srv_pwset()
441 hdr_len = PTR_DIFF(p, rdata); in do_lsa_sam_logon()
453 pkt_len = PTR_DIFF(p, rdata); in do_lsa_sam_logon()
563 hdr_len = PTR_DIFF(p, rdata); in do_lsa_sam_logoff()
[all …]
H A Dntclientlsa.c68 create_rpc_request(call_id, LSA_OPENPOLICY, data, PTR_DIFF(p, data)); in do_lsa_open_policy()
76 0, PTR_DIFF(p, data), 2, in do_lsa_open_policy()
94 hdr_len = PTR_DIFF(p, rdata); in do_lsa_open_policy()
106 pkt_len = PTR_DIFF(p, rdata); in do_lsa_open_policy()
174 0, PTR_DIFF(p, data), 2, in do_lsa_query_info_pol()
192 hdr_len = PTR_DIFF(p, rdata); in do_lsa_query_info_pol()
204 pkt_len = PTR_DIFF(p, rdata); in do_lsa_query_info_pol()
304 create_rpc_request(call_id, LSA_CLOSE, data, PTR_DIFF(p, data)); in do_lsa_close()
312 0, PTR_DIFF(p, data), 2, in do_lsa_close()
330 hdr_len = PTR_DIFF(p, rdata); in do_lsa_close()
[all …]
H A Dsmbparse.c43 DEBUG(5,("%s%04x smb_io_utime\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_utime()
60 DEBUG(5,("%s%04x smb_io_time\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_time()
130 DEBUG(5,("%s%04x smb_io_dom_sid\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_dom_sid()
171 DEBUG(5,("%s%04x smb_io_unihdr\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_unihdr()
203 DEBUG(5,("%s%04x smb_io_unihdr2\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_unihdr2()
233 DEBUG(5,("%s%04x smb_io_unistr\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_unistr()
506 DEBUG(5,("%s%04x smb_io_chal\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_chal()
522 DEBUG(5,("%s%04x smb_io_cred\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_cred()
888 DEBUG(5,("%s%04x smb_io_gid\n", tab_depth(depth), PTR_DIFF(q, base))); in smb_io_gid()
1195 if (attr->len != PTR_DIFF(q, start)) in smb_io_obj_attr()
[all …]
H A Dlsaparse.c60 DEBUG(5,("%s%04x lsa_io_q_open_pol\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_q_open_pol()
80 DEBUG(5,("%s%04x lsa_io_r_open_pol\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_r_open_pol()
112 DEBUG(5,("%s%04x lsa_io_q_query\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_q_query()
191 DEBUG(5,("%s%04x lsa_io_q_close\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_q_close()
219 DEBUG(5,("%s%04x lsa_io_r_close\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_r_close()
236 DEBUG(5,("%s%04x lsa_io_r_query\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_r_query()
430 DEBUG(5,("%s%04x lsa_io_q_req_chal\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_q_req_chal()
453 DEBUG(5,("%s%04x lsa_io_r_req_chal\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_r_req_chal()
491 DEBUG(5,("%s%04x lsa_io_q_auth_2\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_q_auth_2()
511 DEBUG(5,("%s%04x lsa_io_r_auth_2\n", tab_depth(depth), PTR_DIFF(q, base))); in lsa_io_r_auth_2()
[all …]
H A Dsamrparse.c39 DEBUG(5,("%s%04x samr_io_q_unknown_1\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_q_close()
57 DEBUG(5,("%s%04x samr_io_r_unknown_1\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_r_close()
78 DEBUG(5,("%s%04x samr_io_q_open_secret\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_q_open_secret()
102 DEBUG(5,("%s%04x samr_io_r_open_secret\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_r_open_secret()
123 DEBUG(5,("%s%04x samr_io_q_lookup_rids\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_q_lookup_rids()
173 DEBUG(5,("%s%04x samr_io_r_lookup_rids\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_r_lookup_rids()
198 DEBUG(5,("%s%04x samr_io_q_unknown_22\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_q_unknown_22()
220 DEBUG(5,("%s%04x samr_io_r_unknown_22\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_r_unknown_22()
241 DEBUG(5,("%s%04x samr_io_q_unknown_24\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_q_unknown_24()
314 DEBUG(5,("%s%04x samr_io_r_unknown_24\n", tab_depth(depth), PTR_DIFF(q, base))); in samr_io_r_unknown_24()
[all …]
H A Dpipesamr.c63 return PTR_DIFF(q, base); in samr_reply_close()
114 return PTR_DIFF(q, base); in samr_reply_open_secret()
180 return PTR_DIFF(q, base); in samr_reply_lookup_rids()
227 return PTR_DIFF(q, base); in samr_reply_unknown_22()
270 return PTR_DIFF(q, base); in samr_reply_unknown_24()
323 return PTR_DIFF(q, base); in samr_reply_unknown_32()
404 return PTR_DIFF(q, base); in samr_reply_open_policy()
H A Dsrvparse.c39 DEBUG(5,("%s%04x srv_io_share_info1_str\n", tab_depth(depth), PTR_DIFF(q, base))); in srv_io_share_info1_str()
57 DEBUG(5,("%s%04x srv_io_share_info1\n", tab_depth(depth), PTR_DIFF(q, base))); in srv_io_share_info1()
76 DEBUG(5,("%s%04x srv_io_share_1_ctr\n", tab_depth(depth), PTR_DIFF(q, base))); in srv_io_share_1_ctr()
120 DEBUG(5,("%s%04x srv_io_q_net_share_enum\n", tab_depth(depth), PTR_DIFF(q, base))); in srv_io_q_net_share_enum()
163 DEBUG(5,("%s%04x srv_io_q_net_share_enum\n", tab_depth(depth), PTR_DIFF(q, base))); in srv_io_r_net_share_enum()
H A Dntclientpipe.c209 data_len = PTR_DIFF(p, data); in rpc_pipe_bind()
212 make_rpc_hdr(&hdr, RPC_BIND, 0x0, call_id, PTR_DIFF(p, data + 0x10)); in rpc_pipe_bind()
240 hdr_len = PTR_DIFF(p, rdata); in rpc_pipe_bind()
244 pkt_len = PTR_DIFF(p, rdata); in rpc_pipe_bind()
H A Dpipentlsa.c54 return PTR_DIFF(q, base); in lsa_reply_open_policy()
97 return PTR_DIFF(q, base); in lsa_reply_query_info()
206 return PTR_DIFF(q, base); in lsa_reply_lookup_sids()
228 return PTR_DIFF(q, base); in lsa_reply_lookup_rids()
H A Dwksparse.c39 DEBUG(5,("%s%04x wks_io_q_unknown_0\n", tab_depth(depth), PTR_DIFF(q, base)));
62 DEBUG(5,("%s%04x wks_io_r_unknown_0\n", tab_depth(depth), PTR_DIFF(q, base)));
/dports/net/samba412/samba-4.12.15/lib/afs/
H A Dafs_funcs.c117 strncpy(p, username, sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); in afs_createtoken()
119 strncpy(p, "", sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); in afs_createtoken()
121 strncpy(p, cell, sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); in afs_createtoken()
165 strncpy(p, "afs", sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); in afs_createtoken()
167 strncpy(p, "", sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); in afs_createtoken()
171 len = PTR_DIFF(p, clear_ticket); in afs_createtoken()
177 len = PTR_DIFF(p, clear_ticket); in afs_createtoken()
/dports/net/samba412/samba-4.12.15/source3/libsmb/
H A Dclirap.c116 strlcpy(p,"OOWb54WrLh",sizeof(param)-PTR_DIFF(p,param)); in cli_NetWkstaUserLogon()
122 strlcpy(p,user,sizeof(param)-PTR_DIFF(p,param)); in cli_NetWkstaUserLogon()
185 strlcpy(p,"WrLeh",sizeof(param)-PTR_DIFF(p,param)); in cli_RNetShareEnum()
187 strlcpy(p,"B13BWz",sizeof(param)-PTR_DIFF(p,param)); in cli_RNetShareEnum()
339 sizeof(param) - PTR_DIFF(p,param) - 1, in cli_NetServerEnum()
351 sizeof(param) - PTR_DIFF(p,param) - 1, in cli_NetServerEnum()
543 strlcpy(p, "zsT", sizeof(param)-PTR_DIFF(p,param)); in cli_oem_change_password()
547 strlcpy(p,user, sizeof(param)-PTR_DIFF(p,param)); in cli_oem_change_password()
552 param_len = PTR_DIFF(p,param); in cli_oem_change_password()
802 data_len = PTR_DIFF(p, data); in cli_setpathinfo_basic()
[all …]
H A Dclirap2.c386 param, PTR_DIFF(p,param),8, in cli_RNetGroupEnum()
476 param, PTR_DIFF(p,param),8, in cli_RNetGroupEnum0()
667 param, PTR_DIFF(p,param),PTR_DIFF(p,param), in cli_NetGroupGetUsers()
736 param, PTR_DIFF(p,param),PTR_DIFF(p,param), in cli_NetUserGetGroups()
940 param, PTR_DIFF(p,param),8, in cli_RNetUserEnum()
1048 param, PTR_DIFF(p,param),8, in cli_RNetUserEnum0()
1792 param, PTR_DIFF(p,param),1024, in cli_NetPrintQEnum()
2143 param, PTR_DIFF(p,param),8, in cli_RNetServiceEnum()
2226 param, PTR_DIFF(p,param),8, in cli_NetSessionEnum()
2329 param, PTR_DIFF(p,param),PTR_DIFF(p,param), in cli_NetSessionGetInfo()
[all …]
/dports/security/ADMsmb/ADMsmb_0.3/
H A Dbyteorder.h208 tab_depth(depth), PTR_DIFF(inbuf,base),string)); \
216 tab_depth(depth), PTR_DIFF(inbuf,base),string)); \
224 tab_depth(depth), PTR_DIFF(inbuf,base),string)); \
232 tab_depth(depth), PTR_DIFF(inbuf,base), string, outbuf));
237 tab_depth(depth), PTR_DIFF(inbuf,base), string, outbuf));
242 tab_depth(depth), PTR_DIFF(inbuf,base), string, outbuf));
/dports/net/samba412/samba-4.12.15/source4/smb_server/smb/
H A Drequest.c222 ret -= PTR_DIFF(req->out.data, req->out.hdr); in req_max_data()
260 req->out.data = buf2 + PTR_DIFF(req->out.data, req->out.buffer); in req_grow_allocation()
261 req->out.ptr = buf2 + PTR_DIFF(req->out.ptr, req->out.buffer); in req_grow_allocation()
262 req->out.vwv = buf2 + PTR_DIFF(req->out.vwv, req->out.buffer); in req_grow_allocation()
263 req->out.hdr = buf2 + PTR_DIFF(req->out.hdr, req->out.buffer); in req_grow_allocation()
420 grow_size = len + PTR_DIFF(dest, req->out.data); in req_push_str()
426 dest = req->out.buffer + PTR_DIFF(dest, buf0); in req_push_str()
431 grow_size = len + PTR_DIFF(dest, req->out.data); in req_push_str()
499 src_len = bufinfo->data_size - PTR_DIFF(src, bufinfo->data); in req_pull_ucs2()
550 src_len = bufinfo->data_size - PTR_DIFF(src, bufinfo->data); in req_pull_ascii()
[all …]
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/smb_server/smb/
H A Drequest.c205 ret -= PTR_DIFF(req->out.data, req->out.hdr); in req_max_data()
243 req->out.data = buf2 + PTR_DIFF(req->out.data, req->out.buffer); in req_grow_allocation()
244 req->out.ptr = buf2 + PTR_DIFF(req->out.ptr, req->out.buffer); in req_grow_allocation()
245 req->out.vwv = buf2 + PTR_DIFF(req->out.vwv, req->out.buffer); in req_grow_allocation()
246 req->out.hdr = buf2 + PTR_DIFF(req->out.hdr, req->out.buffer); in req_grow_allocation()
403 grow_size = len + PTR_DIFF(dest, req->out.data); in req_push_str()
409 dest = req->out.buffer + PTR_DIFF(dest, buf0); in req_push_str()
414 grow_size = len + PTR_DIFF(dest, req->out.data); in req_push_str()
481 src_len = req->in.data_size - PTR_DIFF(src, req->in.data); in req_pull_ucs2()
531 src_len = req->in.data_size - PTR_DIFF(src, req->in.data); in req_pull_ascii()
[all …]
/dports/net/samba412/samba-4.12.15/lib/util/
H A Dmemory.h98 #ifndef PTR_DIFF
99 #define PTR_DIFF(p1,p2) ((ptrdiff_t)(((const char *)(p1)) - (const char *)(p2))) macro
/dports/net/samba412/samba-4.12.15/source3/smbd/
H A Dlanman.c2509 *rdata_len = PTR_DIFF(p,*rdata); in api_RNetGroupEnum()
2710 *rdata_len = PTR_DIFF(p,*rdata); in api_NetUserGetGroups()
2900 *rdata_len = PTR_DIFF(p,*rdata); in api_RNetUserEnum()
3698 SIVAL(p,6,PTR_DIFF(p2,*rdata)); in api_RNetServerGetInfo()
3722 *rdata_len = PTR_DIFF(p2,*rdata); in api_RNetServerGetInfo()
3800 SIVAL(p,0,PTR_DIFF(p2,*rdata)); in api_NetWkstaGetInfo()
3823 SIVAL(p,0,PTR_DIFF(p2,*rdata)); in api_NetWkstaGetInfo()
3832 strlcpy(p2,"",PTR_DIFF(endp,p2)); in api_NetWkstaGetInfo()
3839 *rdata_len = PTR_DIFF(p2,*rdata); in api_NetWkstaGetInfo()
4306 PTR_DIFF(endp,p2)); in api_RNetUserGetInfo()
[all …]
/dports/net/samba412/samba-4.12.15/source4/lib/samba3/
H A Dsmbpasswd.c83 hinybble = PTR_DIFF(p1, hexchars); in smbpasswd_gethexpwd()
84 lonybble = PTR_DIFF(p2, hexchars); in smbpasswd_gethexpwd()
/dports/net/samba412/samba-4.12.15/source3/nmbd/
H A Dnmbd_sendannounce.c52 send_mailslot(True, BROWSE_MAILSLOT, outbuf,PTR_DIFF(p,outbuf), in send_browser_reset()
81 send_mailslot(False, BROWSE_MAILSLOT, outbuf,PTR_DIFF(p,outbuf), in broadcast_announce_request()
125 send_mailslot(False,BROWSE_MAILSLOT, outbuf, PTR_DIFF(p,outbuf), in send_announcement()
154 send_mailslot(False,LANMAN_MAILSLOT, outbuf, PTR_DIFF(p,outbuf), in send_lm_announcement()
585 push_ascii(p, myname, sizeof(outbuf)-PTR_DIFF(p,outbuf)-1, STR_TERMINATE); in browse_sync_remote()
597 send_mailslot(True, BROWSE_MAILSLOT, outbuf,PTR_DIFF(p,outbuf), in browse_sync_remote()
/dports/net/samba412/samba-4.12.15/source3/passdb/
H A Dpdb_smbpasswd.c448 strncpy(user_name, linebuf, PTR_DIFF(p, linebuf));
449 user_name[PTR_DIFF(p, linebuf)] = '\0';
490 if (linebuf_len < (PTR_DIFF(p, linebuf) + 33)) {
852 strncpy(user_name, linebuf, PTR_DIFF(p, linebuf));
853 user_name[PTR_DIFF(p, linebuf)] = '\0';
901 pwd_seekpos += PTR_DIFF(p, linebuf);
903 if (linebuf_len < (PTR_DIFF(p, linebuf) + 33)) {
921 if (linebuf_len < (PTR_DIFF(p, linebuf) + 33)) {
946 while((linebuf_len > PTR_DIFF(p, linebuf)) && (*p != ']')) {
970 if(linebuf_len > PTR_DIFF(p, linebuf)) {
[all …]
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/libcli/raw/
H A Drawrequest.c218 req->out.data = buf2 + PTR_DIFF(req->out.data, req->out.buffer); in smbcli_req_grow_allocation()
219 req->out.ptr = buf2 + PTR_DIFF(req->out.ptr, req->out.buffer); in smbcli_req_grow_allocation()
220 req->out.vwv = buf2 + PTR_DIFF(req->out.vwv, req->out.buffer); in smbcli_req_grow_allocation()
221 req->out.hdr = buf2 + PTR_DIFF(req->out.hdr, req->out.buffer); in smbcli_req_grow_allocation()
560 src_len = req->in.data_size - PTR_DIFF(src, req->in.data); in smbcli_req_pull_ucs2()
605 src_len = req->in.data_size - PTR_DIFF(src, req->in.data); in smbcli_req_pull_ascii()
664 src_len = req->in.data_size - PTR_DIFF(src, req->in.data); in smbcli_req_pull_blob()
753 src_len = blob->length - PTR_DIFF(src, blob->data); in smbcli_blob_pull_ucs2()
803 src_len = blob->length - PTR_DIFF(src, blob->data); in smbcli_blob_pull_ascii()
/dports/net/samba412/samba-4.12.15/source4/libcli/raw/
H A Drawrequest.c213 req->out.data = buf2 + PTR_DIFF(req->out.data, req->out.buffer); in smbcli_req_grow_allocation()
214 req->out.ptr = buf2 + PTR_DIFF(req->out.ptr, req->out.buffer); in smbcli_req_grow_allocation()
215 req->out.vwv = buf2 + PTR_DIFF(req->out.vwv, req->out.buffer); in smbcli_req_grow_allocation()
216 req->out.hdr = buf2 + PTR_DIFF(req->out.hdr, req->out.buffer); in smbcli_req_grow_allocation()
369 req->in.size = NBT_HDR_SIZE + PTR_DIFF(bytes, hdr) + num_bytes; in smbcli_chained_advance()
606 src_len = bufinfo->data_size - PTR_DIFF(src, bufinfo->data); in smbcli_req_pull_ucs2()
652 src_len = bufinfo->data_size - PTR_DIFF(src, bufinfo->data); in smbcli_req_pull_ascii()
711 src_len = bufinfo->data_size - PTR_DIFF(src, bufinfo->data); in smbcli_req_pull_blob()
801 src_len = blob->length - PTR_DIFF(src, blob->data); in smbcli_blob_pull_ucs2()
852 src_len = blob->length - PTR_DIFF(src, blob->data); in smbcli_blob_pull_ascii()
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/lib/samba3/
H A Dsmbpasswd.c84 hinybble = PTR_DIFF(p1, hexchars); in smbpasswd_gethexpwd()
85 lonybble = PTR_DIFF(p2, hexchars); in smbpasswd_gethexpwd()
244 acc->username = talloc_strndup(ctx, p, PTR_DIFF(q, p)); in samba3_read_smbpasswd()
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/lib/util/
H A Dutil_str.c112 if (PTR_DIFF(&len, dest) > 0) { /* check if destination is on the stack, ok if so */ in safe_strcpy()
152 if (PTR_DIFF(&src_len, dest) > 0) { /* check if destination is on the stack, ok if so */ in safe_strcat()
207 hinybble = PTR_DIFF(p1, hexchars); in strhex_to_str()
208 lonybble = PTR_DIFF(p2, hexchars); in strhex_to_str()
740 return PTR_DIFF(p, base_ptr) & 1; in ucs2_align()

12345678910>>...12