Git Product home page Git Product logo

go-nsdp's Introduction

go-nsdp

NSDP(Netgear Switch Discovery Protocol) client library for go

tested switches

  • GS308E (V1.00.05JP with v2auth)

usage

# nsdp-cli query model-name host-name ipaddr mac
{
  "host_name": "foobar",
  "model_name": "GS308E"
  "ip": "192.168.1.111",
}

# ./nsdp-cli -password <password> set tag-vlan:1000:1,2,3,4,5,6,7:
{}

go-nsdp's People

Contributors

uweber avatar yaamai avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

uweber

go-nsdp's Issues

License?

Can you declare a license for this awesome project? I want to integrate this in my network management which will be open source soon and I do not want to disregard your license :)

How to use this?

Hi,

I recently bought a GS308E but I'm unable to understand how to set vlans.
I have NSDP management and 802.1Q advanced enabled.

Can you give me some example commands?

Simplify `CalcAuthV2Password` implementation

func CalcAuthV2Password(password string, mac, salt []byte) []byte {
	var key [20]byte
	copy(key[:], password)
	return []byte{
		salt[3] ^ salt[2] ^ mac[1] ^ mac[5] ^ key[0] ^ key[1] ^ key[2],
		salt[3] ^ salt[1] ^ mac[4] ^ mac[0] ^ key[3] ^ key[4] ^ key[5],
		salt[0] ^ salt[2] ^ mac[3] ^ mac[2] ^ key[6] ^ key[7] ^ key[8],
		salt[0] ^ salt[1] ^ mac[4] ^ mac[5] ^ key[9] ^ key[10] ^ key[11],
		salt[3] ^ salt[2] ^ mac[1] ^ mac[5] ^ key[12] ^ key[13] ^ key[14],
		salt[3] ^ salt[1] ^ mac[4] ^ mac[0] ^ key[15] ^ key[16] ^ key[17],
		salt[0] ^ salt[2] ^ mac[3] ^ mac[2] ^ key[18] ^ key[19] ^ key[0],
		salt[0] ^ salt[1] ^ mac[4] ^ mac[5] ^ key[1] ^ key[3] ^ key[5],
	}
}

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.