Lines Matching refs:maxbuf
173 print_trans2(const u_char *words, const u_char *dat, const u_char *buf, const u_char *maxbuf) in print_trans2() argument
209 maxbuf, unicodestr); in print_trans2()
245 const u_char *maxbuf = data + datalen; in print_browse() local
257 maxbuf, unicodestr); in print_browse()
263 maxbuf, unicodestr); in print_browse()
269 maxbuf, unicodestr); in print_browse()
275 maxbuf, unicodestr); in print_browse()
281 maxbuf, unicodestr); in print_browse()
287 maxbuf, unicodestr); in print_browse()
293 maxbuf, unicodestr); in print_browse()
299 maxbuf, unicodestr); in print_browse()
305 maxbuf, unicodestr); in print_browse()
310 "BROWSE PACKET:\nType=[B] (ResetBrowser)\nOptions=[B]\n", maxbuf, unicodestr); in print_browse()
314 data = smb_fdata(data, "Unknown Browser Frame ", maxbuf, unicodestr); in print_browse()
336 print_trans(const u_char *words, const u_char *data1, const u_char *buf, const u_char *maxbuf) in print_trans() argument
366 smb_fdata(words + 1, f1, SMBMIN(words + 1 + 2 * words[0], maxbuf), in print_trans()
373 smb_fdata(data1 + 2, f2, maxbuf - (paramlen + datalen), unicodestr); in print_trans()
386 smb_fdata(param, f3, SMBMIN(param + paramlen, maxbuf), unicodestr); in print_trans()
388 smb_fdata(data, f4, SMBMIN(data + datalen, maxbuf), unicodestr); in print_trans()
398 print_negprot(const u_char *words, const u_char *data, const u_char *buf _U_, const u_char *maxbuf) in print_negprot() argument
417 smb_fdata(words + 1, f1, SMBMIN(words + 1 + wct * 2, maxbuf), in print_negprot()
420 print_data(words + 1, SMBMIN(wct * 2, PTR_DIFF(maxbuf, words + 1))); in print_negprot()
428 maxbuf), unicodestr); in print_negprot()
430 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2))); in print_negprot()
439 …int_sesssetup(const u_char *words, const u_char *data, const u_char *buf _U_, const u_char *maxbuf) in print_sesssetup() argument
461 smb_fdata(words + 1, f1, SMBMIN(words + 1 + wct * 2, maxbuf), in print_sesssetup()
464 print_data(words + 1, SMBMIN(wct * 2, PTR_DIFF(maxbuf, words + 1))); in print_sesssetup()
472 maxbuf), unicodestr); in print_sesssetup()
474 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2))); in print_sesssetup()
483 …t_lockingandx(const u_char *words, const u_char *data, const u_char *buf _U_, const u_char *maxbuf) in print_lockingandx() argument
502 maxwords = SMBMIN(words + 1 + wct * 2, maxbuf); in print_lockingandx()
512 maxbuf), unicodestr); in print_lockingandx()
514 print_data(data + 2, SMBMIN(EXTRACT_LE_16BITS(data), PTR_DIFF(maxbuf, data + 2))); in print_lockingandx()
795 print_smb(const u_char *buf, const u_char *maxbuf) in print_smb() argument
850 maxwords = SMBMIN(data, maxbuf); in print_smb()
861 (*fn->descript.fn)(words, data, buf, maxbuf); in print_smb()
887 print_data(data + 2, SMBMIN(bcc, PTR_DIFF(maxbuf, data + 2))); in print_smb()
931 const u_char *maxbuf; in nbt_tcp_print() local
940 maxbuf = data + caplen; in nbt_tcp_print()
1001 data = smb_fdata(data, "Unknown packet type [rB]", maxbuf, 0); in nbt_tcp_print()
1020 print_smb(data, maxbuf > data + nbt_len ? data + nbt_len : maxbuf); in nbt_tcp_print()
1028 maxbuf, 0); in nbt_tcp_print()
1032 data = smb_fdata(data, "[P1]NBT Session Granted\nFlags=[B]\nLength=[rd]\n", maxbuf, 0); in nbt_tcp_print()
1042 maxbuf, 0); in nbt_tcp_print()
1069 data = smb_fdata(data, "[P1]NBT Session Keepalive\nFlags=[B]\nLength=[rd]\n", maxbuf, 0); in nbt_tcp_print()
1073 data = smb_fdata(data, "NBT - Unknown packet type\nType=[B]\n", maxbuf, 0); in nbt_tcp_print()
1092 const u_char *maxbuf = data + length; in nbt_udp137_print() local
1111 if (maxbuf <= data) in nbt_udp137_print()
1168 maxbuf, 0); in nbt_udp137_print()
1180 p = smb_fdata(p, "Name=[n1]\n#", maxbuf, 0); in nbt_udp137_print()
1204 p = smb_fdata(p, "Name=[n2]\t#", maxbuf, 0); in nbt_udp137_print()
1235 if (p < maxbuf) in nbt_udp137_print()
1236 smb_fdata(p, "AdditionalData:\n", maxbuf, 0); in nbt_udp137_print()
1255 const u_char *maxbuf = data + length; in nbt_udp138_print() local
1257 if (maxbuf > snapend) in nbt_udp138_print()
1258 maxbuf = snapend; in nbt_udp138_print()
1259 if (maxbuf <= data) in nbt_udp138_print()
1270 maxbuf, 0); in nbt_udp138_print()
1274 if (&data[3] >= maxbuf) in nbt_udp138_print()
1278 print_smb(data, maxbuf); in nbt_udp138_print()
1347 const u_char *maxbuf = data + length; in netbeui_print() local
1353 if (maxbuf > snapend) in netbeui_print()
1354 maxbuf = snapend; in netbeui_print()
1359 if (data2 >= maxbuf) { in netbeui_print()
1360 data2 = maxbuf; in netbeui_print()
1368 data = smb_fdata(data, "[P5]#", maxbuf, 0); in netbeui_print()
1371 data = smb_fdata(data, "Length=[d] Signature=[w] Command=[B]\n#", maxbuf, 0); in netbeui_print()
1412 if (&data2[3] >= maxbuf) in netbeui_print()
1416 print_smb(data2, maxbuf); in netbeui_print()
1420 if (&data2[i + 3] >= maxbuf) in netbeui_print()
1424 print_smb(&data2[i], maxbuf); in netbeui_print()
1450 const u_char *maxbuf; in ipx_netbios_print() local
1452 maxbuf = data + length; in ipx_netbios_print()
1454 if (maxbuf > snapend) in ipx_netbios_print()
1455 maxbuf = snapend; in ipx_netbios_print()
1458 if (&data[i + 4] > maxbuf) in ipx_netbios_print()
1463 print_smb(&data[i], maxbuf); in ipx_netbios_print()
1470 smb_fdata(data, "\n>>> Unknown IPX ", maxbuf, 0); in ipx_netbios_print()