Bug 261572 - ifconfig(8): extend formatting of MAC addresses to dotted
Summary: ifconfig(8): extend formatting of MAC addresses to dotted
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexander V. Chernikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-30 13:33 UTC by Trond Endrestøl
Modified: 2024-01-10 03:25 UTC (History)
1 user (show)

See Also:
linimon: mfc-stable13?


Attachments
Patch for ifconfig(8) adding the dotted format for MAC addresses (1.33 KB, patch)
2022-01-30 13:33 UTC, Trond Endrestøl
no flags Details | Diff
Patch for ifconfig(8) adding the dotted format for MAC addresses (1.63 KB, patch)
2023-05-16 16:46 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2022-01-30 13:33:59 UTC
Created attachment 231443 [details]
Patch for ifconfig(8) adding the dotted format for MAC addresses

The attached patch extends ifconfig(8) with the dotted format for MAC addresses usually employed by Cisco products running Cisco IOS and its descendents. Let me know if this should be run through a review process rather than as a PR.
Comment 1 Trond Endrestøl 2023-05-16 16:46:54 UTC
Created attachment 242216 [details]
Patch for ifconfig(8) adding the dotted format for MAC addresses

Make patch compatible with commit d1cd0344f7b7d81beda04c3cb8cfee99351c3eb8.
For ifconfig.8, use .Cm instead of .Sy.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-06-13 06:41:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d77ca41f7762bc909a83d87ebd95735b4021652f

commit d77ca41f7762bc909a83d87ebd95735b4021652f
Author:     Trond Endrestol <Trond.Endrestol@ximalas.info>
AuthorDate: 2023-06-13 06:36:16 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-06-13 06:40:15 +0000

    ifconfig(8): add the dotted format for MAC addresses.

    MFC after:      2 weeks
    PR:     261572

 sbin/ifconfig/af_link.c  | 25 +++++++++++++++++++++----
 sbin/ifconfig/ifconfig.8 |  5 ++++-
 2 files changed, 25 insertions(+), 5 deletions(-)
Comment 3 Alexander V. Chernikov freebsd_committer freebsd_triage 2023-06-13 06:42:16 UTC
Thank you for the submission and sorry for the delay.