diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-10-11 19:39:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-10-11 19:39:29 +0000 |
commit | 0faf7339147a90ae176d10932e14b4170241734a (patch) | |
tree | 93bfe9877d18ab444aae27276f6df0f2b5e88a52 /packet-ipp.c | |
parent | 817465175da0d47b3d06086bf736ce2fe2040cad (diff) |
The answer to the question
(Is there a better way to force a parse to fail from arbitrary
places in routines called by the parser?)
asked in an earlier checkin is "yes", which would've been obvious had I
seen the code that handles MAC addresses, as it returns NULL on an
error, and the YACC clause checks for a null return value and, if the
return value is null, uses YYERROR to make the parse fail.
Use that for IPv4 and IPv6 errors.
Also, use "dfilter_fail()" for the MAC address code.
svn path=/trunk/; revision=810
Diffstat (limited to 'packet-ipp.c')
0 files changed, 0 insertions, 0 deletions