| 520 | #ifdef FF_KNI |
| 521 | |
| 522 | static enum FF_KNICTL_ACTION get_kni_action(const char *c){ |
| 523 | if (!c) |
| 524 | return FF_KNICTL_ACTION_DEFAULT; |
| 525 | if (0 == strcasecmp(c, "alltokni")){ |
| 526 | return FF_KNICTL_ACTION_ALL_TO_KNI; |
| 527 | } else if (0 == strcasecmp(c, "alltoff")){ |
| 528 | return FF_KNICTL_ACTION_ALL_TO_FF; |
| 529 | } else if (0 == strcasecmp(c, "default")){ |
| 530 | return FF_KNICTL_ACTION_DEFAULT; |
| 531 | } else { |
| 532 | return FF_KNICTL_ACTION_DEFAULT; |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | static int |
| 537 | init_kni(void) |
no test coverage detected