| /freebsd-13.1/tests/sys/netinet/libalias/ |
| H A D | 3_natin.c | 57 …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 D | ipft_tx.c | 219 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 D | printpacket6.c | 46 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6() 55 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
|
| H A D | printpacket.c | 79 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 D | udpencap.c | 241 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 D | tftp-proxy.c | 226 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 D | udp.c | 89 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 D | ipproto.h | 65 #ifndef IPPROTO_UDP 66 #define IPPROTO_UDP 17 /* user datagram protocol */ macro
|
| /freebsd-13.1/sys/netinet/ |
| H A D | in_rss.c | 135 } 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 D | udp_var.h | 163 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 D | ipsend.c | 153 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 D | resend.c | 50 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 D | in6_rss.c | 136 } 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 D | pmap_clnt.c | 72 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 D | pmap_svc.c | 223 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 D | tst.ipv4localudp.ksh | 85 args[4]->ipv4_protocol == IPPROTO_UDP/ 98 args[4]->ipv4_protocol == IPPROTO_UDP/
|
| /freebsd-13.1/sys/netinet/libalias/ |
| H A D | alias.c | 351 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 D | alias_smedia.c | 158 *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 D | ip6addrctl.c | 318 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 D | packet.c | 126 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 D | dics.c | 202 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 D | ip.c | 276 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 D | mount_nfs.c | 257 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 D | addrinfo.c | 77 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 D | t_pktinfo.c | 63 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()
|