Home
last modified time | relevance | path

Searched refs:rtp_exp (Results 1 – 6 of 6) sorted by relevance

/linux/net/ipv4/netfilter/
H A Dnf_nat_h323.c179 struct nf_conntrack_expect *rtp_exp, in nat_rtp_rtcp() argument
188 rtp_exp->saved_proto.udp.port = rtp_exp->tuple.dst.u.udp.port; in nat_rtp_rtcp()
189 rtp_exp->expectfn = nf_nat_follow_master; in nat_rtp_rtcp()
190 rtp_exp->dir = !dir; in nat_rtp_rtcp()
202 rtp_exp->tuple.dst.u.udp.port = info->rtp_port[i][dir]; in nat_rtp_rtcp()
219 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nat_rtp_rtcp()
223 rtp_exp->tuple.dst.u.udp.port = htons(nated_port); in nat_rtp_rtcp()
224 ret = nf_ct_expect_related(rtp_exp, 0); in nat_rtp_rtcp()
232 nf_ct_unexpect_related(rtp_exp); in nat_rtp_rtcp()
235 nf_ct_unexpect_related(rtp_exp); in nat_rtp_rtcp()
[all …]
/linux/net/netfilter/
H A Dnf_nat_sip.c566 struct nf_conntrack_expect *rtp_exp, in nf_nat_sdp_media() argument
580 *rtp_addr = rtp_exp->tuple.dst.u3; in nf_nat_sdp_media()
584 rtp_exp->saved_addr = rtp_exp->tuple.dst.u3; in nf_nat_sdp_media()
585 rtp_exp->tuple.dst.u3 = *rtp_addr; in nf_nat_sdp_media()
586 rtp_exp->saved_proto.udp.port = rtp_exp->tuple.dst.u.udp.port; in nf_nat_sdp_media()
587 rtp_exp->dir = !dir; in nf_nat_sdp_media()
588 rtp_exp->expectfn = nf_nat_sip_expected; in nf_nat_sdp_media()
597 for (port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nf_nat_sdp_media()
601 rtp_exp->tuple.dst.u.udp.port = htons(port); in nf_nat_sdp_media()
602 ret = nf_ct_expect_related(rtp_exp, in nf_nat_sdp_media()
[all …]
H A Dnf_conntrack_h323_main.c218 struct nf_conntrack_expect *rtp_exp; in expect_rtp_rtcp() local
232 if ((rtp_exp = nf_ct_expect_alloc(ct)) == NULL) in expect_rtp_rtcp()
234 nf_ct_expect_init(rtp_exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in expect_rtp_rtcp()
241 nf_ct_expect_put(rtp_exp); in expect_rtp_rtcp()
258 taddr, port, rtp_port, rtp_exp, rtcp_exp); in expect_rtp_rtcp()
260 if (nf_ct_expect_related(rtp_exp, 0) == 0) { in expect_rtp_rtcp()
263 nf_ct_dump_tuple(&rtp_exp->tuple); in expect_rtp_rtcp()
267 nf_ct_unexpect_related(rtp_exp); in expect_rtp_rtcp()
274 nf_ct_expect_put(rtp_exp); in expect_rtp_rtcp()
H A Dnf_conntrack_sip.c932 struct nf_conntrack_expect *exp, *rtp_exp, *rtcp_exp; in set_expected_rtp_rtcp() local
1037 rtp_exp = nf_ct_expect_alloc(ct); in set_expected_rtp_rtcp()
1038 if (rtp_exp == NULL) in set_expected_rtp_rtcp()
1040 nf_ct_expect_init(rtp_exp, class, nf_ct_l3num(ct), saddr, daddr, in set_expected_rtp_rtcp()
1052 datalen, rtp_exp, rtcp_exp, in set_expected_rtp_rtcp()
1061 int errp = nf_ct_expect_related(rtp_exp, in set_expected_rtp_rtcp()
1071 nf_ct_unexpect_related(rtp_exp); in set_expected_rtp_rtcp()
1076 nf_ct_expect_put(rtp_exp); in set_expected_rtp_rtcp()
/linux/include/linux/netfilter/
H A Dnf_conntrack_h323.h64 struct nf_conntrack_expect *rtp_exp,
H A Dnf_conntrack_sip.h161 struct nf_conntrack_expect *rtp_exp,