code: func toIPVSService(vs *VirtualServer) (*libipvs.Service, error) {
  	if vs == nil {
  		return nil, errors.New("virtual server should not be empty")
  	}
  	ipvsSvc := &libipvs.Service{
  		Address:   vs.Address,
  		Protocol:  stringToProtocol(vs.Protocol),
  		Port:      vs.Port,
  		SchedName: vs.Scheduler,
  		Flags:     uint32(vs.Flags),
  		Timeout:   vs.Timeout,
  	}
  
  	if ip4 := vs.Address.To4(); ip4 != nil {
  		ipvsSvc.AddressFamily = syscall.AF_INET
  		ipvsSvc.Netmask = 0xffffffff
  	} else {
  		ipvsSvc.AddressFamily = syscall.AF_INET6
  		ipvsSvc.Netmask = 128
  	}
  	return ipvsSvc, nil
  }
docs: // toIPVSService converts a VirtualServer to the equivalent IPVS Service structure.