L2PING(8)
π L2PING β bestie edition π
okay so real talk, this is the l2ping utility from section 8 of the manual (that's the system manager's manual, for the sysadmin girlies π
). It's about sending L2CAP ECHO_REQUEST packets to remote devices and it's honestly iconic for checking if your bluetooth bestie is alive.
β¨ SYNOPSIS β¨
l2ping [-fhn] -a remote [-c count] [-i wait] [-S source] [-s size]
πΈ DESCRIPTION πΈ
So what does l2ping actually do? It uses the L2CAP ECHO_REQUEST datagram to elicit an L2CAP ECHO_RESPONSE datagram from a remote device. Basically you poke the device and it pokes back, and that's how you know it's there. no cap. π«Ά
The options are as follows, bestie:
π OPTIONS π
-aremote β Specify the remote device to ping. The remote device can be specified by either itsBD_ADDRor name. If name was specified then thel2pingutility will attempt to resolve the name viabt_gethostbyname(3). it's giving "who are we pinging today bestie" energy π-ccount β Number of packets to send. If this option is not specified,l2pingwill operate until interrupted (so basically forever until you hit Ctrl+C, lowkey unhinged of it). π-fβ Do not wait between sending each packet. impatient queen behavior, and we love it π₯-hβ Display usage message and exit. the classic "help me help you" move β¨-iwait β Wait wait seconds between sending each packet. The default is to wait for one second between each packet. This option is ignored if-fhas been specified. so like,-fsimply does not care about your vibes here π-nβ Numeric output only. No attempt will be made to look up symbolic names for host addresses. no name-dropping, strict 1s and 0s only π-Ssource β Specify the local device which should be used to sendL2CAP ECHO_REQUESTdatagrams. The local device can be specified by either itsBD_ADDRor name. If name was specified then thel2pingutility will attempt to resolve the name viabt_gethostbyname(3). this is your "from" address, main character energy π-ssize β Specify the number of payload bytes to be sent. The default size is44bytes. It is calculated as minimumL2CAP MTU(48bytes) minus the size of theL2CAPsignalling command header (4bytes). The maximum size is65531bytes. It is calculated as maximumL2CAP MTU(65535bytes) minus four bytes of payload reserved forl2pinginternal use. Use this option with caution. Some implementations may not like large sizes and may hang or even crash. π¨
bestie I am BEGGING you, be careful with -s. Large sizes can literally make other implementations hang or crash. this is not a drill π fr fr please use this option with caution.
π EXIT STATUS π
The l2ping utility exits 0 on success, and >0 if an error occurs. we stan a clear exit status situation π«Ά
π¦ SEE ALSO π¦
bluetooth(3), netgraph(3), netgraph(4), ng_l2cap(4), l2control(8)
π AUTHORS π
Maksim Yevmenkin <emax@FreeBSD.org> β thank you king for this utility π
π BUGS π
Could collect more statistic. Could check for duplicated, corrupted and lost packets. ngl it could be doing a lil more, but it's doing its best π₯Ί
okay that's the whole vibe check bestie π this page is from the Debian version, dated March 29, 2011 (yes it's a lil vintage, but so are we sometimes πΈ), and it's from the System Manager's Manual section 8. slay and happy pinging β¨π¦π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms