Searched refs:htons (Results 126 - 150 of 649) sorted by relevance

1234567891011>>

/freebsd-13-stable/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.c187 ((struct sockaddr_in *)addr)->sin_port = htons(prt);
191 ((struct sockaddr_in6 *)addr)->sin6_port = htons(prt);
308 in2->sin_port = htons(prt);
326 in2->sin6_port = htons(prt);
836 packet->ip.hdr.packet_length = htons(wire_len - icmp_truncate_len);
837 packet->ip.hdr.identification = htons(0xFFFF);
839 packet->ip.hdr.fragment = htons(0x0000);
842 packet->ip.hdr.hdr_checksum = htons(0x0000);
849 packet->ip.p.icmp.checksum = htons(0x0000);
856 packet->ip.hdr.packet_length = htons(wire_le
[all...]
/freebsd-13-stable/sys/netinet/
H A Dip_reass.c219 ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
225 if (ip->ip_len == htons(0) ||
226 ((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) {
232 if (ip->ip_off & htons(IP_MF))
236 ip->ip_off = htons(ntohs(ip->ip_off) << 3);
388 ip->ip_off = htons(ntohs(ip->ip_off) + i);
389 ip->ip_len = htons(ntohs(ip->ip_len) - i);
407 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i);
408 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i);
494 ip->ip_len = htons((i
[all...]
/freebsd-13-stable/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c411 ip6->ip6_plen = htons(sizeof(struct tcphdr));
422 ip->ip_len = htons(sizeof(struct tcphdr));
426 ip->ip_len = htons(hlen + sizeof(*tcp2));
459 ip->ip_off = htons(V_path_mtu_discovery ? IP_DF : 0);
629 icmp->icmp_nextmtu = htons(fin->fin_mtu);
632 icmp->icmp_nextmtu = htons(GETIFMTU_4(ifp));
635 icmp->icmp_nextmtu = htons(fin->fin_plen - 20);
646 ip6->ip6_plen = htons(iclen - hlen);
668 ip->ip_len = htons(iclen);
879 mhip->ip_len = htons((u_shor
[all...]
H A Dip_irc_pxy.c375 ip->ip_len = htons(fin->fin_plen);
383 sp = htons(a5);
408 tcp2->th_win = htons(8192);
H A Dip_rcmd_pxy.c264 ip6->ip6_plen = htons(sizeof(*tcp));
268 ip->ip_len = htons(fin->fin_hlen + sizeof(*tcp));
276 tcp2->th_win = htons(8192);
/freebsd-13-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c518 ip->ip_len = htons(sizeof(*ip) + plen);
526 ip->ip_off = htons(ntohs(frag->ip6f_offlg) >> 3);
528 ip->ip_off |= htons(IP_MF);
530 ip->ip_off = htons(IP_DF);
588 ip6->ip6_plen = htons(len + sizeof(ip6f));
590 if (len < plen || (ip_off & htons(IP_MF)) != 0)
640 htons(nh->nh_ifp->if_index & 0xffff);
753 oip6->ip6_plen = htons(plen);
850 oip->ip_len = htons(n->m_pkthdr.len);
854 oip->ip_off = htons(IP_D
[all...]
/freebsd-13-stable/contrib/wpa/src/drivers/
H A Ddriver_wired.c176 drv->common.sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE));
247 addr2.sin_port = htons(67);
308 hdr->ethertype = htons(ETH_P_PAE);
/freebsd-13-stable/libexec/bootpd/bootpgw/
H A Dbootpgw.c417 bind_addr.sin_port = htons(bootps_port);
600 send_addr.sin_port = htons(bootps_port);
653 send_addr.sin_port = htons(bootpc_port);
/freebsd-13-stable/libexec/bootpd/tools/bootptest/
H A Dbootptest.c268 sin_server.sin_port = htons(bootps_port);
287 sin_client.sin_port = htons(bootpc_port);
408 bp->bp_secs = htons(secs);
/freebsd-13-stable/contrib/ipfilter/lib/
H A Dsave_v1trap.c148 ctx->sin.sin_port = htons(162);
164 ctx->sin6.sin6_port = htons(162);
180 ctx->sin.sin_port = htons(162);
H A Dsave_v2trap.c153 ctx->sin.sin_port = htons(162);
169 ctx->sin6.sin6_port = htons(162);
185 ctx->sin.sin_port = htons(162);
/freebsd-13-stable/sys/netinet/libalias/
H A Dalias_irc.c350 true_port = htons(org_port);
396 "%u", htons(alias_port));
450 new_len = htons(hlen + iCopy + copyat);
/freebsd-13-stable/sys/netinet6/
H A Din6_fib.c163 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
244 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
314 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
H A Dscope6.c338 sin6->sin6_addr.s6_addr16[1] = htons(zoneid & 0xffff);
416 in6->s6_addr16[1] = htons(zoneid & 0xffff); /* XXX */
487 in6->s6_addr16[1] = htons(scopeid & 0xffff);
/freebsd-13-stable/sys/nfs/
H A Dkrpc_subr.c155 *portp = htons(PMAPPORT);
169 sin->sin_port = htons(PMAPPORT);
264 sin->sin_port = htons(tport);
/freebsd-13-stable/tools/tools/netrate/netsend/
H A Dnetsend.c233 a->sin.sin_port = htons(cur_port++);
326 a.sin6.sin6_port = htons(port);
328 a.sin.sin_port = htons(port);
/freebsd-13-stable/contrib/unbound/services/cache/
H A Drrset.c287 key.rk.type = htons(qtype);
288 key.rk.rrset_class = htons(qclass);
450 key.rk.rrset_class = htons(dclass);
451 key.rk.type = htons(type);
/freebsd-13-stable/contrib/smbfs/lib/smb/
H A Dnb_net.c97 sinp->sin_port = htons(smbtcpport);
/freebsd-13-stable/contrib/blacklist/test/
H A Dcltest.c68 p = htons(p);
/freebsd-13-stable/contrib/ipfilter/ipsend/
H A Darp.c108 san.sin_port = htons(1);
/freebsd-13-stable/contrib/libevent/sample/
H A Dhello-world.c59 sin.sin_port = htons(PORT);
/freebsd-13-stable/contrib/netbsd-tests/lib/librumpclient/
H A Dt_fd.c126 sin.sin_port = htons(12345);
/freebsd-13-stable/contrib/netbsd-tests/net/icmp/
H A Dt_forward.c93 sin.sin_port = htons(33434);
/freebsd-13-stable/contrib/netbsd-tests/sys/netatalk/
H A Dt_print.c49 { htons(3), 255 },
/freebsd-13-stable/sys/net/
H A Dif_gre.c469 udp->uh_dport = htons(GRE_UDPPORT);
470 udp->uh_sport = htons(sc->gre_port);
501 gh->gre_flags = htons(flags);
736 proto = htons(ETHERTYPE_IP);
741 proto = htons(ETHERTYPE_IPV6);
768 uh->uh_sport |= htons(V_ipport_hifirstauto) |
770 uh->uh_sport = htons(ntohs(uh->uh_sport) %
772 uh->uh_ulen = htons(m->m_pkthdr.len - len);
774 htons(m->m_pkthdr.len - len + IPPROTO_UDP));

Completed in 295 milliseconds

1234567891011>>