diff --git a/README.md b/README.md index d1ff93f..520882f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ - Respond to all NDP solicitations on an interface - Respond to NDP solicitations for whitelisted addresses on an interface - Proxy NDP between interfaces with an optional whitelist for neighbor solicitations -- Optionally automatically determine whitelist based on the IPs assigned to the interfaces +- Optionally determine whitelist automatically based on the IPs assigned to the interfaces - Permissions required: root or CAP_NET_RAW ## Usage @@ -31,4 +31,4 @@ proxyInstance := pndp.NewProxy(iface1 string, iface2 string, filter []*net.IPNet proxyInstance.Start() proxyInstance.Stop() ```` -Pull request are welcome for any functionality you add. \ No newline at end of file +Pull requests are welcome for any functionality you add. \ No newline at end of file diff --git a/pndp/process.go b/pndp/process.go index 5078d64..d97a395 100644 --- a/pndp/process.go +++ b/pndp/process.go @@ -126,7 +126,7 @@ func (obj *ProxyObj) start() { } //Stop a running Proxy instance -// Returns false on success +// Returns false on error func (obj *ProxyObj) Stop() bool { close(obj.stopChan) fmt.Println("Shutting down proxy instance..") diff --git a/pndpd.conf b/pndpd.conf index c2f5cb6..4d49507 100644 --- a/pndpd.conf +++ b/pndpd.conf @@ -30,6 +30,7 @@ responder { // Proxy example with autoconfigured whitelist // The whitelist is configured based on the addresses assigned to the interface specified. This works even if the IP addresses change frequently. +// The whitelist is applied to iface2 proxy { iface1 eth0 iface2 eth1