Home
last modified time | relevance | path

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

/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_raudio_pxy.c178 tcphdr_t *tcp, tcph, *tcp2 = &tcph; in ipf_p_raudio_in() local
269 bzero((char *)tcp2, sizeof(*tcp2)); in ipf_p_raudio_in()
270 TCP_OFF_A(tcp2, 5); in ipf_p_raudio_in()
272 fi.fin_dp = (char *)tcp2; in ipf_p_raudio_in()
274 fi.fin_dlen = sizeof(*tcp2); in ipf_p_raudio_in()
275 fi.fin_plen = fi.fin_hlen + sizeof(*tcp2); in ipf_p_raudio_in()
276 tcp2->th_win = htons(8192); in ipf_p_raudio_in()
284 tcp2->th_sport = htons(sp); in ipf_p_raudio_in()
285 tcp2->th_dport = htons(dp); in ipf_p_raudio_in()
307 tcp2->th_sport = htons(sp); in ipf_p_raudio_in()
[all …]
H A Dip_rcmd_pxy.c137 tcphdr_t *tcp, tcph, *tcp2 = &tcph; in ipf_p_rcmd_portmsg() local
263 bzero((char *)tcp2, sizeof(*tcp2)); in ipf_p_rcmd_portmsg()
264 tcp2->th_win = htons(8192); in ipf_p_rcmd_portmsg()
265 TCP_OFF_A(tcp2, 5); in ipf_p_rcmd_portmsg()
266 tcp_set_flags(tcp2, TH_SYN); in ipf_p_rcmd_portmsg()
268 fi.fin_dp = (char *)tcp2; in ipf_p_rcmd_portmsg()
270 fi.fin_dlen = sizeof(*tcp2); in ipf_p_rcmd_portmsg()
271 fi.fin_plen = fi.fin_hlen + sizeof(*tcp2); in ipf_p_rcmd_portmsg()
H A Dip_fil_freebsd.c308 struct tcphdr *tcp, *tcp2; in ipf_send_reset() local
339 if (sizeof(*tcp2) + hlen > MLEN) { in ipf_send_reset()
346 m->m_len = sizeof(*tcp2) + hlen; in ipf_send_reset()
355 tcp2 = (struct tcphdr *)((char *)ip + hlen); in ipf_send_reset()
356 tcp2->th_sport = tcp->th_dport; in ipf_send_reset()
357 tcp2->th_dport = tcp->th_sport; in ipf_send_reset()
360 tcp2->th_seq = tcp->th_ack; in ipf_send_reset()
361 tcp_set_flags(tcp2, TH_RST); in ipf_send_reset()
362 tcp2->th_ack = 0; in ipf_send_reset()
364 tcp2->th_seq = 0; in ipf_send_reset()
[all …]
H A Dip_irc_pxy.c249 tcphdr_t *tcp, tcph, *tcp2 = &tcph; in ipf_p_irc_send() local
394 bzero((char *)tcp2, sizeof(*tcp2)); in ipf_p_irc_send()
395 tcp2->th_win = htons(8192); in ipf_p_irc_send()
396 tcp2->th_sport = sp; in ipf_p_irc_send()
397 tcp2->th_dport = 0; /* XXX - don't specify remote port */ in ipf_p_irc_send()
400 fi.fin_dp = (char *)tcp2; in ipf_p_irc_send()
402 fi.fin_dlen = sizeof(*tcp2); in ipf_p_irc_send()
403 fi.fin_plen = fi.fin_hlen + sizeof(*tcp2); in ipf_p_irc_send()
H A Dip_ftp_pxy.c432 tcphdr_t tcph, *tcp2 = &tcph; in ipf_p_ftp_addport() local
533 fi.fin_dp = (char *)tcp2; in ipf_p_ftp_addport()
534 fi.fin_dlen = sizeof(*tcp2); in ipf_p_ftp_addport()
535 fi.fin_plen = fi.fin_hlen + sizeof(*tcp2); in ipf_p_ftp_addport()
540 bzero((char *)tcp2, sizeof(*tcp2)); in ipf_p_ftp_addport()
541 tcp2->th_sport = 0; in ipf_p_ftp_addport()
542 tcp2->th_dport = htons(sp); in ipf_p_ftp_addport()
544 tcp2->th_win = htons(8192); in ipf_p_ftp_addport()
545 TCP_OFF_A(tcp2, 5); in ipf_p_ftp_addport()
546 tcp_set_flags(tcp2, TH_SYN); in ipf_p_ftp_addport()
[all …]
/freebsd/contrib/atf/atf-c/
H A Dtc_test.c92 atf_tc_pack_t tcp2 = { in ATF_TC_BODY() local
104 RE(atf_tc_init_pack(&tc, &tcp2, NULL)); in ATF_TC_BODY()