Skip to content
Snippets Groups Projects
Commit 0eba99ae authored by Martin Teichmann's avatar Martin Teichmann
Browse files

add the license logic

this actually also fixes a subprograms bug
parent 80924cd5
No related branches found
No related tags found
No related merge requests found
...@@ -834,12 +834,14 @@ class TemporaryDesc(RegisterDesc): ...@@ -834,12 +834,14 @@ class TemporaryDesc(RegisterDesc):
class EBPF: class EBPF:
stack = 0 stack = 0
name = None name = None
license = None
def __init__(self, prog_type=0, license="", kern_version=0, def __init__(self, prog_type=0, license=None, kern_version=0,
name=None): name=None, subprograms=()):
self.opcodes = [] self.opcodes = []
self.prog_type = prog_type self.prog_type = prog_type
self.license = license if license is not None:
self.license = license
self.kern_version = kern_version self.kern_version = kern_version
if name is None: if name is None:
if self.name is None: if self.name is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment