func ParseIPFamily(ipStr string) int64 {
	ip := net.ParseIP(ipStr)
	if ip.To4() != nil {
		return syscall.AF_INET
	} else if ip.To16() != nil {
		return syscall.AF_INET6
	}
	return -1
}
ParseIPFamily determines whether an IP string is v4 or v6
package web100
import (
	"errors"
	"io"
	"io/ioutil"
	"net"
	"strings"
	"syscall"
)
func ParseWeb100Definitions(tcpKis io.Reader) (map[string]string, error) {
	var legacyNamesToNewNames map[string]string
	var preferredName string
	data, err := ioutil.ReadAll(tcpKis)
	if err != nil {
		return nil, err
	}
	legacyNamesToNewNames = make(map[string]string)
	for _, line := range strings.Split(string(data), "\n") {
		fields := strings.Fields(line)
		if len(fields) < 2 {
			continue
		}
		if fields[0] == "VariableName:" {
			preferredName = fields[1]
		}
		if fields[0] == "RenameFrom:" {
			for _, legacyName := range fields[1:] {
				legacyNamesToNewNames[legacyName] = preferredName
			}
		}
	}
	return legacyNamesToNewNames, nil
}