forked from mirrors/tftp-hpa-google
tftpd: handle rule filter flags more cleanly
Instead of a bunch of ad hoc tests, keep a bitmask of flags that would keep this rule from being executed. This also removes the ugly hack of converting the request mode between opcode and character encodings for really no good reason. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
6f96fcd1b6
commit
351907e3f0
3 changed files with 22 additions and 21 deletions
|
@ -37,7 +37,7 @@ void freerules(struct rule *);
|
|||
/* Execute a rule set on a string; returns a malloc'd new string. */
|
||||
struct formats;
|
||||
char *rewrite_string(const struct formats *, const char *,
|
||||
const struct rule *, char, int,
|
||||
const struct rule *, int, int,
|
||||
match_pattern_callback, const char **);
|
||||
|
||||
#endif /* WITH_REGEX */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue