Home
last modified time | relevance | path

Searched +full:u3 +full:- +full:port (Results 1 – 25 of 109) sorted by relevance

12345

/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnf_nat_sip.c1 // SPDX-License-Identifier: GPL-2.0-only
46 th = (struct tcphdr *)(skb->data + protoff); in mangle_packet()
47 baseoff = protoff + th->doff * 4; in mangle_packet()
48 matchoff += dataoff - baseoff; in mangle_packet()
56 matchoff += dataoff - baseoff; in mangle_packet()
65 *dptr = skb->data + dataoff; in mangle_packet()
66 *datalen += buflen - matchlen; in mangle_packet()
74 return sprintf(buffer, "%pI4", &addr->ip); in sip_sprintf_addr()
77 return sprintf(buffer, "[%pI6c]", &addr->ip6); in sip_sprintf_addr()
79 return sprintf(buffer, "%pI6c", &addr->ip6); in sip_sprintf_addr()
[all …]
H A Dnf_conntrack_h323_main.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2006-2012 Patrick McHardy <kaber@trash.net>
56 union nf_inet_addr *addr, __be16 port)
61 union nf_inet_addr *addr, __be16 port)
79 __be16 port, __be16 rtp_port,
87 H245_TransportAddress *taddr, __be16 port,
94 TransportAddress *taddr, __be16 port,
101 TransportAddress *taddr, __be16 port,
108 __be16 port, struct nf_conntrack_expect *exp)
138 tcpdataoff = protoff + th->doff * 4; in get_tpkt_data()
[all …]
H A Dnf_conntrack_ftp.c1 // SPDX-License-Identifier: GPL-2.0-only
4 /* (C) 1999-2001 Paul `Rusty' Russell
5 * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org>
6 * (C) 2003,2004 USAGI/WIDE Project <http://www.linux-ipv6.org>
7 * (C) 2006-2012 Patrick McHardy <kaber@trash.net>
37 /* This is slow, but it's simple. --RR */
78 .pattern = "PORT",
79 .plen = sizeof("PORT") - 1,
87 .plen = sizeof("EPRT") - 1,
97 .plen = sizeof("227 ") - 1,
[all …]
H A Dnf_nat_proto.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* (C) 1999-2001 Paul `Rusty' Russell
3 * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org>
47 /* Get rid of src port */ in __udp_manip_pkt()
48 newport = tuple->src.u.udp.port; in __udp_manip_pkt()
49 portptr = &hdr->source; in __udp_manip_pkt()
51 /* Get rid of dst port */ in __udp_manip_pkt()
52 newport = tuple->dst.u.udp.port; in __udp_manip_pkt()
53 portptr = &hdr->dest; in __udp_manip_pkt()
56 nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in __udp_manip_pkt()
[all …]
H A Dnf_conntrack_proto.c1 // SPDX-License-Identifier: GPL-2.0
59 if (net->ct.sysctl_log_invalid != protonum && in nf_l4proto_log_invalid()
60 net->ct.sysctl_log_invalid != IPPROTO_RAW) in nf_l4proto_log_invalid()
83 if (likely(net->ct.sysctl_log_invalid == 0)) in nf_ct_l4proto_log_invalid()
135 helper = rcu_dereference(help->helper); in nf_confirm()
137 ret = helper->help(skb, in nf_confirm()
145 if (test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) && in nf_confirm()
194 skb->_nfct = 0; in ipv4_conntrack_local()
248 tuple.src.u3.ip = inet->inet_rcv_saddr; in getorigdst()
249 tuple.src.u.tcp.port = inet->inet_sport; in getorigdst()
[all …]
H A Dnf_conntrack_irc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * (C) 2000-2002 by Harald Welte <laforge@gnumonks.org>
5 * (C) 2006-2012 Patrick McHardy <kaber@trash.net>
29 /* This is slow, but it's simple. --RR */
50 MODULE_PARM_DESC(ports, "port numbers of IRC servers");
63 /* tries to get the ip_addr and port out of a dcc command
64 * return value: -1 on failure, 0 on success
68 * port returns parsed port of dcc command
73 u_int16_t *port, char **ad_beg_p, char **ad_end_p) in parse_dcc() argument
79 if (data > data_end - 12) in parse_dcc()
[all …]
H A Dnf_nat_core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (C) 1999-2001 Paul `Rusty' Russell
4 * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org>
61 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session()
62 struct flowi4 *fl4 = &fl->u.ip4; in nf_nat_ipv4_decode_session()
64 if (ct->status & statusbit) { in nf_nat_ipv4_decode_session()
65 fl4->daddr = t->dst.u3.ip; in nf_nat_ipv4_decode_session()
66 if (t->dst.protonum == IPPROTO_TCP || in nf_nat_ipv4_decode_session()
67 t->dst.protonum == IPPROTO_UDP || in nf_nat_ipv4_decode_session()
68 t->dst.protonum == IPPROTO_UDPLITE || in nf_nat_ipv4_decode_session()
[all …]
H A Dnf_flow_table_core.c1 // SPDX-License-Identifier: GPL-2.0-only
24 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; in flow_offload_fill_dir()
25 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple; in flow_offload_fill_dir()
27 ft->dir = dir; in flow_offload_fill_dir()
29 switch (ctt->src.l3num) { in flow_offload_fill_dir()
31 ft->src_v4 = ctt->src.u3.in; in flow_offload_fill_dir()
32 ft->dst_v4 = ctt->dst.u3.in; in flow_offload_fill_dir()
35 ft->src_v6 = ctt->src.u3.in6; in flow_offload_fill_dir()
36 ft->dst_v6 = ctt->dst.u3.in6; in flow_offload_fill_dir()
40 ft->l3proto = ctt->src.l3num; in flow_offload_fill_dir()
[all …]
H A Dnf_conntrack_sip.c1 // SPDX-License-Identifier: GPL-2.0-only
42 MODULE_PARM_DESC(ports, "port numbers of SIP servers");
94 c == '{' || c == '}' || c == '~' || (c >= '-' && c <= '/') || in iswordc()
128 /* get media type + port length */
156 ret = in4_pton(cp, limit - cp, (u8 *)&addr->ip, -1, &end); in sip_parse_addr()
166 ret = in6_pton(cp, limit - cp, (u8 *)&addr->ip6, -1, &end); in sip_parse_addr()
196 /* Port number */ in epaddr_len()
201 return dptr - aux; in epaddr_len()
233 * Request-Line = Method SP Request-URI SP SIP-Version CRLF
235 * and return the offset and length of the address contained in the Request-URI.
[all …]
H A Dxt_conntrack.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * xt_conntrack - Netfilter module to match connection tracking
7 * (C) 2006-2012 Patrick McHardy <kaber@trash.net>
8 * Copyright © CC Computer Consultants GmbH, 2007 - 2008
31 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in conntrack_addrcmp()
33 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp()
34 &uaddr->in6) == 0; in conntrack_addrcmp()
44 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc()
45 &info->origsrc_addr, &info->origsrc_mask, family); in conntrack_mt_origsrc()
53 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst()
[all …]
H A Dnf_conntrack_amanda.c1 // SPDX-License-Identifier: GPL-2.0-or-later
99 __be16 port; in amanda_help() local
113 if (dataoff >= skb->len) { in amanda_help()
114 net_err_ratelimited("amanda_help: skblen = %u\n", skb->len); in amanda_help()
118 start = skb_find_text(skb, dataoff, skb->len, in amanda_help()
124 stop = skb_find_text(skb, start, skb->len, in amanda_help()
136 len = min_t(unsigned int, sizeof(pbuf) - 1, stop - off); in amanda_help()
141 port = htons(simple_strtoul(pbuf, &tmp, 10)); in amanda_help()
142 len = tmp - pbuf; in amanda_help()
143 if (port == 0 || len > 5) in amanda_help()
[all …]
H A Dnf_conntrack_tftp.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* (C) 2001-2002 Magnus Boden <mb@ozaba.mine.nu>
3 * (C) 2006-2012 Patrick McHardy <kaber@trash.net>
33 MODULE_PARM_DESC(ports, "Port numbers of TFTP servers");
57 switch (ntohs(tfh->opcode)) { in tftp_help()
61 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help()
62 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_help()
69 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_help()
72 &tuple->src.u3, &tuple->dst.u3, in tftp_help()
73 IPPROTO_UDP, NULL, &tuple->dst.u.udp.port); in tftp_help()
[all …]
H A Dnf_conntrack_proto_gre.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * suited for NAT, as it has no protocol-specific part as port numbers.
19 * (C) 2000-2005 by Harald Welte <laforge@gnumonks.org>
23 * (C) 2006-2012 Patrick McHardy <kaber@trash.net>
55 return &net->ct.nf_ct_proto.gre; in gre_pernet()
64 list_for_each_entry_safe(km, tmp, &net_gre->keymap_list, list) { in nf_ct_gre_keymap_flush()
65 list_del_rcu(&km->list); in nf_ct_gre_keymap_flush()
74 return km->tuple.src.l3num == t->src.l3num && in gre_key_cmpfn()
75 !memcmp(&km->tuple.src.u3, &t->src.u3, sizeof(t->src.u3)) && in gre_key_cmpfn()
76 !memcmp(&km->tuple.dst.u3, &t->dst.u3, sizeof(t->dst.u3)) && in gre_key_cmpfn()
[all …]
H A Dnf_conntrack_core.c1 // SPDX-License-Identifier: GPL-2.0-only
6 /* (C) 1999-2001 Paul `Rusty' Russell
7 * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org>
8 * (C) 2003,2004 USAGI/WIDE Project <http://www.linux-ipv6.org>
9 * (C) 2005-2012 Patrick McHardy <kaber@trash.net>
198 n = (sizeof(tuple->src) + sizeof(tuple->dst.u3)) / sizeof(u32); in hash_conntrack_raw()
200 (((__force __u16)tuple->dst.u.all << 16) | in hash_conntrack_raw()
201 tuple->dst.protonum)); in hash_conntrack_raw()
235 tuple->src.u.udp.port = inet_hdr->sport; in nf_ct_get_tuple_ports()
236 tuple->dst.u.udp.port = inet_hdr->dport; in nf_ct_get_tuple_ports()
[all …]
/OK3568_Linux_fs/kernel/net/ipv4/netfilter/
H A Dnf_nat_h323.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2006-2012 Patrick McHardy <kaber@trash.net>
25 unsigned int addroff, __be32 ip, __be16 port) in set_addr() argument
31 __be16 port; in set_addr() member
37 buf.port = port; in set_addr()
40 if (ip_hdr(skb)->protocol == IPPROTO_TCP) { in set_addr()
45 return -1; in set_addr()
52 return -1; in set_addr()
53 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr()
59 return -1; in set_addr()
[all …]
H A Dnf_nat_pptp.c1 // SPDX-License-Identifier: GPL-2.0-only
13 * (C) 2000-2005 by Harald Welte <laforge@gnumonks.org>
17 * (C) 2006-2012 Patrick McHardy <kaber@trash.net>
19 * TODO: - NAT to a unique tuple, not to TCP source port
47 const struct nf_conn *master = ct->master; in pptp_nat_expected()
59 nat_pptp_info = &nat->help.nat_pptp_info; in pptp_nat_expected()
63 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected()
64 pr_debug("we are PNS->PAC\n"); in pptp_nat_expected()
65 /* therefore, build tuple for PAC->PNS */ in pptp_nat_expected()
67 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
[all …]
/OK3568_Linux_fs/kernel/include/net/netfilter/
H A Dnf_conntrack_tuple.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * - generalize L3 protocol dependent part.
23 "non-manipulatable" lines, for the benefit of the NAT code.
26 #define NF_CT_TUPLE_L3SIZE ARRAY_SIZE(((union nf_inet_addr *)NULL)->all)
30 union nf_inet_addr u3; member
42 union nf_inet_addr u3; member
48 __be16 port; member
51 __be16 port; member
57 __be16 port; member
60 __be16 port; member
[all …]
/OK3568_Linux_fs/kernel/net/netfilter/ipvs/
H A Dip_vs_nfct.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Portions Copyright (C) 2001-2002
8 * Portions Copyright (C) 2003-2010
18 * - provide conntrack confirmation for new and related connections, by
20 * - support for all forwarding methods, not only NAT
21 * - FTP support (NAT), ability to support other NAT apps with expectations
22 * - to correctly create expectations for related NAT connections the proper
26 * - alter reply for NAT when forwarding packet in original direction:
29 * - if iptables_nat is not loaded the Passive FTP will not work (the
30 * PASV response can not be NAT-ed) but Active FTP should work
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/
H A Dphy-mtk-tphy.txt1 MediaTek T-PHY binding
2 --------------------------
4 T-phy controller supports physical layer functionality for a number of
8 - compatible : should be one of
9 "mediatek,generic-tphy-v1"
10 "mediatek,generic-tphy-v2"
11 "mediatek,mt2701-u3phy" (deprecated)
12 "mediatek,mt2712-u3phy" (deprecated)
13 "mediatek,mt8173-u3phy";
14 make use of "mediatek,generic-tphy-v1" on mt2701 instead and
[all …]
H A Dphy-rockchip-usbdp.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Frank Wang <frank.wang@rock-chips.com>
11 - Zhang Yubing <yubing.zhang@rock-chips.com>
16 - rockchip,rk3588-usbdp-phy
23 - description: phy ref clock.
24 - description: phy pcs immortal clock.
25 - description: phy peripheral clock.
[all …]
H A Dphy-rockchip-naneng-combphy.txt4 - compatible : should be one of the listed compatibles:
5 * "rockchip,rk3568-naneng-combphy"
6 - reg : the address offset of grf for combo-phy configuration.
7 - rockchip,pipe-grf : phandle to the syscon managing the "pipe general register files"
8 - rockchip,pipe-phy-grf: phandle to the syscon managing the "phy general register files"
9 - clocks : phandle + phy specifier pair, for the input clocks of phy.
10 - clock-names : input clocks name of phy.
11 - resets : phandle + reset specifier pairs.
12 - reset-names : reset names of phy.
13 - #clock-cells : should be 1.
[all …]
H A Dphy-rockchip-inno-usb3.txt4 - compatible: should be one of the listed compatibles:
5 * "rockchip,rk3328-u3phy"
6 * "rockchip,rk322xh-u3phy"
7 - reg : the base address of USB 3.0 PHY.
8 - rockchip,u3phygrf : phandle to the syscon managing the
10 - interrupts : specify an interrupt for each entry in interrupt-names.
11 - interrupt-names : a list which shall be the following entries:
13 - clocks : phandle + clock specifier for the phy clocks.
14 - clock-names :
15 * "u3phy-otg" for USB 3.0 PHY utmi
[all …]
/OK3568_Linux_fs/kernel/net/sched/
H A Dact_ct.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
2 /* -
62 int i = flow_action->num_entries++; in tcf_ct_flow_table_flow_action_get_next()
64 return &flow_action->entries[i]; in tcf_ct_flow_table_flow_action_get_next()
76 entry->id = FLOW_ACTION_MANGLE; in tcf_ct_add_mangle_action()
77 entry->mangle.htype = htype; in tcf_ct_add_mangle_action()
78 entry->mangle.mask = ~mask; in tcf_ct_add_mangle_action()
79 entry->mangle.offset = offset; in tcf_ct_add_mangle_action()
80 entry->mangle.val = val; in tcf_ct_add_mangle_action()
84 * (target) is different then the current dir tuple - meaning nat for ports
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/mediatek/
H A Dphy-mtk-xsphy.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <dt-bindings/phy/phy.h>
25 /* u3 phy shared banks */
29 /* u3 phy banks */
109 void __iomem *glb_base; /* only shared u3 sif */
119 void __iomem *pbase = inst->port_base; in u2_phy_slew_rate_calibrate()
125 if (inst->eye_src) in u2_phy_slew_rate_calibrate()
168 tmp = xsphy->src_ref_clk * xsphy->src_coef; in u2_phy_slew_rate_calibrate()
175 dev_dbg(xsphy->dev, "phy.%d, fm_out:%d, calib:%d (clk:%d, coef:%d)\n", in u2_phy_slew_rate_calibrate()
176 inst->index, fm_out, calib_val, in u2_phy_slew_rate_calibrate()
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-inno-usb3.c104 * struct rockchip_u3phy_apbcfg: usb3-phy apb configuration.
105 * @u2_pre_emp: usb2-phy pre-emphasis tuning.
106 * @u2_pre_emp_sth: usb2-phy pre-emphasis strength tuning.
107 * @u2_odt_tuning: usb2-phy odt 45ohm tuning.
157 unsigned int tmp = desired ? reg->dvalue : reg->rvalue; in param_write()
160 mask = GENMASK(reg->bitend, reg->bitstart); in param_write()
161 val = (tmp << reg->bitstart) | (mask << BIT_WRITEABLE_SHIFT); in param_write()
162 ret = regmap_write(base, reg->offset, val); in param_write()
173 unsigned int mask = GENMASK(reg->bitend, reg->bitstart); in param_exped()
175 ret = regmap_read(base, reg->offset, &orig); in param_exped()
[all …]

12345