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

/freebsd-10.1-release/contrib/tcpdump/
H A Dsmb.h119 #define PTR_DIFF(p1, p2) ((size_t)(((char *)(p1)) - (char *)(p2))) macro
H A Dprint-smb.c420 print_data(words + 1, SMBMIN(wct * 2, PTR_DIFF(maxbuf, words + 1)));
430 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2)));
464 print_data(words + 1, SMBMIN(wct * 2, PTR_DIFF(maxbuf, words + 1)));
474 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2)));
514 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2)));
887 print_data(data + 2, SMBMIN(bcc, PTR_DIFF(maxbuf, data + 2)));
H A Dsmbutil.c242 return(PTR_DIFF(s, s0) + 1);
329 size_t l = PTR_DIFF(p, fmt);
461 l = PTR_DIFF(p, fmt);
699 name_type = name_extract(startbuf, PTR_DIFF(buf, startbuf),
857 size_t len = PTR_DIFF(maxbuf, buf);

Completed in 42 milliseconds