func (client *Client) SetDebug() {
	client.logDebug = log.New(os.Stderr, "DEBUG ipvs:", 0)
}
Output debugging messages.
package ipvs
import (
	"encoding/hex"
	"fmt"
	"github.com/hkwi/nlgo"
	"io/ioutil"
	"log"
	"os"
	"syscall"
)
type Client struct {
	genlHub    *nlgo.GenlHub
	genlFamily nlgo.GenlFamily
	logDebug   *log.Logger
	logWarning *log.Logger
}
func Open() (*Client, error) {
	client := &Client{
		logDebug:   log.New(ioutil.Discard, "DEBUG ipvs:", 0),
		logWarning: log.New(os.Stderr, "WARN ipvs:", 0),
	}
	if err := client.init(); err != nil {
		return nil, err
	}
	return client, nil
}
func (self *Client) init() error {
	if genlHub, err := nlgo.NewGenlHub(); err != nil {
		return err
	} else {
		self.genlHub = genlHub
	}
	if genlFamily := self.genlHub.Family(IPVS_GENL_NAME); genlFamily.Id == 0 {
		return fmt.Errorf("Invalid genl family: %v", IPVS_GENL_NAME)
	} else if genlFamily.Version != IPVS_GENL_VERSION {
		return fmt.Errorf("Unsupported ipvs genl family: %+v", genlFamily)
	} else {
		self.logDebug.Printf("genlFamily: %+v\n", genlFamily)
		self.genlFamily = genlFamily
	}
	return nil
}