| RANDPKTDUMP(1) | RANDPKTDUMP(1) |
نام (NAME)
randpktdump - فراهم کردن رابطی برای تولید ترافیکهای ضبطشده تصادفی با استفاده از randpkt
خلاصه دستور (SYNOPSIS)
randpktdump [ --help ] [ --version ] [ --extcap-interfaces ] [ --extcap-dlts ] [ --extcap-interface=<interface> ] [ --extcap-config ] [ --capture ] [ --fifo=<path to file or pipe> ] [ --maxbytes=<bytes> ] [ --count=<num> ] [ --delay=<ms> ] [ --random-type=<true|false> ] [ --all-random=<true|false> ] [ --type=<packet type> ]
توضیحات (DESCRIPTION)
randpktdump یک ابزار extcap است که امکان دسترسی به تولیدکننده بسته تصادفی (randpkt) را فراهم میکند. این ابزار عمدتاً برای مقاصد آزمایشی و آموزشی استفاده میشود.
گزینهها (OPTIONS)
--help
--version
--extcap-interfaces
--extcap-interface=<interface>
--extcap-dlts
--extcap-config
--capture
--fifo=<path to file or pipe>
--maxbytes=<bytes>
--count=<num>
--delay=<ms>
--random-type
--all-random
--type=<packet type>
مثالها (EXAMPLES)
برای مشاهده آرگومانهای برنامه:
randpktdump --help
برای مشاهده نسخه برنامه:
randpktdump --version
برای مشاهده رابطها:
randpktdump --extcap-interfaces
خروجی نمونه
interface {value=randpkt}{display=Random packet generator}
برای مشاهده DLTهای رابط:
randpktdump --extcap-interface=randpkt --extcap-dlts
خروجی نمونه
dlt {number=1}{name=randpkt}{display=Ethernet}
برای مشاهده گزینههای پیکربندی رابط:
randpktdump --extcap-interface=randpkt --extcap-config
خروجی نمونه
arg {number=0}{call=--maxbytes}{display=Max bytes in a packet}{type=unsigned}{range=1,5000}{default=5000}{tooltip=The max number of bytes in a packet}
arg {number=1}{call=--count}{display=Number of packets}{type=long}{default=1000}{tooltip=Number of packets to generate (-1 for infinite)}
arg {number=2}{call=--delay}{display=Packet delay (ms)}{type=long}{default=0}{tooltip=Milliseconds to wait after writing each packet}
arg {number=3}{call=--random-type}{display=Random type}{type=boolflag}{default=false}{tooltip=The packets type is randomly chosen}
arg {number=4}{call=--all-random}{display=All random packets}{type=boolflag}{default=false}{tooltip=Packet type for each packet is randomly chosen}
arg {number=5}{call=--type}{display=Type of packet}{type=selector}{tooltip=Type of packet to generate}
value {arg=5}{value=arp}{display=Address Resolution Protocol}
[...]
value {arg=5}{value=usb-linux}{display=Universal Serial Bus with Linux specific header}
برای ضبط کردن:
randpktdump --extcap-interface=randpkt --fifo=/tmp/randpkt.pcapng --capture
نکته
برای متوقف کردن ضبط، کلیدهای CTRL+C را فشار دهید یا فرایند برنامه را kill/terminate کنید.
همچنین ببینید (SEE ALSO)
wireshark(1), tshark(1), dumpcap(1), extcap(4), randpkt(1)
نکات (NOTES)
randpktdump بخشی از توزیع Wireshark است. آخرین نسخه Wireshark در این نشانی قابل دریافت است: https://www.wireshark.org.
نسخههای HTML از صفحات راهنمای پروژه Wireshark در این نشانی در دسترس هستند: https://www.wireshark.org/docs/man-pages.
نویسندگان (AUTHORS)
نویسنده
اصلی
Dario Lombardo <lomato[AT]gmail.com>
| 2026-09-03 |