Giter VIP home page Giter VIP logo

go-iproute2's Introduction

go-iproute2

Some net tools of iproute2 implement with Go.

Completions

ip

  1. ip neigh list
  2. ip link list
  3. ip addr list
  4. ip rourte list

bridge

  1. bridge monitor fdb
  2. bridge fdb list

ss

  1. ss -s: print summary of socket stat
  2. ss -l: list all udp and tcp listening sockets
  3. ss -t: list all tcp connections
  4. ss -lt: list all tcp listeners
  5. ss -u: list all udp sockets, excluding the listening ones
  6. ss -lu: list all udp listening sockets

All the above listings support IPv4 and IPv6 version.

TO-DO

  • ip
  • bridge
  • ss (basically complete)

Maybe more tools, like dcb, devlink, nstat, tc, will be implemented in some day.

go-iproute2's People

Contributors

asphaltt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-iproute2's Issues

feature request: add macvtap device

macvtap is a device like bridge.

sudo ip link add link <physical-interface> name <macvtap-interface-name> type macvtap mode bridge

sudo ip link set <macvtap-interface-name> up

golang 1.18 errror

github.com/Asphaltt/go-iproute2

../vendor/github.com/Asphaltt/go-iproute2/message.go:16:28: undefined: unix.SizeofIfInfomsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:17:28: undefined: unix.SizeofIfAddrmsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:18:28: undefined: unix.SizeofIfaCacheinfo
../vendor/github.com/Asphaltt/go-iproute2/message.go:19:28: undefined: unix.SizeofNdMsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:20:28: undefined: unix.SizeofRtMsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:88:17: undefined: unix.NdMsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:118:21: undefined: unix.IfInfomsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:140:21: undefined: unix.IfAddrmsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:162:24: undefined: unix.IfaCacheinfo
../vendor/github.com/Asphaltt/go-iproute2/message.go:184:17: undefined: unix.RtMsg
../vendor/github.com/Asphaltt/go-iproute2/message.go:20:28: too many errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.