mostlygeek / arp Goto Github PK
View Code? Open in Web Editor NEWARP table tools for golang
License: MIT License
ARP table tools for golang
License: MIT License
Hello,
This project looks useful as part of something else I'm working on. I wanted to propose a bit of cleanup and just see what your feedback on it is.
You have this PR: #1 which is still outstanding. I think that should be merged.
Also, @jstotz has his fork here: https://github.com/jstotz/arp where he's cleaned a few things up (normalized the address output across platforms, merged the PR above, and some other minor stuff). Those look like sensible changes to me and should probably be merged back here.
There are also two additional points:
I can do the work described above. My main question is do you want to continue to house the "main" version here in this repo? (I can't tell if you are maintaining this or not.)
-Brad
I am using this package with the fyne UI toolkit. When the arp command is execured via exec() it pops up a command window that goes away after the arp command is run. To resolve this issue, the following command must be run before doing the exec():
syscall.SysProcAttr{HideWindow: true}
The following snippet should fix the issue:
func Table() ArpTable {
cmd := exec.Command("arp", "-a")
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
var outb bytes.Buffer
cmd.Stdout = &outb
err := cmd.Run()
data := outb.String()
Hello, is this repo currently maintained? I am considering using it in an industrial project (respecting the license ofc), but I need to know whether possible PRs would be adressed/merged by the maintainer in a timely fashion.
Given the hypothetical mac address ab:bc:cd:01:02:03
, this library returns a table whose values are missing leading zero padding, eg ab:bc:cd:1:2:3
. This prevents values in the table from being comparable to the actual mac address.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.