Home
last modified time | relevance | path

Searched refs:th_dport (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/dports/net/nast/nast-0.2.0/ncurses/
H A Dn_rst.c89 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db()
95 r_del(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),Rst); in rst_connection_db()
98 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db()
101 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db()
104 r_del(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),Fin); in rst_connection_db()
106 r_del(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),Rst); in rst_connection_db()
122 …r_add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db()
125 …r_add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db()
128 r_del(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),Rst); in rst_connection_db()
137 r_del(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),Fin); in rst_connection_db()
[all …]
H A Dn_conn.c102 add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport)); in connection()
107 del(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),Rst); in connection()
114 del(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),Fin); in connection()
116 del(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),Rst); in connection()
129 add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport)); in connection()
134 del(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),Rst); in connection()
141 del(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),Fin); in connection()
143 del(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),Rst); in connection()
/dports/net/ndisc6/ndisc6-1.0.5/src/
H A Dtrace-tcp.c61 packet->th.th_dport = port; in send_syn_probe()
79 || (pth->th_dport != sport) in parse_syn_resp()
105 || (pth->th_dport != port)) in parse_syn_error()
139 packet->th.th_dport = port; in send_ack_probe()
157 || (pth->th_dport != sport) in parse_ack_resp()
184 || (pth->th_dport != port)) in parse_ack_error()
/dports/net-mgmt/bpft/bpft/trafd/
H A Dtraffic.c213 u_short th_sport, u_short th_dport, int proto in calcPortAndServer() argument
217 th_dport = ntohs(th_dport); in calcPortAndServer()
218 if( th_sport < th_dport ) { in calcPortAndServer()
222 else if( th_sport > th_dport ) { in calcPortAndServer()
223 *p_port = th_dport; in calcPortAndServer()
226 else if( th_sport == th_dport ) { in calcPortAndServer()
236 else if( s_port_big[th_dport & (IPPORT_RESERVED-1)] & proto ) { in calcPortAndServer()
237 *p_port = th_dport; in calcPortAndServer()
240 if (th_sport == th_dport) *who_srv = 3; in calcPortAndServer()
266 tp->th_sport,tp->th_dport,IPPROTO_TCP,
[all …]
/dports/net/wireshark/wireshark-3.6.1/ui/
H A Dtap-tcp-stream.c52 tg->src_port = tcphdr->th_dport; in tapall_tcpip_packet()
60 tcphdr->th_sport, tcphdr->th_dport, in tapall_tcpip_packet()
78 segment->th_dport = tcphdr->th_dport; in tapall_tcpip_packet()
178 tmp->th_sport, tmp->th_dport, in get_num_dsegs()
196 tmp->th_sport, tmp->th_dport, in get_num_acks()
224 stored->th_sport, stored->th_dport, in tap_tcpip_packet()
226 header->th_sport, stored->th_dport, in tap_tcpip_packet()
/dports/net/wireshark-lite/wireshark-3.6.1/ui/
H A Dtap-tcp-stream.c52 tg->src_port = tcphdr->th_dport; in tapall_tcpip_packet()
60 tcphdr->th_sport, tcphdr->th_dport, in tapall_tcpip_packet()
78 segment->th_dport = tcphdr->th_dport; in tapall_tcpip_packet()
178 tmp->th_sport, tmp->th_dport, in get_num_dsegs()
196 tmp->th_sport, tmp->th_dport, in get_num_acks()
224 stored->th_sport, stored->th_dport, in tap_tcpip_packet()
226 header->th_sport, stored->th_dport, in tap_tcpip_packet()
/dports/net/tshark/wireshark-3.6.1/ui/
H A Dtap-tcp-stream.c52 tg->src_port = tcphdr->th_dport; in tapall_tcpip_packet()
60 tcphdr->th_sport, tcphdr->th_dport, in tapall_tcpip_packet()
78 segment->th_dport = tcphdr->th_dport; in tapall_tcpip_packet()
178 tmp->th_sport, tmp->th_dport, in get_num_dsegs()
196 tmp->th_sport, tmp->th_dport, in get_num_acks()
224 stored->th_sport, stored->th_dport, in tap_tcpip_packet()
226 header->th_sport, stored->th_dport, in tap_tcpip_packet()
/dports/net/tshark-lite/wireshark-3.6.1/ui/
H A Dtap-tcp-stream.c52 tg->src_port = tcphdr->th_dport; in tapall_tcpip_packet()
60 tcphdr->th_sport, tcphdr->th_dport, in tapall_tcpip_packet()
78 segment->th_dport = tcphdr->th_dport; in tapall_tcpip_packet()
178 tmp->th_sport, tmp->th_dport, in get_num_dsegs()
196 tmp->th_sport, tmp->th_dport, in get_num_acks()
224 stored->th_sport, stored->th_dport, in tap_tcpip_packet()
226 header->th_sport, stored->th_dport, in tap_tcpip_packet()
/dports/net/nast/nast-0.2.0/
H A Dbcount.c270 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
273 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
276 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
279 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
282 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
285 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
288 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
291 … conn_len(ip->ip_src.s_addr,ip->ip_dst.s_addr,htons(tcph->th_sport),htons(tcph->th_dport),tot); in n_bytecounting()
H A Dtcp.c44 service = getservbyport(htons(ntohs(tcp->th_dport)), "tcp"); in handle_TCP()
46 …n_print("princ",line_s,33,lg,"%s:%d(%s)\n",inet_ntoa(ip->ip_dst),ntohs(tcp->th_dport),(service) ? … in handle_TCP()
121 service = getservbyport(htons(ntohs(tcp->th_dport)), "tcp"); in handle_TCP()
122 …fprintf(ldd, "%s:%d(%s) TCP\n",inet_ntoa(ip->ip_dst),ntohs(tcp->th_dport),(service) ? service->s_n… in handle_TCP()
H A Drst.c84 if ((tcp->th_sport != htons(sport)) || (tcp->th_dport != htons(dport))) in rst()
93 dport = htons (tcp->th_dport); in rst()
98 if ((tcp->th_dport != htons(dport))) in rst()
H A Dstream.c68 … && ip->ip_dst.s_addr == ip_dst && tcp->th_sport == htons(sport) && tcp->th_dport == htons(dport) ) in stream()
75 …t && ip->ip_dst.s_addr == ip_src && tcp->th_sport == htons(dport) && tcp->th_dport == htons(sport)) in stream()
/dports/ftp/ftpsesame/ftpsesame-0.95/
H A Dstate.c96 s->d_port = tcp->th_dport; in state_new()
118 if (tcp->th_sport > tcp->th_dport) in state_find()
129 s.d_port = tcp->th_dport; in state_find()
133 s.s_port = tcp->th_dport; in state_find()
/dports/net/tcpillust/tcpillust/
H A Dbinread.c197 ntohs(tcp->th_dport) != port2) && in dumpip()
199 ntohs(tcp->th_dport) != port1)){ in dumpip()
227 port2 = ntohs(tcp->th_dport); in dumpip()
259 tpacket[pktcount -1].dst_port = ntohs(tcp->th_dport); in dumpip()
338 ntohs(tcp->th_dport) != port2) && in dumpip6()
340 ntohs(tcp->th_dport) != port1)){ in dumpip6()
368 port2 = ntohs(tcp->th_dport); in dumpip6()
402 tpacket[pktcount -1].dst_port = ntohs(tcp->th_dport); in dumpip6()
/dports/security/snort3/snort3-3.1.19.0/src/protocols/
H A Dtcp.h75 uint16_t th_dport; /* destination port */ member
98 { return ntohs(th_dport); } in dst_port()
147 { return th_dport; } in raw_dst_port()
/dports/net/icmpinfo/icmpinfo-1.11/
H A Dprint.c126 ntohs(tp->th_sport),ntohs(tp->th_dport),
134 if ((servent=getservbyport(ntohs(tp->th_dport),NULL)))
136 ntohs(tp->th_dport),servent->s_name,
140 ntohs(tp->th_dport),ntohl(tp->th_seq));
/dports/net/packter-agent/PackterAgent-2.5/src/
H A Dpt_tcp.c78 srcip, ntohs(th->th_sport), dstip, ntohs(th->th_dport)); in packter_tcp()
81 packter_mesg(mesg, srcip, dstip, ntohs(th->th_sport),ntohs(th->th_dport), flag, mesgbuf); in packter_tcp()
/dports/security/tcpcrypt/tcpcrypt-0.5/src/
H A Drdr.c209 ntohs(tcp->th_dport)); in ip_tuple()
228 s_in.sin_port = ntohs(tcp->th_dport); in inject()
325 tcp->th_sport = tcp->th_dport; in send_rst()
326 tcp->th_dport = port; in send_rst()
378 tcp->th_dport = htons(REDIRECT_PORT); in check_connect()
495 to.sin_port = tcp->th_dport; in add_connection()
606 && tcp->th_dport == s->from.sin_port) { in handle_syn_ack()
619 && s->to.sin_port == tcp->th_dport in get_sock()
742 inet_ntoa(ip->ip_dst), ntohs(tcp->th_dport), in pcap_in_handler()
/dports/security/fragrouter/fragrouter-1.6/
H A Dtcp_seg.c200 libnet_build_tcp(ntohs(tcph->th_sport), ntohs(tcph->th_dport), in tcp_seg_interleave_syns()
240 libnet_build_tcp(ntohs(tcph->th_sport), ntohs(tcph->th_dport), in tcp_seg_prepend_fakeclose()
257 libnet_build_tcp(ntohs(tcph->th_sport), ntohs(tcph->th_dport), in tcp_seg_prepend_fakeclose()
289 libnet_build_tcp(ntohs(tcph->th_sport), ntohs(tcph->th_dport), in tcp_seg_prepend_connection()
306 libnet_build_tcp(ntohs(tcph->th_sport), ntohs(tcph->th_dport), in tcp_seg_prepend_connection()
349 libnet_build_tcp(ntohs(tcph->th_sport), ntohs(tcph->th_dport), in tcp_seg_prepend_junk()
/dports/net/zmap/zmap-2.1.1/src/probe_modules/
H A Dmodule_tcp_synscan.c78 ntohs(tcph->th_dport), in synscan_print_packet()
99 uint16_t dport = tcp->th_dport; in synscan_validate_packet()
123 fs_add_uint64(fs, "dport", (uint64_t) ntohs(tcp->th_dport)); in synscan_process_packet()
/dports/net-mgmt/tcpreplay/tcpreplay-4.3.4/src/tcpedit/
H A Dportmap.c317 newport = map_port(portmap, tcp_hdr->th_dport); in rewrite_ports()
318 if (newport != tcp_hdr->th_dport) { in rewrite_ports()
319 csum_replace2(&tcp_hdr->th_sum, tcp_hdr->th_dport, newport); in rewrite_ports()
320 tcp_hdr->th_dport = newport; in rewrite_ports()
/dports/net/py-libdnet/libdnet-1.13/test/dnet/
H A Dtcp.c46 tcp->th_dport = rand() & 0xffff; in tcp_main()
62 if (port_aton(value, &tcp->th_dport) < 0) in tcp_main()
/dports/net/libdnet/libdnet-1.13/test/dnet/
H A Dtcp.c46 tcp->th_dport = rand() & 0xffff; in tcp_main()
62 if (port_aton(value, &tcp->th_dport) < 0) in tcp_main()
/dports/net/tcptraceroute/tcptraceroute-tcptraceroute-1.5beta7/
H A Dcapture.c294 if (ntohs(old_tcp_hdr->th_dport) != dst_prt) in capture()
305 record->dnat_dport = old_tcp_hdr->th_dport; in capture()
426 iptos(ip_hdr->ip_dst.s_addr), ntohs(tcp_hdr->th_dport), in capture()
438 || (ntohs(tcp_hdr->th_dport) != record->src_prt)) in capture()
/dports/security/nmap/nmap-7.91/libdnet-stripped/include/dnet/
H A Dtcp.h31 uint16_t th_dport; /* destination port */ member
151 tcp_pack_p->th_dport = htons(dport); \

12345678910>>...15