MTEST(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… MTEST(8) β€” like, the manual page, but make it make sense πŸŽ€

okay bestie, so this is mtest from the System Manager's Manual, and it's genuinely one of those tiny little tools that does one thing and does it iconically. buckle up πŸ¦‹


✨ NAME ✨

mtest β€” literally just here to test multicast socket operations. that's the whole vibe. no cap. πŸ’œ


🌸 SYNOPSIS 🌸

mtest

that's it. that's the synopsis. she takes no arguments on the command line, she just is. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

so mtest is a small program for testing multicast socket operations. smol. mighty. obsessed with her. ✨

she accepts the following commands β€” either interactively (you type, she responds, it's giving group chat πŸ’¬) or as part of a scripted input file (which is highkey useful for automated testing, iykyk 🧚).

  • a ifname mac-addr β€” Join the link-layer group address mac-addr on interface ifname. the group address should be in IEEE 802 MAC format, delimited by colon (':') characters β€” like, colons are the whole aesthetic here πŸ”₯
  • d ifname mac-addr β€” Leave the link-layer group address mac-addr on interface ifname. bye bestie 🫢
  • m ifname 1/0 β€” Set or reset ALLMULTI mode on interface ifname. heads up though: this option is deprecated and is now a no-op πŸ’€ like she's still here but she does nothing. a ghost. an icon, honestly.
  • p ifname 1/0 β€” Set or reset promiscuous mode on interface ifname. she's looking at everything πŸ‘€
  • j mcast-addr ifname [source-addr] β€” Join the multicast address mcast-addr on the interface with name ifname. and if an optional source source-addr is specified, a source-specific join will be performed ✨ if mtest is already joined to the multicast address, the source will be added to its filter list. so it's not a whole new thing, it's an and also πŸ’…
  • l mcast-addr ifname [source-addr] β€” Leave the multicast address mcast-addr on the interface with address ifname. if a source source-addr is specified, only that source will be left β€” like a targeted unfollow, not a block 🌈
  • i mcast-addr ifname n source-addr ... β€” Set the socket with membership of mcast-addr on interface ifname to include filter mode, and add n sources beginning with source-addr to the inclusion filter list. it's giving VIP guest list πŸŽ€
  • e mcast-addr ifname n source-addr ... β€” Set the socket with membership of mcast-addr on interface ifname to exclude filter mode, and add n sources beginning with source-addr to the exclusion filter list. the opposite of the VIP list. the do not perceive me list πŸ™ˆ
  • t mcast-addr ifname source-addr β€” Set the socket with membership of mcast-addr on interface ifname to block traffic from source source-addr. blocked. blocked. blocked. πŸ’€
  • b mcast-addr ifname source-addr β€” Set the socket with membership of mcast-addr on interface ifname to allow traffic from source source-addr. unblocked, bestie, you're back in πŸ˜­πŸ’–
  • g mcast-addr ifname n β€” Print n source filter entries for mcast-addr on interface ifname. show me the receipts πŸ“‹
  • f filename β€” Read commands from the file filename. scripted slay πŸ’…
  • s n β€” Sleep for n seconds. self-care. take a nap 😴🌸
  • ? β€” List legal commands. the help me help you of it all 🧚
  • q β€” Quit the program. periodt. πŸ‘‘

πŸ¦‹ IMPLEMENTATION NOTES πŸ¦‹

for each command implemented by mtest, the address family of each argument must be identical β€” it is not possible to mix IPv4 multicast memberships with IPv6, for example. no mixing, no blending, no chaos energy. keep it consistent bestie ⭐

to support IPv6, all commands have now changed to accept an interface name rather than an interface address πŸ”₯ for IPv4, the program will perform a lookup of the primary IP address based on the interface name. careful though: this may fail if no primary IP address is assigned 😭


🌈 SEE ALSO 🌈

D. Thaler, B. Fenner, and B. Quinn, Socket Interface Extensions for Multicast Filters, RFC 3678. yes it's a whole RFC, yes you should read it, yes it's giving homework but make it lore πŸ“šβœ¨


πŸ‘‘ AUTHORS πŸ‘‘

  • Bruce Simpson
  • Steve Deering
  • Wilbert De Graaf

legends. all three. put some respect on the names πŸ«ΆπŸ’œ


and that's the whole page, bestie!! source is Debian, version/date stamped April 29, 2009 β€” a vintage, honestly, she's been serving since '09 and she's still iconic πŸŽ€πŸ’– mwah.

πŸ“¦ where this page comes from