4 * Copyright (C) 2000-2003 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: printportcmp.c,v 1.7.4.1 2006/06/16 17:21:14 darrenr Exp
14 void printportcmp(pr
, frp
)
18 static char *pcmp1
[] = { "*", "=", "!=", "<", ">", "<=", ">=",
21 if (frp
->frp_cmp
== FR_INRANGE
|| frp
->frp_cmp
== FR_OUTRANGE
)
22 printf(" port %d %s %d", frp
->frp_port
,
23 pcmp1
[frp
->frp_cmp
], frp
->frp_top
);
24 else if (frp
->frp_cmp
== FR_INCRANGE
)
25 printf(" port %d:%d", frp
->frp_port
, frp
->frp_top
);
27 printf(" port %s %s", pcmp1
[frp
->frp_cmp
],
28 portname(pr
, frp
->frp_port
));