Home
last modified time | relevance | path

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

12345678910

/freebsd-14.2/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-14.2/sbin/ipf/libipf/
H A Dipft_tx.c218 ip->ip_p = IPPROTO_UDP; in parseline()
235 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline()
255 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline()
322 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in parseline()
364 ip6->ip6_nxt = IPPROTO_UDP; in parseipv6()
385 case IPPROTO_UDP : in parseipv6()
395 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6()
420 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6()
482 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6()
H A Dprintpacket6.c45 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
54 if (p == IPPROTO_TCP || p == IPPROTO_UDP) in printpacket6()
H A Dprintpacket.c78 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-14.2/sys/netipsec/
H A Dudpencap.c239 ip->ip_p = IPPROTO_UDP; in udp_ipsec_output()
251 IPSEC_ASSERT(proto == IPPROTO_UDP || proto == IPPROTO_TCP, in udp_ipsec_adjust_cksum()
254 if (proto == IPPROTO_UDP) in udp_ipsec_adjust_cksum()
265 if (proto == IPPROTO_UDP && cksum == 0) in udp_ipsec_adjust_cksum()
286 (proto == IPPROTO_UDP) ? CSUM_UDP: CSUM_TCP; in udp_ipsec_adjust_cksum()
/freebsd-14.2/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-14.2/stand/libsa/
H A Dudp.c84 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-14.2/contrib/tcpdump/
H A Dipproto.h65 #ifndef IPPROTO_UDP
66 #define IPPROTO_UDP 17 /* user datagram protocol */ macro
/freebsd-14.2/sys/netinet/
H A Din_rss.c127 } 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-14.2/sbin/ipf/ipsend/
H A Dipsend.c152 ph.h.proto = IPPROTO_UDP; in udpcksum()
253 ip->ip_p = IPPROTO_UDP; in main()
290 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in main()
362 } else if (ip->ip_p == IPPROTO_UDP) { in main()
401 if (ip->ip_p == IPPROTO_UDP) { in main()
H A Dresend.c49 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket()
52 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket()
/freebsd-14.2/sys/netinet6/
H A Din6_rss.c128 } 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-14.2/lib/libc/rpc/
H A Dpmap_clnt.c69 if ((protocol != IPPROTO_UDP) && (protocol != IPPROTO_TCP)) { in pmap_set()
72 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); in pmap_set()
/freebsd-14.2/usr.sbin/rpcbind/
H A Dpmap_svc.c222 if (reg.pm_prot == IPPROTO_UDP) { in pmapproc_change()
290 reg.pm_prot == IPPROTO_UDP ? "udp" : "tcp", uaddr); in pmapproc_getport()
300 if (reg.pm_prot == IPPROTO_UDP) { in pmapproc_getport()
337 reg.pm_prot == IPPROTO_UDP ? udptrans : tcptrans, in pmapproc_getport()
/freebsd-14.2/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-14.2/sys/netinet/libalias/
H A Dalias.c349 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasIn2()
352 IPPROTO_UDP, 0); in IcmpAliasIn2()
538 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasOut2()
541 IPPROTO_UDP, 0); in IcmpAliasOut2()
882 IPPROTO_UDP, create); in UdpAliasOut()
1361 case IPPROTO_UDP: in LibAliasInLocked()
1515 case IPPROTO_UDP: in LibAliasOutLocked()
1584 if (pip->ip_p == IPPROTO_UDP) in LibAliasUnaliasOut()
1587 IPPROTO_UDP, 0); in LibAliasUnaliasOut()
1611 if (pip->ip_p == IPPROTO_UDP) { in LibAliasUnaliasOut()
[all …]
H A Dalias_smedia.c156 *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-14.2/usr.sbin/ip6addrctl/
H A Dip6addrctl.c316 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in set_policy()
400 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in add_policy()
419 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in delete_policy()
433 if ((s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) < 0) in flush_policy()
/freebsd-14.2/sbin/dhclient/
H A Dpacket.c124 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-14.2/tools/tools/net80211/wesside/dics/
H A Ddics.c200 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-14.2/usr.bin/systat/
H A Dip.c273 name[2] = IPPROTO_UDP; in initip()
308 name[2] = IPPROTO_UDP; in resetip()
333 name[2] = IPPROTO_UDP; in fetchip()
/freebsd-14.2/sbin/mount_nfs/
H A Dmount_nfs.c259 nfsproto = IPPROTO_UDP; in main()
261 nfsproto = IPPROTO_UDP; in main()
300 nfsproto = IPPROTO_UDP; in main()
311 nfsproto = IPPROTO_UDP; in main()
425 nfsproto = IPPROTO_UDP; in main()
647 else if (nfsproto == IPPROTO_UDP) in getnfsargs()
779 else if (nfsproto == IPPROTO_UDP) in nfs_tryproto()
/freebsd-14.2/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-14.2/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()
/freebsd-14.2/usr.sbin/traceroute6/
H A Dtraceroute6.c353 static int useproto = IPPROTO_UDP; /* protocol to use to send packet */
553 useproto = IPPROTO_UDP; in main()
587 case IPPROTO_UDP: in main()
683 case IPPROTO_UDP: in main()
924 datalen + ((useproto == IPPROTO_UDP) ? sizeof(struct udphdr) : 0)); in main()
1145 case IPPROTO_UDP: in send_probe()
1432 case IPPROTO_UDP: in packet_ok()
1539 case IPPROTO_UDP: in get_uphdr()
1799 pseudo_hdr.next = IPPROTO_UDP; in udp_cksum()

12345678910