| /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 | 128 } else if ((proto == IPPROTO_UDP) && in rss_proto_software_hash_v4() 173 } else if ((proto == IPPROTO_UDP) && in xps_proto_software_hash_v4() 265 case IPPROTO_UDP: in rss_mbuf_software_hash_v4() 327 (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 | 129 } else if ((proto == IPPROTO_UDP) && in rss_proto_software_hash_v6() 175 } else if ((proto == IPPROTO_UDP) && in xps_proto_software_hash_v6() 297 case IPPROTO_UDP: in rss_mbuf_software_hash_v6() 353 (proto == IPPROTO_UDP)) { in rss_mbuf_software_hash_v6()
|
| /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/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/sys/netinet/libalias/ |
| H A D | alias.c | 349 if (ip->ip_p == IPPROTO_UDP) { in IcmpAliasIn2() 352 IPPROTO_UDP, 0, &lnk); in IcmpAliasIn2() 374 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasIn2() 547 if (ip->ip_p == IPPROTO_UDP) { in IcmpAliasOut2() 550 IPPROTO_UDP, 0, &lnk); in IcmpAliasOut2() 572 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasOut2() 773 IPPROTO_UDP, !(la->packetAliasMode & PKT_ALIAS_PROXY_ONLY), &lnk); in UdpAliasIn() 899 IPPROTO_UDP, create, &lnk); in UdpAliasOut() 1380 case IPPROTO_UDP: in LibAliasInLocked() 1534 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, &pna_links); 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() 237 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 | 274 name[2] = IPPROTO_UDP; in initip() 309 name[2] = IPPROTO_UDP; in resetip() 334 name[2] = IPPROTO_UDP; in fetchip()
|
| /freebsd/tests/sys/netinet/ |
| H A D | igmp.py | 114 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) 143 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
|
| /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/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()
|
| /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() 912 datalen + ((useproto == IPPROTO_UDP) ? sizeof(struct udphdr) : 0)); in main() 1137 case IPPROTO_UDP: in send_probe() 1424 case IPPROTO_UDP: in packet_ok() 1531 case IPPROTO_UDP: in get_uphdr() 1806 pseudo_hdr.next = IPPROTO_UDP; in tcp_chksum()
|