Project

General

Profile

Actions

Feature #1028

closed

How to identify which rule called the lua script

Added by Tuatini GODARD almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

Hello,
I am looking for a way to identify which rule called a lua script
when different rules call the same script.
Thank you.

Actions #1

Updated by Tuatini GODARD almost 11 years ago

VictorJ> maybe you could set a flowint
VictorJ> and access that from the script
from IRC

Actions #2

Updated by Victor Julien almost 11 years ago

  • Assignee set to Victor Julien
  • Target version set to TBD
Actions #3

Updated by Victor Julien over 10 years ago

  • Status changed from New to Closed
  • Target version changed from TBD to 2.0beta2
  • % Done changed from 0 to 100

This was added through:

commit ae69a4a024aa666e4051c8ea4c73cd363e97a03d
Author: Victor Julien <victor@inliniac.net>
Date:   Tue Nov 5 21:45:08 2013 +0100

    luajit: pass calling rule's sid,gid,rev to script as SCRuleSid, SCRuleGid, SCRuleRev.

Actions

Also available in: Atom PDF