{"id":13541278,"url":"https://github.com/fdncred/nu_plugin_pnet","last_synced_at":"2025-11-01T15:30:20.617Z","repository":{"id":106105119,"uuid":"575470789","full_name":"fdncred/nu_plugin_pnet","owner":"fdncred","description":"A nushell plugin to list system network interfaces","archived":true,"fork":false,"pushed_at":"2024-08-22T12:58:08.000Z","size":191,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T12:40:40.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fdncred.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-07T15:31:35.000Z","updated_at":"2024-09-09T16:08:03.000Z","dependencies_parsed_at":"2023-11-16T03:25:20.685Z","dependency_job_id":"113445a8-34a5-40fe-8181-973ea59ccd53","html_url":"https://github.com/fdncred/nu_plugin_pnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdncred%2Fnu_plugin_pnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdncred%2Fnu_plugin_pnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdncred%2Fnu_plugin_pnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdncred%2Fnu_plugin_pnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdncred","download_url":"https://codeload.github.com/fdncred/nu_plugin_pnet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239297764,"owners_count":19615750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:00:42.919Z","updated_at":"2025-11-01T15:30:20.587Z","avatar_url":"https://github.com/fdncred.png","language":"Rust","readme":"# nu_plugin_pnet\n\nThis is taken from https://github.com/fennewald/nu_plugin_net and modernized a tiny bit. Thanks! Be sure to read the changelog for tips for Windows users.\n\nA nushell plugin to list system network interfaces\n\nA simple and straightforward plugin. All of the heavy lifting is done by pnet. This package just translates the datatypes into a nu-accepatble format.\n\nFormat may be subject to change.\n\n# Examples\n\n```\n~\u003e net\n╭───┬──────────┬─────────────┬───────────────────┬────────────────┬───────────────────╮\n│ # │   name   │ description │        mac        │      ips       │       flags       │\n├───┼──────────┼─────────────┼───────────────────┼────────────────┼───────────────────┤\n│ 1 │ lo       │             │ 00:00:00:00:00:00 │ [table 2 rows] │ {record 5 fields} │\n│ 2 │ enp2s0f0 │             │ 8c:8c:aa:1f:a5:2a │ [table 2 rows] │ {record 5 fields} │\n│ 3 │ wlp3s0   │             │ c8:e2:65:c3:09:42 │ [table 2 rows] │ {record 5 fields} │\n╰───┴──────────┴─────────────┴───────────────────┴────────────────┴───────────────────╯\n```\n\n```\n~\u003e net | flatten flags\n╭───┬──────────┬─────────────┬───────────────────┬────────────────┬───────┬──────────────┬─────────────┬───────────────────┬──────────────╮\n│ # │   name   │ description │        mac        │      ips       │ is_up │ is_broadcast │ is_loopback │ is_point_to_point │ is_multicast │\n├───┼──────────┼─────────────┼───────────────────┼────────────────┼───────┼──────────────┼─────────────┼───────────────────┼──────────────┤\n│ 1 │ lo       │             │ 00:00:00:00:00:00 │ [table 2 rows] │ true  │ false        │ true        │ false             │ false        │\n│ 2 │ enp2s0f0 │             │ 8c:8c:aa:1f:a5:2a │ [table 2 rows] │ true  │ true         │ false       │ false             │ true         │\n│ 3 │ wlp3s0   │             │ c8:e2:65:c3:09:42 │ [table 2 rows] │ true  │ true         │ false       │ false             │ true         │\n╰───┴──────────┴─────────────┴───────────────────┴────────────────┴───────┴──────────────┴─────────────┴───────────────────┴──────────────╯\n```\n\n```\n~\u003e net | select ips | flatten | flatten\n╭───┬──────┬──────────────────────────────┬────────╮\n│ # │ type │             addr             │ prefix │\n├───┼──────┼──────────────────────────────┼────────┤\n│ 0 │ v4   │ 127.0.0.1/8                  │      8 │\n│ 1 │ v6   │ ::1/128                      │    128 │\n│ 2 │ v4   │ 192.168.1.232/24             │     24 │\n│ 3 │ v6   │ fe80::8e8c:aaff:fe1f:a52a/64 │     64 │\n│ 4 │ v4   │ 192.168.4.189/24             │     24 │\n│ 5 │ v6   │ fe80::cae2:65ff:fec3:942/64  │     64 │\n╰───┴──────┴──────────────────────────────┴────────╯\n```\n\n# Installing\n\nThis plugin uses the `msgpack` encoding. To register:\n\n```\nregister \u003cpath to plugin binary\u003e\n```\n\n# Changelog\n\nVersion 1.1.0\n\nUse `if_index` instead of `index`, fixing the way table indexes are displayed\n\nVersion 1.2.0\n\nRenamed from `net` to `pnet` as to not cause a conflict on Windows.\n\nThe biggest mistake I made was not realizing that:\n\n1. You have to download Packet.lib from Winpcap Developers Pack from https://www.winpcap.org/devel.htm, making sure to use the x64 version vs the x86 version. You have to put Packet.lib in the root of the nu_plugin_pnet folder for linking.\n2. You have to install npcap installer from https://npcap.com/#download\n\nOtherwise you get these errors when trying to register\n\n```\nregister c:\\CarTar\\debug\\nu_plugin_pnet.exe\n  × Error getting signatures\n   ╭─[entry #1:1:1]\n 1 │ register c:\\CarTar\\debug\\nu_plugin_pnet.exe\n   · ────┬───\n   ·     ╰── Plugin failed to load: unable to get encoding from plugin: failed to fill whole buffer\n   ╰────\n```\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdncred%2Fnu_plugin_pnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdncred%2Fnu_plugin_pnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdncred%2Fnu_plugin_pnet/lists"}