Searched defs:sport (Results 1 - 20 of 20) sorted by relevance

/net/core/
H A Dsecure_seq.c39 __be16 sport, __be16 dport)
49 (((__force u16)sport << 16) + (__force u16)dport);
106 __be16 sport, __be16 dport)
112 hash[2] = ((__force u16)sport << 16) + (__force u16)dport;
138 __be16 sport, __be16 dport)
145 hash[2] = ((__force u16)sport << 16) + (__force u16)dport;
160 __be16 sport, __be16 dport)
171 (((__force u16)sport << 16) + (__force u16)dport);
38 secure_tcpv6_sequence_number(const __be32 *saddr, const __be32 *daddr, __be16 sport, __be16 dport) argument
105 secure_tcp_sequence_number(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport) argument
137 secure_dccp_sequence_number(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport) argument
159 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr, __be16 sport, __be16 dport) argument
/net/ipv6/
H A Dinet6_hashtables.c71 const __be16 sport,
78 const __portpair ports = INET_COMBINED_PORTS(sport, hnum);
82 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport);
162 const __be16 sport, const struct in6_addr *daddr,
185 saddr, sport);
218 const struct in6_addr *saddr, const __be16 sport,
225 sk = __inet6_lookup(net, hashinfo, saddr, sport, daddr, ntohs(dport), dif);
281 /* Must record num and sport now. Otherwise we will see
68 __inet6_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const u16 hnum, const int dif) argument
160 inet6_lookup_listener(struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const unsigned short hnum, const int dif) argument
217 inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const __be16 dport, const int dif) argument
H A Dsyncookies.c67 __be16 sport, __be16 dport, u32 count, int c)
79 tmp[8] = ((__force u32)sport << 16) + (__force u32)dport;
88 __be16 sport, __be16 dport, __u32 sseq,
91 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) +
93 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data)
98 const struct in6_addr *daddr, __be16 sport,
104 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
111 cookie_hash(saddr, daddr, sport, dport, count - diff, 1))
66 cookie_hash(const struct in6_addr *saddr, const struct in6_addr *daddr, __be16 sport, __be16 dport, u32 count, int c) argument
86 secure_tcp_syn_cookie(const struct in6_addr *saddr, const struct in6_addr *daddr, __be16 sport, __be16 dport, __u32 sseq, __u32 count, __u32 data) argument
97 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, const struct in6_addr *daddr, __be16 sport, __be16 dport, __u32 sseq, __u32 count, __u32 maxdiff) argument
H A Dudp.c127 const struct in6_addr *saddr, __be16 sport,
140 if (inet->inet_dport != sport)
165 const struct in6_addr *saddr, __be16 sport,
180 if (inet->inet_dport != sport)
201 const struct in6_addr *saddr, __be16 sport,
214 score = compute_score2(sk, net, saddr, sport,
222 saddr, sport);
245 else if (unlikely(compute_score2(result, net, saddr, sport,
255 const struct in6_addr *saddr, __be16 sport,
275 result = udp6_lib_lookup2(net, saddr, sport,
125 compute_score(struct sock *sk, struct net *net, unsigned short hnum, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif) argument
164 compute_score2(struct sock *sk, struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, unsigned short hnum, int dif) argument
200 udp6_lib_lookup2(struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, unsigned int hnum, int dif, struct udp_hslot *hslot2, unsigned int slot2) argument
254 __udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif, struct udp_table *udptable) argument
335 __udp6_lib_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport, struct udp_table *udptable) argument
349 udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif) argument
[all...]
/net/ipv4/
H A Dsyncookies.c44 static u32 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, argument
52 tmp[2] = ((__force u32)sport << 16) + (__force u32)dport;
91 static __u32 secure_tcp_syn_cookie(__be32 saddr, __be32 daddr, __be16 sport, argument
98 * HASH(sec1,saddr,sport,daddr,dport,sec1) + sseq + (count * 2^24)
99 * + (HASH(sec2,saddr,sport,daddr,dport,count,sec2) % 2^24).
106 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) +
108 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data)
122 __be16 sport, __be16 dport, __u32 sseq,
128 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
136 cookie_hash(saddr, daddr, sport, dpor
121 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, __be16 sport, __be16 dport, __u32 sseq, __u32 count, __u32 maxdiff) argument
[all...]
H A Dtcp_probe.c58 __be16 sport, dport; member in struct:tcp_log
111 p->sport = inet->inet_sport;
163 &p->saddr, ntohs(p->sport),
H A Desp4.c212 __be16 sport, dport; local
216 sport = encap->encap_sport;
222 uh->source = sport;
H A Dinet_hashtables.c179 const __be32 saddr, __be16 sport,
202 saddr, sport);
235 const __be32 saddr, const __be16 sport,
240 const __portpair ports = INET_COMBINED_PORTS(sport, hnum);
246 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport);
360 /* Must record num and sport now. Otherwise we will see
177 __inet_lookup_listener(struct net *net, struct inet_hashinfo *hashinfo, const __be32 saddr, __be16 sport, const __be32 daddr, const unsigned short hnum, const int dif) argument
233 __inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, const __be32 saddr, const __be16 sport, const __be32 daddr, const u16 hnum, const int dif) argument
H A Dinet_diag.c43 u16 sport; member in struct:inet_diag_entry
413 yes = entry->sport >= op[1].no;
416 yes = entry->sport <= op[1].no;
435 entry->sport : entry->dport)) {
502 entry.sport = inet->inet_num;
660 entry.sport = tw->tw_num;
782 entry.sport = inet->inet_num;
H A Dudp.c338 __be16 sport, __be32 daddr, __be16 dport, int dif)
358 if (inet->inet_dport != sport)
375 __be32 saddr, __be16 sport,
395 if (inet->inet_dport != sport)
411 __be32 saddr, __be16 sport,
424 score = compute_score2(sk, net, saddr, sport,
432 saddr, htons(sport));
452 else if (unlikely(compute_score2(result, net, saddr, sport,
465 __be16 sport, __be32 daddr, __be16 dport,
484 result = udp4_lib_lookup2(net, saddr, sport,
336 compute_score(struct sock *sk, struct net *net, __be32 saddr, unsigned short hnum, __be16 sport, __be32 daddr, __be16 dport, int dif) argument
374 compute_score2(struct sock *sk, struct net *net, __be32 saddr, __be16 sport, __be32 daddr, unsigned int hnum, int dif) argument
410 udp4_lib_lookup2(struct net *net, __be32 saddr, __be16 sport, __be32 daddr, unsigned int hnum, int dif, struct udp_hslot *hslot2, unsigned int slot2) argument
464 __udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, __be32 daddr, __be16 dport, int dif, struct udp_table *udptable) argument
545 __udp4_lib_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport, struct udp_table *udptable) argument
560 udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, __be32 daddr, __be16 dport, int dif) argument
[all...]
/net/rds/
H A Dmessage.c96 void rds_message_populate_header(struct rds_header *hdr, __be16 sport, argument
100 hdr->h_sport = sport;
H A Dsend.c752 struct rds_message *rm, __be16 sport,
793 rds_message_populate_header(&rm->m_inc.i_hdr, sport, dport, 0);
751 rds_send_queue_rm(struct rds_sock *rs, struct rds_connection *conn, struct rds_message *rm, __be16 sport, __be16 dport, int *queued) argument
/net/sctp/
H A Doutput.c117 __u16 sport, __u16 dport)
126 packet->source_port = sport;
115 sctp_packet_init(struct sctp_packet *packet, struct sctp_transport *transport, __u16 sport, __u16 dport) argument
H A Doutqueue.c723 __u16 sport = asoc->base.bind_addr.port; local
837 sctp_packet_init(&singleton, transport, sport, dport);
H A Dsm_statefuns.c5979 __u16 sport; local
5984 sport = ntohs(chunk->sctp_hdr->dest);
6037 packet = sctp_packet_init(&transport->packet, transport, sport, dport);
/net/ipv4/netfilter/
H A Dipt_CLUSTERIP.c235 u_int16_t sport = 0, dport = 0; local
245 sport = ports[0];
258 hashval = jhash_2words(ntohl(iph->saddr), sport,
262 hashval = jhash_3words(ntohl(iph->saddr), sport, dport,
/net/phonet/
H A Dsocket.c491 int pn_sock_get_port(struct sock *sk, unsigned short sport) argument
502 if (!sport) {
515 sport = port_cur;
522 pn_sockaddr_set_port(&try_sa, sport);
534 pn->sobject = pn_object(pn_addr(pn->sobject), sport);
/net/xfrm/
H A Dxfrm_state.c1691 int km_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport) argument
1699 err = km->new_mapping(x, ipaddr, sport);
H A Dxfrm_user.c2968 __be16 sport)
2983 if (build_mapping(skb, x, ipaddr, sport) < 0)
2967 xfrm_send_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport) argument
/net/key/
H A Daf_key.c926 pfkey_sockaddr_fill(&x->sel.saddr, x->sel.sport,
2022 xp->selector.sport,
2214 xp->selector.sport = ((struct sockaddr_in *)(sa+1))->sin_port;
2215 if (xp->selector.sport)
2323 sel.sport = ((struct sockaddr_in *)(sa+1))->sin_port;
2324 if (sel.sport)
2530 sel.sport = ((struct sockaddr_in *)(sa + 1))->sin_port;
2531 if (sel.sport)
3253 static int pfkey_send_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport) argument
3357 n_port->sadb_x_nat_t_port_port = sport;
[all...]

Completed in 1247 milliseconds