Searched refs:htons (Results 251 - 275 of 643) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/contrib/wpa/src/wps/
H A Dwps_upnp_ssdp.c240 dest.sin_port = htons(UPNP_MULTICAST_PORT);
289 dest.sin_port = htons(UPNP_MULTICAST_PORT);
744 addr.sin_port = htons(UPNP_MULTICAST_PORT);
/freebsd-11-stable/sys/net/
H A Dif_arcsubr.c145 ah->ar_hrd = htons(ARPHRD_ARCNET);
571 mtod(m, struct arphdr *)->ar_pro = htons(ETHERTYPE_IP);
584 mtod(m, struct arphdr *)->ar_pro = htons(ETHERTYPE_IP);
H A Dif_me.c465 ip->ip_len = htons(m->m_pkthdr.len - hlen);
580 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) {
620 ip->ip_len = htons(m->m_pkthdr.len);
H A Dif_fwsubr.c159 ah->ar_hrd = htons(ARPHRD_IEEE1394);
202 h.firewire_type = htons(type);
578 h.firewire_type = htons(type);
/freebsd-11-stable/sys/netipsec/
H A Dipsec_input.c159 spi = ntohl(htons(cpi));
312 ip->ip_len = htons(m->m_pkthdr.len);
530 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
/freebsd-11-stable/usr.bin/netstat/
H A Dsctp.c280 htons(xstcb->local_port), numeric_port);
291 htons(xstcb->remote_port), numeric_port);
446 htons(xinpcb->local_port), numeric_port);
/freebsd-11-stable/usr.sbin/ppp/
H A Dnat_cmd.c180 link = LibAliasRedirectPort(la, localaddr, htons(llocalport),
181 remoteaddr, htons(lremoteport),
182 aliasaddr, htons(laliasport),
H A Dserver.c331 sin6->sin6_port = htons(port);
339 sin->sin_port = htons(port);
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dctrl_iface_udp.c437 addr.sin6_port = htons(port);
439 addr.sin_port = htons(port);
745 addr.sin_port = htons(port);
/freebsd-11-stable/stand/libsa/
H A Dbootp.c175 d->myport = htons(IPPORT_BOOTPC);
177 d->destport = htons(IPPORT_BOOTPS);
278 bp->bp_secs = htons((u_short)(getsecs() - bot));
/freebsd-11-stable/sys/netgraph/
H A Dng_checksum.c347 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK)) {
362 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen));
383 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen));
/freebsd-11-stable/sbin/natd/
H A Dnatd.c1725 htons(localPort + i),
1727 htons(remotePortCopy),
1729 htons(publicPort + i),
1745 LibAliasAddServer(mla, aliaslink, localAddr, htons(localPort));
1858 LibAliasAddServer(mla, aliaslink, localAddr, htons(~0));
1888 return htons (port);
/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_fw_nat.c230 r->laddr, htons(r->lport + i), r->raddr,
231 htons(remotePortCopy), r->paddr,
232 htons(r->pport + i), r->proto);
260 s->addr, htons(s->port));
410 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 &&
426 htons(ip->ip_p + ip_len - (ip->ip_hl << 2)));
/freebsd-11-stable/contrib/wpa/src/l2_packet/
H A Dl2_packet_ndis.c123 eth->h_proto = htons(proto);
332 USHORT proto = htons(protocol);
/freebsd-11-stable/lib/libc/rpc/
H A Drpc_soc.c124 raddr->sin_port = htons(sport);
285 addr->sin_port = htons(PMAPPORT);
/freebsd-11-stable/contrib/unbound/validator/
H A Dval_kentry.c357 rrk->rk.type = htons(d->rrset_type);
358 rrk->rk.rrset_class = htons(kkey->key_class);
/freebsd-11-stable/lib/libc/net/
H A DMakefile.inc53 MLINKS+=byteorder.3 htonl.3 byteorder.3 htons.3 byteorder.3 ntohl.3 \
/freebsd-11-stable/sys/nfs/
H A Dnfs_diskless.c269 nd3->root_saddr.sin_port = htons(NFS_PORT);
308 nd->root_saddr.sin_port = htons(NFS_PORT);
/freebsd-11-stable/tools/regression/sockets/sendfile/
H A Dsendfile.c204 sin.sin_port = htons(TEST_PORT);
247 sin.sin_port = htons(TEST_PORT);
/freebsd-11-stable/tools/tools/netrate/juggle/
H A Djuggle.c129 sin1.sin_port = htons(UDP_PORT1);
135 sin2.sin_port = htons(UDP_PORT2);
/freebsd-11-stable/contrib/netbsd-tests/net/bpfilter/
H A Dt_bpfilter.c196 icmp->icmp_id = htons(37);
197 icmp->icmp_seq = htons(1);
/freebsd-11-stable/contrib/smbfs/lib/smb/
H A Dnbns_rq.c90 dest->sin_port = htons(ctx->nb_nmbtcpport);
135 dest->sin_port = htons(ctx->nb_smbtcpport);
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Dibmirror.c353 lossy_cfg.ignore_buffer_mask = htons(1<<mirror_vl);
370 lossy_cfg.ignore_credit_mask = htons(1<<mirror_vl);
/freebsd-11-stable/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_cma.c320 hh.bsdh.bufs = htons(rx_ring_posted(sdp_sk(sk)));
350 hah.bsdh.bufs = htons(rx_ring_posted(ssk));
/freebsd-11-stable/usr.sbin/fwcontrol/
H A Dfwdv.c368 ciph->fdf.dv.cyc = htons(f_cycle << 12 | f_frac);
370 ciph->fdf.dv.cyc = htons(cycle << 12 | f_frac);

Completed in 158 milliseconds

<<11121314151617181920>>