Home
last modified time | relevance | path

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

/external/tcpdump/
Dsmbutil.c242 return(PTR_DIFF(s, s0) + 1); in name_len()
329 size_t l = PTR_DIFF(p, fmt); in write_bits()
461 l = PTR_DIFF(p, fmt); in smb_fdata1()
699 name_type = name_extract(startbuf, PTR_DIFF(buf, startbuf), in smb_fdata1()
857 size_t len = PTR_DIFF(maxbuf, buf); in smb_fdata()
Dsmb.h119 #define PTR_DIFF(p1, p2) ((size_t)(((char *)(p1)) - (char *)(p2))) macro
Dprint-smb.c420 print_data(words + 1, SMBMIN(wct * 2, PTR_DIFF(maxbuf, words + 1))); in print_negprot()
430 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2))); in print_negprot()
464 print_data(words + 1, SMBMIN(wct * 2, PTR_DIFF(maxbuf, words + 1))); in print_sesssetup()
474 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2))); in print_sesssetup()
514 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2))); in print_lockingandx()
887 print_data(data + 2, SMBMIN(bcc, PTR_DIFF(maxbuf, data + 2))); in print_smb()