tcpdump mailing list archives

Re: man page, usage text and filter expression formatting


From: Francois via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Sun, 19 Oct 2025 15:33:55 +0200

--- Begin Message --- From: Francois <devel.fx.lebail () orange fr>
Date: Sun, 19 Oct 2025 15:33:55 +0200
On 17/10/2025 23:14, Denis Ovsienko wrote:
One way to solve this problem would be using "keyword <arg>" or
"keyword ARG" or even "keyword <ARG>" syntax for all filter primitives.

In pcap-filter.manmisc.in, we have some keywords with optional argument as:
        vlan [vlan_id]
        mpls [label_num]
        pppoes [session_id]
        geneve [vni]
        vxlan [vni]

If we choose <argument>, we will have:
        vlan [<vlan_id>]
        mpls [<label_num>]
        pppoes [<session_id>]
        geneve [<vni>]
        vxlan [<vni>]

If we choose ARGUMENT, we will have:
        vlan [VLAN_ID]
        mpls [LABEL_NUM]
        pppoes [SESSION_ID]
        geneve [VNI]
        vxlan [VNI]

The latter is easier to read, in my opinion, with fewer characters.


--- End Message ---
_______________________________________________
tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org
To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Current thread: