code: func isPacketForwardingEnabled(ipVer ipVersion, iface string) (bool, error) {
  	switch ipVer {
  	case ipv4, ipv6:
  		return getKernelBoolParam(getForwardingKernelParam(ipVer, iface))
  	case ipvboth:
  		enabled, err := getKernelBoolParam(getForwardingKernelParam(ipv4, ""))
  		if err != nil || !enabled {
  			return enabled, err
  		}
  		return getKernelBoolParam(getForwardingKernelParam(ipv6, iface))
  	default:
  		return true, nil
  	}
  }
docs: //Checks to see if packet forwarding is enabled