2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: printportcmp.c,v 1.7 2003/02/16 02:31:05 darrenr Exp $
12 void printportcmp(pr
, frp
)
16 static char *pcmp1
[] = { "*", "=", "!=", "<", ">", "<=", ">=",
19 if (frp
->frp_cmp
== FR_INRANGE
|| frp
->frp_cmp
== FR_OUTRANGE
)
20 printf(" port %d %s %d", frp
->frp_port
,
21 pcmp1
[frp
->frp_cmp
], frp
->frp_top
);
22 else if (frp
->frp_cmp
== FR_INCRANGE
)
23 printf(" port %d:%d", frp
->frp_port
, frp
->frp_top
);
25 printf(" port %s %s", pcmp1
[frp
->frp_cmp
],
26 portname(pr
, frp
->frp_port
));