Home
last modified time | relevance | path

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

/linux-6.1.9/net/ipv4/netfilter/
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-6.1.9/net/netfilter/
Dnf_nat_sip.c562 struct nf_conntrack_expect *rtp_exp, in nf_nat_sdp_media() argument
576 *rtp_addr = rtp_exp->tuple.dst.u3; in nf_nat_sdp_media()
580 rtp_exp->saved_addr = rtp_exp->tuple.dst.u3; in nf_nat_sdp_media()
581 rtp_exp->tuple.dst.u3 = *rtp_addr; in nf_nat_sdp_media()
582 rtp_exp->saved_proto.udp.port = rtp_exp->tuple.dst.u.udp.port; in nf_nat_sdp_media()
583 rtp_exp->dir = !dir; in nf_nat_sdp_media()
584 rtp_exp->expectfn = nf_nat_sip_expected; in nf_nat_sdp_media()
593 for (port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nf_nat_sdp_media()
597 rtp_exp->tuple.dst.u.udp.port = htons(port); in nf_nat_sdp_media()
598 ret = nf_ct_expect_related(rtp_exp, in nf_nat_sdp_media()
[all …]
Dnf_conntrack_h323_main.c217 struct nf_conntrack_expect *rtp_exp; in expect_rtp_rtcp() local
231 if ((rtp_exp = nf_ct_expect_alloc(ct)) == NULL) in expect_rtp_rtcp()
233 nf_ct_expect_init(rtp_exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in expect_rtp_rtcp()
240 nf_ct_expect_put(rtp_exp); in expect_rtp_rtcp()
257 taddr, port, rtp_port, rtp_exp, rtcp_exp); in expect_rtp_rtcp()
259 if (nf_ct_expect_related(rtp_exp, 0) == 0) { in expect_rtp_rtcp()
262 nf_ct_dump_tuple(&rtp_exp->tuple); in expect_rtp_rtcp()
266 nf_ct_unexpect_related(rtp_exp); in expect_rtp_rtcp()
273 nf_ct_expect_put(rtp_exp); in expect_rtp_rtcp()
Dnf_conntrack_sip.c853 struct nf_conntrack_expect *exp, *rtp_exp, *rtcp_exp; in set_expected_rtp_rtcp() local
959 rtp_exp = nf_ct_expect_alloc(ct); in set_expected_rtp_rtcp()
960 if (rtp_exp == NULL) in set_expected_rtp_rtcp()
962 nf_ct_expect_init(rtp_exp, class, nf_ct_l3num(ct), saddr, daddr, in set_expected_rtp_rtcp()
974 datalen, rtp_exp, rtcp_exp, in set_expected_rtp_rtcp()
983 int errp = nf_ct_expect_related(rtp_exp, in set_expected_rtp_rtcp()
993 nf_ct_unexpect_related(rtp_exp); in set_expected_rtp_rtcp()
998 nf_ct_expect_put(rtp_exp); in set_expected_rtp_rtcp()
/linux-6.1.9/include/linux/netfilter/
Dnf_conntrack_h323.h68 struct nf_conntrack_expect *rtp_exp,
Dnf_conntrack_sip.h161 struct nf_conntrack_expect *rtp_exp,