diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-23 00:26:26 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-23 00:26:26 +0100 |
commit | 72aed1a00ba9e18116d6fd907f7e1a36d0a0a583 (patch) | |
tree | c753fb8b35af591812c5d64eeccdb6f9c9ff0c30 /sysdep/unix/krt.Y | |
parent | 89647357af0d8507652f257f1e8f5679fe9a7078 (diff) |
Adds krt_source route attribute.
Thanks Jeremie Dimino for the original patch.
Diffstat (limited to 'sysdep/unix/krt.Y')
-rw-r--r-- | sysdep/unix/krt.Y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdep/unix/krt.Y b/sysdep/unix/krt.Y index 18e1e52d..2c45c5fe 100644 --- a/sysdep/unix/krt.Y +++ b/sysdep/unix/krt.Y @@ -17,7 +17,7 @@ CF_DEFINES CF_DECLS -CF_KEYWORDS(KERNEL, PERSIST, SCAN, TIME, LEARN, DEVICE, ROUTES) +CF_KEYWORDS(KERNEL, PERSIST, SCAN, TIME, LEARN, DEVICE, ROUTES, KRT_SOURCE) CF_GRAMMAR @@ -90,6 +90,8 @@ kif_item: } ; +CF_ADDTO(dynamic_attr, KRT_SOURCE { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_KRT_SOURCE); }) + CF_CODE CF_END |