Home
last modified time | relevance | path

Searched refs:sin_port (Results 1 – 25 of 176) sorted by relevance

12345678

/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_reverse_clash.c38 uint16_t got = ntohs(sin->sin_port); in die_port()
75 sa1.sin_port = htons(PORT); in main()
76 sa2.sin_port = htons(PORT + 1); in main()
107 if (peer.sin_port != htons(PORT)) in main()
116 if (peer.sin_port != htons((PORT + 1))) in main()
H A Dudpclash.c104 si_remote->sin_port != si_repl.sin_port) { in run_test()
111 a, ntohs(si_remote->sin_port), b, ntohs(si_repl.sin_port)); in run_test()
139 si_remote.sin_port = htons(atoi(argv[2])); in main()
H A Dconnect_close.c76 .sin_port = htons(opts.port), in accept_loop()
93 .sin_port = htons(opts.port), in connect_loop()
H A Dsctp_collision.c31 saddr.sin_port = htons(atoi(argv[3])); in main()
47 daddr.sin_port = htons(atoi(argv[5])); in main()
/linux/tools/testing/selftests/net/
H A Dfin_ack_lat.c56 addr.sin_port = htons(port); in client()
78 ntohs(laddr.sin_port), lat, in client()
132 address.sin_port = 0; in main()
143 fprintf(stderr, "server port: %d\n", ntohs(laddr.sin_port)); in main()
146 client(ntohs(laddr.sin_port)); in main()
H A Dreuseport_dualstack.c43 addr4->sin_port = htons(PORT); in build_rcv_fd()
80 saddr.sin_port = 0; in send_from_v4()
84 daddr.sin_port = htons(PORT); in send_from_v4()
H A Dpsock_lib.h86 saddr.sin_port = htons(port); in pair_udp_open()
91 daddr.sin_port = htons(port + 1); in pair_udp_open()
H A Dreuseport_bpf_cpu.c47 addr4->sin_port = htons(PORT); in build_rcv_group()
107 saddr4->sin_port = 0; in send_from_cpu()
112 daddr4->sin_port = htons(PORT); in send_from_cpu()
H A Dreuseport_addr_any.c46 addr4.sin_port = htons(PORT); in build_rcv_fd()
100 saddr4.sin_port = 0;
105 daddr4.sin_port = htons(PORT); in connect_and_send()
H A Dreuseport_bpf_numa.c43 addr4->sin_port = htons(PORT); in build_rcv_group()
119 saddr4->sin_port = 0; in send_from_node()
124 daddr4->sin_port = htons(PORT); in send_from_node()
H A Dtcp_fastopen_backup_key.c102 addr4.sin_port = htons(PORT); in build_rcv_fd()
155 saddr4.sin_port = 0; in connect_and_send()
160 daddr4.sin_port = htons(PORT); in connect_and_send()
/linux/include/trace/events/
H A Dnet_probe_common.h11 v4->sin_port = inet->inet_sport; \
15 v4->sin_port = inet->inet_dport; \
78 v4->sin_port = protoh->source; \
82 v4->sin_port = protoh->dest; \
/linux/tools/testing/selftests/net/tcp_ao/
H A Dseq-ext.c112 saddr.sin_port = htons(ntohs(saddr.sin_port) + 1); in server_fn()
210 client_new_port = ntohs(saddr.sin_port) + 1; in client_fn()
211 saddr.sin_port = htons(ntohs(saddr.sin_port) + 1); in client_fn()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dprobe_user.c54 in->sin_port = htons(5555); in serial_test_probe_user()
73 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in serial_test_probe_user()
81 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in serial_test_probe_user()
H A Dconnect_force_port.c20 port = ((struct sockaddr_in *)&addr)->sin_port; in verify_ports()
36 port = ((struct sockaddr_in *)&addr)->sin_port; in verify_ports()
/linux/net/sctp/
H A Dprotocol.c164 laddr.v4.sin_port = htons(bp->port); in sctp_copy_local_addr_list()
225 sa->sin_port = sh->source; in sctp_v4_from_skb()
228 sa->sin_port = sh->dest; in sctp_v4_from_skb()
238 addr->v4.sin_port = 0; in sctp_v4_from_sk()
264 addr->v4.sin_port = port; in sctp_v4_from_addr_param()
291 saddr->v4.sin_port = port; in sctp_v4_dst_saddr()
302 if (addr1->v4.sin_port != addr2->v4.sin_port) in sctp_v4_cmp_addr()
315 addr->v4.sin_port = port; in sctp_v4_inaddr_any()
438 fl4->fl4_dport = daddr->v4.sin_port; in sctp_v4_get_dst()
449 fl4->fl4_sport = saddr->v4.sin_port; in sctp_v4_get_dst()
[all …]
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_iw_cm.c52 laddr->sin_port = htons(cm_info->local_port); in qedr_fill_sockaddr4()
53 raddr->sin_port = htons(cm_info->remote_port); in qedr_fill_sockaddr4()
553 ntohs(((struct sockaddr_in *)&cm_id->remote_addr)->sin_port), in qedr_iw_connect()
554 ntohs(raddr->sin_port)); in qedr_iw_connect()
560 if (!laddr->sin_port || !raddr->sin_port) in qedr_iw_connect()
593 cm_info->remote_port = ntohs(raddr->sin_port); in qedr_iw_connect()
594 cm_info->local_port = ntohs(laddr->sin_port); in qedr_iw_connect()
694 iparams.port = ntohs(laddr->sin_port); in qedr_iw_create_listen()
/linux/include/linux/sunrpc/
H A Daddr.h27 return ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_get_port()
39 ((struct sockaddr_in *)sap)->sin_port = htons(port); in rpc_set_port()
/linux/net/ipv4/
H A Ddatagram.c51 usin->sin_port, sk); in __ip4_datagram_connect()
67 inet->inet_dport = usin->sin_port; in __ip4_datagram_connect()
/linux/drivers/isdn/mISDN/
H A Dl1oip_core.c288 if (!hc->sin_remote.sin_addr.s_addr || !hc->sin_remote.sin_port) { in l1oip_socket_send()
615 || (hc->sin_remote.sin_port != sin->sin_port)) { in l1oip_socket_parse()
621 ntohs(hc->sin_remote.sin_port), in l1oip_socket_parse()
622 ntohs(sin->sin_port)); in l1oip_socket_parse()
624 hc->sin_remote.sin_port = sin->sin_port; in l1oip_socket_parse()
671 hc->sin_local.sin_port = htons((unsigned short)hc->localport); in l1oip_socket_thread()
676 hc->sin_remote.sin_port = htons((unsigned short)hc->remoteport); in l1oip_socket_thread()
/linux/drivers/infiniband/core/
H A Diwpm_util.c419 && a4_sockaddr->sin_port == b4_sockaddr->sin_port) in iwpm_compare_sockaddr()
499 ntohs(sockaddr_v4->sin_port), in iwpm_print_sockaddr()
500 ntohs(sockaddr_v4->sin_port)); in iwpm_print_sockaddr()
524 u32 hash = jhash_2words(ipv4_hash, (__force u32) ipv4_sockaddr->sin_port, 0); in iwpm_ipv4_jhash()
/linux/net/rxrpc/
H A Dpeer_object.c46 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
52 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
95 return ((u16 __force)peer->srx.transport.sin.sin_port - in rxrpc_peer_cmp_key()
96 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_peer_cmp_key()
H A Dlocal_object.c75 return ((u16 __force)local->srx.transport.sin.sin_port - in rxrpc_local_cmp_key()
76 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_local_cmp_key()
178 udp_conf.local_udp_port = srx->transport.sin.sin_port; in rxrpc_open_socket()
/linux/net/rds/
H A Dtcp_connect.c153 sin.sin_port = 0; in rds_tcp_conn_path_connect()
174 sin.sin_port = htons(port); in rds_tcp_conn_path_connect()
195 sin.sin_port = htons(RDS_TCP_PORT);
/linux/drivers/net/wireguard/
H A Dsocket.c26 .fl4_dport = endpoint->addr4.sin_port, in send4()
241 endpoint->addr4.sin_port = udp_hdr(skb)->source; in wg_socket_endpoint_from_skb()
261 a->addr4.sin_port == b->addr4.sin_port && in endpoint_eq()

12345678