5 int getport(fr, name, port)
14 if (fr == NULL || fr->fr_type != FR_T_IPF) {
15 s = getservbyname(name, NULL);
23 if ((fr->fr_flx & FI_TCPUDP) != 0) {
25 * If a rule is "tcp/udp" then check that both TCP and UDP
26 * mappings for this protocol name match ports.
28 s = getservbyname(name, "tcp");
32 s = getservbyname(name, "udp");
33 if (s == NULL || s->s_port != p1)
39 p = getprotobynumber(fr->fr_proto);
40 s = getservbyname(name, p ? p->p_name : NULL);