Home
last modified time | relevance | path

Searched refs:IPPROTO_UDP (Results 1 – 25 of 245) sorted by relevance

12345678910

/freebsd-13.1/tests/sys/netinet/libalias/
H A D3_natin.c57 …ibAliasRedirectPort(la, prv1, ntohs(0x1234), ext, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
79 …2 = LibAliasRedirectPort(la, prv2, ntohs(0x1234), ext, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
121 …LibAliasRedirectPort(la, cgn, ntohs(0x1234), ANY_ADDR, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
159 …ibAliasRedirectPort(la, prv2, ntohs(0x1234), ext, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
172 …ibAliasRedirectPort(la, prv1, ntohs(0x1234), ext, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
184 …2 = LibAliasRedirectPort(la, prv2, ntohs(0x1234), ext, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
213 …LibAliasRedirectPort(la, cgn, ntohs(0x1234), ANY_ADDR, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
238 …= LibAliasRedirectPort(la, prv1, ntohs(0x1234), ANY_ADDR, 0, ANY_ADDR, ntohs(0xabcd), IPPROTO_UDP);
313 pf = LibAliasRedirectPort(la, cgn, ntohs(0xdead), ANY_ADDR, 0, masq, ntohs(0xabcd), IPPROTO_UDP);
344 pf = LibAliasRedirectPort(la, prv1, ntohs(0x1234), ANY_ADDR, 0, masq, ntohs(0xabcd), IPPROTO_UDP);
[all …]
/freebsd-13.1/sbin/ipf/libipf/
H A Dipft_tx.c219 ip->ip_p = IPPROTO_UDP; in parseline()
236 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline()
256 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline()
323 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in parseline()
365 ip6->ip6_nxt = IPPROTO_UDP; in parseipv6()
386 case IPPROTO_UDP : in parseipv6()
396 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6()
421 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6()
483 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6()
H A Dprintpacket6.c46 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
55 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
H A Dprintpacket.c79 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket()
84 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket()
/freebsd-13.1/sys/netipsec/
H A Dudpencap.c241 ip->ip_p = IPPROTO_UDP; in udp_ipsec_output()
253 IPSEC_ASSERT(proto == IPPROTO_UDP || proto == IPPROTO_TCP, in udp_ipsec_adjust_cksum()
256 if (proto == IPPROTO_UDP) in udp_ipsec_adjust_cksum()
267 if (proto == IPPROTO_UDP && cksum == 0) in udp_ipsec_adjust_cksum()
288 (proto == IPPROTO_UDP) ? CSUM_UDP: CSUM_TCP; in udp_ipsec_adjust_cksum()
/freebsd-13.1/contrib/pf/tftp-proxy/
H A Dtftp-proxy.c226 IPPROTO_UDP) != 0) { in main()
233 SOCK_DGRAM, IPPROTO_UDP)) < 0) { in main()
283 IPPROTO_UDP) == -1) { in main()
293 IPPROTO_UDP) == -1) { in main()
300 IPPROTO_UDP) == -1) { in main()
309 IPPROTO_UDP) == -1) { in main()
/freebsd-13.1/stand/libsa/
H A Dudp.c89 ui->ui_pr = IPPROTO_UDP; in sendudp()
98 cc = sendip(d, uh, len, IPPROTO_UDP); in sendudp()
123 n = readip(d, &ptr, (void **)&uh, tleft, IPPROTO_UDP); in readudp()
/freebsd-13.1/contrib/tcpdump/
H A Dipproto.h65 #ifndef IPPROTO_UDP
66 #define IPPROTO_UDP 17 /* user datagram protocol */ macro
/freebsd-13.1/sys/netinet/
H A Din_rss.c135 } else if ((proto == IPPROTO_UDP) && in rss_proto_software_hash_v4()
180 } else if ((proto == IPPROTO_UDP) && in xps_proto_software_hash_v4()
274 case IPPROTO_UDP: in rss_mbuf_software_hash_v4()
336 (proto == IPPROTO_UDP) && in rss_mbuf_software_hash_v4()
H A Dudp_var.h163 return (protocol == IPPROTO_UDP) ? &V_udbinfo : &V_ulitecbinfo; in udp_get_inpcbinfo()
169 return (protocol == IPPROTO_UDP) ? &V_udb : &V_ulitecb; in udp_get_pcblist()
/freebsd-13.1/sbin/ipf/ipsend/
H A Dipsend.c153 ph.h.proto = IPPROTO_UDP; in udpcksum()
254 ip->ip_p = IPPROTO_UDP; in main()
291 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in main()
363 } else if (ip->ip_p == IPPROTO_UDP) { in main()
402 if (ip->ip_p == IPPROTO_UDP) { in main()
H A Dresend.c50 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket()
53 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket()
/freebsd-13.1/sys/netinet6/
H A Din6_rss.c136 } else if ((proto == IPPROTO_UDP) && in rss_proto_software_hash_v6()
182 } else if ((proto == IPPROTO_UDP) && in xps_proto_software_hash_v6()
304 case IPPROTO_UDP: in rss_mbuf_software_hash_v6()
360 (proto == IPPROTO_UDP)) { in rss_mbuf_software_hash_v6()
/freebsd-13.1/lib/libc/rpc/
H A Dpmap_clnt.c72 if ((protocol != IPPROTO_UDP) && (protocol != IPPROTO_TCP)) { in pmap_set()
75 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); in pmap_set()
/freebsd-13.1/usr.sbin/rpcbind/
H A Dpmap_svc.c223 if (reg.pm_prot == IPPROTO_UDP) { in pmapproc_change()
291 reg.pm_prot == IPPROTO_UDP ? "udp" : "tcp", uaddr); in pmapproc_getport()
301 if (reg.pm_prot == IPPROTO_UDP) { in pmapproc_getport()
338 reg.pm_prot == IPPROTO_UDP ? udptrans : tcptrans, in pmapproc_getport()
/freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/
H A Dtst.ipv4localudp.ksh85 args[4]->ipv4_protocol == IPPROTO_UDP/
98 args[4]->ipv4_protocol == IPPROTO_UDP/
/freebsd-13.1/sys/netinet/libalias/
H A Dalias.c351 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasIn2()
354 IPPROTO_UDP, 0); in IcmpAliasIn2()
540 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasOut2()
543 IPPROTO_UDP, 0); in IcmpAliasOut2()
885 IPPROTO_UDP, create); in UdpAliasOut()
1364 case IPPROTO_UDP: in LibAliasInLocked()
1518 case IPPROTO_UDP: in LibAliasOutLocked()
1587 if (pip->ip_p == IPPROTO_UDP) in LibAliasUnaliasOut()
1590 IPPROTO_UDP, 0); in LibAliasUnaliasOut()
1614 if (pip->ip_p == IPPROTO_UDP) { in LibAliasUnaliasOut()
[all …]
H A Dalias_smedia.c158 *ah->sport, *ah->aport, IPPROTO_UDP); in protohandler()
317 IPPROTO_UDP, 1))) { in alias_rtsp_out()
332 IPPROTO_UDP); in alias_rtsp_out()
441 port, 0, IPPROTO_UDP, 1); in alias_pna_out()
/freebsd-13.1/usr.sbin/ip6addrctl/
H A Dip6addrctl.c318 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in set_policy()
402 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in add_policy()
421 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in delete_policy()
435 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in flush_policy()
/freebsd-13.1/sbin/dhclient/
H A Dpacket.c126 ip.ip_p = IPPROTO_UDP; in assemble_udp_ip_header()
143 IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen))))); in assemble_udp_ip_header()
234 IPPROTO_UDP + (u_int32_t)ntohs(udp->uh_ulen))))); in decode_udp_ip_header()
/freebsd-13.1/tools/tools/net80211/wesside/dics/
H A Ddics.c202 ph->ippseudo_p = IPPROTO_UDP; in udp_checksum()
245 iph->ip_p = IPPROTO_UDP; in send_stuff()
336 us = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP); in main()
355 s = socket (PF_INET, SOCK_RAW, IPPROTO_UDP); in main()
/freebsd-13.1/usr.bin/systat/
H A Dip.c276 name[2] = IPPROTO_UDP; in initip()
311 name[2] = IPPROTO_UDP; in resetip()
336 name[2] = IPPROTO_UDP; in fetchip()
/freebsd-13.1/sbin/mount_nfs/
H A Dmount_nfs.c257 nfsproto = IPPROTO_UDP; in main()
259 nfsproto = IPPROTO_UDP; in main()
298 nfsproto = IPPROTO_UDP; in main()
309 nfsproto = IPPROTO_UDP; in main()
418 nfsproto = IPPROTO_UDP; in main()
631 else if (nfsproto == IPPROTO_UDP) in getnfsargs()
763 else if (nfsproto == IPPROTO_UDP) in nfs_tryproto()
/freebsd-13.1/contrib/ofed/librdmacm/
H A Daddrinfo.c77 ai->ai_protocol = IPPROTO_UDP; in ucma_convert_to_ai()
83 ai->ai_protocol = IPPROTO_UDP; in ucma_convert_to_ai()
170 case IPPROTO_UDP: in ucma_convert_to_rai()
/freebsd-13.1/contrib/netbsd-tests/net/net/
H A Dt_pktinfo.c63 if ((s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in server()
91 if ((s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) in client()

12345678910