/freebsd/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); 100 …asRedirectPort(la, prv3, ntohs(0x1234), ANY_ADDR, ntohs(0x5678), 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); 198 …asRedirectPort(la, prv3, ntohs(0x1234), ANY_ADDR, ntohs(0x5678), 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); [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 214 ip->ip_p = IPPROTO_UDP; in parseline() 231 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 251 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 319 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in parseline() 361 ip6->ip6_nxt = IPPROTO_UDP; in parseipv6() 382 case IPPROTO_UDP : in parseipv6() 392 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 417 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 480 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6()
|
H A D | printpacket6.c | 45 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6() 54 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
|
H A D | printpacket.c | 78 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket() 83 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket()
|
/freebsd/sys/netipsec/ |
H A D | udpencap.c | 289 ip->ip_p = IPPROTO_UDP; in udp_ipsec_output() 301 ip6->ip6_nxt = IPPROTO_UDP; in udp_ipsec_output() 324 IPSEC_ASSERT(proto == IPPROTO_UDP || proto == IPPROTO_TCP, in udp_ipsec_adjust_cksum() 327 if (proto == IPPROTO_UDP) in udp_ipsec_adjust_cksum() 338 if (proto == IPPROTO_UDP && cksum == 0) in udp_ipsec_adjust_cksum() 379 (proto == IPPROTO_UDP) ? CSUM_UDP : CSUM_TCP; in udp_ipsec_adjust_cksum() 396 (proto == IPPROTO_UDP) ? CSUM_UDP_IPV6 : CSUM_TCP_IPV6; in udp_ipsec_adjust_cksum()
|
/freebsd/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/stand/libsa/ |
H A D | udp.c | 84 ui->ui_pr = IPPROTO_UDP; in sendudp() 93 cc = sendip(d, uh, len, IPPROTO_UDP); in sendudp() 118 n = readip(d, &ptr, (void **)&uh, tleft, IPPROTO_UDP); in readudp()
|
/freebsd/sys/netinet/ |
H A D | in_rss.c | 127 } else if ((proto == IPPROTO_UDP) && in rss_proto_software_hash_v4() 172 } else if ((proto == IPPROTO_UDP) && in xps_proto_software_hash_v4() 264 case IPPROTO_UDP: in rss_mbuf_software_hash_v4() 326 (proto == IPPROTO_UDP) && in rss_mbuf_software_hash_v4()
|
/freebsd/sbin/ipf/ipsend/ |
H A D | ipsend.c | 148 ph.h.proto = IPPROTO_UDP; in udpcksum() 249 ip->ip_p = IPPROTO_UDP; in main() 286 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in main() 358 } else if (ip->ip_p == IPPROTO_UDP) { in main() 406 if (ip->ip_p == IPPROTO_UDP) { in main()
|
H A D | resend.c | 45 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket() 48 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket()
|
/freebsd/contrib/tcpdump/ |
H A D | ipproto.h | 65 #ifndef IPPROTO_UDP 66 #define IPPROTO_UDP 17 /* user datagram protocol */ macro
|
/freebsd/sys/netinet6/ |
H A D | in6_rss.c | 128 } else if ((proto == IPPROTO_UDP) && in rss_proto_software_hash_v6() 174 } else if ((proto == IPPROTO_UDP) && in xps_proto_software_hash_v6() 296 case IPPROTO_UDP: in rss_mbuf_software_hash_v6() 352 (proto == IPPROTO_UDP)) { in rss_mbuf_software_hash_v6()
|
/freebsd/usr.sbin/rpcbind/ |
H A D | pmap_svc.c | 214 if (reg.pm_prot == IPPROTO_UDP) { in pmapproc_change() 282 reg.pm_prot == IPPROTO_UDP ? "udp" : "tcp", uaddr); in pmapproc_getport() 292 if (reg.pm_prot == IPPROTO_UDP) { in pmapproc_getport() 329 reg.pm_prot == IPPROTO_UDP ? udptrans : tcptrans, in pmapproc_getport()
|
/freebsd/lib/libc/rpc/ |
H A D | pmap_clnt.c | 65 if ((protocol != IPPROTO_UDP) && (protocol != IPPROTO_TCP)) { in pmap_set() 68 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); in pmap_set()
|
/freebsd/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/sys/netinet/libalias/ |
H A D | alias.c | 349 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasIn2() 352 IPPROTO_UDP, 0); in IcmpAliasIn2() 366 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasIn2() 538 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasOut2() 541 IPPROTO_UDP, 0); in IcmpAliasOut2() 555 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasOut2() 757 IPPROTO_UDP, !(la->packetAliasMode & PKT_ALIAS_PROXY_ONLY)); in UdpAliasIn() 882 IPPROTO_UDP, create); in UdpAliasOut() 1361 case IPPROTO_UDP: in LibAliasInLocked() 1515 case IPPROTO_UDP: in LibAliasOutLocked() [all …]
|
H A D | alias_smedia.c | 156 *ah->sport, *ah->aport, IPPROTO_UDP); in protohandler() 315 IPPROTO_UDP, 1))) { in alias_rtsp_out() 330 IPPROTO_UDP); in alias_rtsp_out() 439 port, 0, IPPROTO_UDP, 1); in alias_pna_out()
|
/freebsd/usr.sbin/ip6addrctl/ |
H A D | ip6addrctl.c | 367 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in mask2plen() 451 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in usage() 470 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) 484 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0)
|
/freebsd/sbin/dhclient/ |
H A D | packet.c | 124 ip.ip_p = IPPROTO_UDP; in assemble_udp_ip_header() 141 IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen))))); in assemble_udp_ip_header() 232 IPPROTO_UDP + (u_int32_t)ntohs(udp->uh_ulen))))); in decode_udp_ip_header()
|
/freebsd/tools/tools/net80211/wesside/dics/ |
H A D | dics.c | 200 ph->ippseudo_p = IPPROTO_UDP; in udp_checksum() 243 iph->ip_p = IPPROTO_UDP; in send_stuff() 334 us = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP); in main() 353 s = socket (PF_INET, SOCK_RAW, IPPROTO_UDP); in main()
|
/freebsd/usr.bin/systat/ |
H A D | ip.c | 270 name[2] = IPPROTO_UDP; in initip() 305 name[2] = IPPROTO_UDP; in resetip() 330 name[2] = IPPROTO_UDP; in fetchip()
|
/freebsd/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/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 341 static int useproto = IPPROTO_UDP; /* protocol to use to send packet */ 539 useproto = IPPROTO_UDP; in main() 573 case IPPROTO_UDP: in main() 669 case IPPROTO_UDP: in main() 910 datalen + ((useproto == IPPROTO_UDP) ? sizeof(struct udphdr) : 0)); in main() 1131 case IPPROTO_UDP: in send_probe() 1418 case IPPROTO_UDP: in packet_ok() 1525 case IPPROTO_UDP: in get_uphdr() 1783 pseudo_hdr.next = IPPROTO_UDP; in udp_cksum()
|
/freebsd/sbin/mount_nfs/ |
H A D | mount_nfs.c | 248 nfsproto = IPPROTO_UDP; in main() 250 nfsproto = IPPROTO_UDP; in main() 289 nfsproto = IPPROTO_UDP; in main() 300 nfsproto = IPPROTO_UDP; in main() 421 nfsproto = IPPROTO_UDP; in main() 643 else if (nfsproto == IPPROTO_UDP) in getnfsargs() 775 else if (nfsproto == IPPROTO_UDP) in nfs_tryproto()
|
/freebsd/tests/sys/netinet6/ |
H A D | test_ip6_output.py | 30 s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_UDP) 104 s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_UDP) 247 s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_UDP) 383 s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_UDP) 425 s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
|