Searched refs:htons (Results 101 - 125 of 643) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/netpfil/pf/
H A Din4_cksum.c105 u.ipov.ih_len = htons(len);
/freebsd-11-stable/tools/regression/netinet/arphold/
H A Darphold.c97 dest.sin_port = htons(PORT);
/freebsd-11-stable/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c83 sa.sin_port = htons(3737);
/freebsd-11-stable/tools/tools/netrate/tcpconnect/
H A Dtcpconnect.c120 sin.sin_port = htons(PORT);
/freebsd-11-stable/contrib/amd/conf/transp/
H A Dtransp_sockets.c126 sin.sin_port = htons(*pp);
133 sin.sin_port = htons(port);
178 if ((sin->sin_port = htons(pmap_getport(sin, MOUNTPROG, mnt_version, IPPROTO_TCP))) != 0) {
381 sin->sin_port = htons(PMAPPORT);
/freebsd-11-stable/contrib/amd/wire-test/
H A Dwire-test.c99 ip->sin_port = htons(NFS_PORT);
/freebsd-11-stable/stand/libsa/
H A Dether.c72 eh->ether_type = htons(etype);
/freebsd-11-stable/sys/netinet/
H A Dip_id.c251 if (V_ip_rfc6864 && (ip->ip_off & htons(IP_DF)) == htons(IP_DF))
271 ip->ip_id = htons((*(uint64_t *)zpcpu_get(V_ip_id)) & 0xffff);
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Dsmpdump.c93 smp->attr_id = (uint16_t) htons((uint16_t) attr);
118 smp->attr_id = (uint16_t) htons((uint16_t) attr);
132 smp->attr_id = (uint16_t) htons((uint16_t) attr);
/freebsd-11-stable/sys/netipsec/
H A Dudpencap.c237 udp->uh_ulen = htons(m->m_pkthdr.len - hlen);
240 ip->ip_len = htons(m->m_pkthdr.len);
285 htons(m->m_pkthdr.len - skip + proto));
H A Dipsec_output.c228 ip->ip_len = htons(m->m_pkthdr.len);
401 ia2.s6_addr16[1] = htons(sa->sin6_scope_id);
518 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
699 mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len);
715 htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
882 setdf = (ip->ip_off & htons(IP_DF)) != 0;
915 ip->ip_len = htons((*mp)->m_pkthdr.len);
918 ip->ip_off = setdf ? htons(IP_DF): 0;
943 htons(saidx->dst.sin6.sin6_scope_id & 0xffff);
947 htons(said
[all...]
/freebsd-11-stable/usr.sbin/bluetooth/sdpd/
H A Dssr.c255 pdu.len = htons(sizeof(rcounts) + rcounts[1] * 4 + 1 + cs[0]);
257 rcounts[0] = htons(rcounts[0]);
258 rcounts[1] = htons(rcounts[1]);
/freebsd-11-stable/sys/dev/xen/netback/
H A Dnetback_unit_tests.c2100 eh->ether_type = htons(ETHERTYPE_ARP);
2102 ep->ea_hdr.ar_hrd = htons(ARPHRD_ETHER);
2103 ep->ea_hdr.ar_pro = htons(ETHERTYPE_IP);
2106 ep->ea_hdr.ar_op = htons(ARPOP_REQUEST);
2166 eh->ether_type = htons(ETHERTYPE_IP);
2171 iph->ip_len = htons(ip_len);
2172 iph->ip_id = htons(ip_id);
2173 iph->ip_off = htons(ip_off);
2176 iph->ip_sum = htons(ip_sum);
2210 icmph->icmp_cksum = htons(ICMP_CSU
[all...]
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c134 ip->ip_len = htons(ip->ip_len);
135 ip->ip_off = htons(ip->ip_off);
417 ip6->ip6_plen = htons(sizeof(struct tcphdr));
428 ip->ip_len = htons(sizeof(struct tcphdr));
432 ip->ip_len = htons(hlen + sizeof(*tcp2));
465 ip->ip_off = htons(V_path_mtu_discovery ? IP_DF : 0);
635 icmp->icmp_nextmtu = htons(fin->fin_mtu);
638 icmp->icmp_nextmtu = htons(GETIFMTU_4(ifp));
641 icmp->icmp_nextmtu = htons(fin->fin_plen - 20);
652 ip6->ip6_plen = htons(icle
[all...]
/freebsd-11-stable/sys/netgraph/
H A Dng_pppoe.c422 wh->ph.length = htons(length);
951 neg->host_uniq.hdr.tag_len = htons(sizeof(sp));
960 neg->host_uniq.hdr.tag_len = htons((uint16_t)(hulen / 2 - 1));
976 neg->host_uniq.hdr.tag_len = htons((uint16_t)hulen);
982 neg->service.hdr.tag_len = htons((uint16_t)srvlen);
998 htons((uint16_t)ourmsg->data_len);
1020 htons((uint16_t)ourmsg->data_len);
1045 htons((uint16_t)ourmsg->data_len);
1130 privp->max_payload.hdr.tag_len = htons(sizeof(uint16_t));
1131 privp->max_payload.data = htons(*((uint16_
[all...]
H A Dng_cisco.c370 h->protocol = htons(ETHERTYPE_IP);
373 h->protocol = htons(ETHERTYPE_IPV6);
376 h->protocol = htons(ETHERTYPE_AT);
379 h->protocol = htons(ETHERTYPE_IPX);
617 h->protocol = htons(CISCO_KEEPALIVE);
624 ch->time0 = htons((uint16_t) (t >> 16));
625 ch->time1 = htons((uint16_t) t);
/freebsd-11-stable/sys/net/
H A Dif_ethersubr.c168 etype = htons(ETHERTYPE_IP);
171 etype = htons(ETHERTYPE_IPV6);
175 ah->ar_hrd = htons(ARPHRD_ETHER);
180 etype = htons(ETHERTYPE_REVARP);
185 etype = htons(ETHERTYPE_ARP);
236 etype = htons(ETHERTYPE_IP);
251 etype = htons(ETHERTYPE_IPV6);
1241 vlan.evl_encap_proto = htons(ETHERTYPE_VLAN);
1242 vlan.evl_tag = htons(m->m_pkthdr.ether_vtag);
1292 evl->evl_encap_proto = htons(ETHERTYPE_VLA
[all...]
H A Dif_fddisubr.c132 type = htons(ETHERTYPE_IP);
139 ah->ar_hrd = htons(ARPHRD_ETHER);
146 type = htons(ETHERTYPE_REVARP);
151 type = htons(ETHERTYPE_ARP);
168 type = htons(ETHERTYPE_IPV6);
246 l->llc_snap.ether_type = htons(type);
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dsockaddr.c293 sockaddr->type.sin.sin_port = htons(port);
322 sockaddr->type.sin6.sin6_port = htons(port);
339 sockaddr->type.sin6.sin6_port = htons(port);
385 sockaddr->type.sin.sin_port = htons(port);
396 sockaddr->type.sin6.sin6_port = htons(port);
408 sockaddr->type.sin.sin_port = htons(port);
411 sockaddr->type.sin6.sin6_port = htons(port);
/freebsd-11-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-11-stable/sys/netpfil/ipfw/
H A Dip_fw2.c556 ip->ip_len = htons(tlen);
557 ip->ip_id = htons(0);
558 ip->ip_off = htons(0);
572 ip6->ip6_plen = htons(plen);
583 sctp->src_port = htons(id->dst_port);
584 sctp->dest_port = htons(id->src_port);
594 chunk->chunk_length = htons(sizeof(struct sctp_chunkhdr));
663 h->ip_len = htons(sizeof(struct tcphdr));
680 h6->ip6_plen = htons(sizeof(struct tcphdr));
695 th->th_sport = htons(i
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c487 ip->ip_len = htons(sizeof(*ip) + plen);
496 ip->ip_off = htons(ntohs(frag->ip6f_offlg) >> 3);
498 ip->ip_off |= htons(IP_MF);
500 ip->ip_off = htons(IP_DF);
558 ip6->ip6_plen = htons(len + sizeof(ip6f));
560 if (len < plen || (ip_off & htons(IP_MF)) != 0)
610 htons(pnh->nh_ifp->if_index & 0xffff);
696 oip6->ip6_plen = htons(plen);
791 oip->ip_len = htons(n->m_pkthdr.len);
795 oip->ip_off = htons(IP_D
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c140 } else if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
198 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
359 wqe->eth.vlan_cmd = htons(0x8000); /* bit 0 CVLAN */
360 wqe->eth.vlan_hdr = htons(mb->m_pkthdr.ether_vtag);
397 eh->evl_encap_proto = htons(ETHERTYPE_VLAN);
398 eh->evl_tag = htons(mb->m_pkthdr.ether_vtag);
/freebsd-11-stable/libexec/bootpd/bootpgw/
H A Dbootpgw.c413 bind_addr.sin_port = htons(bootps_port);
594 send_addr.sin_port = htons(bootps_port);
647 send_addr.sin_port = htons(bootpc_port);
/freebsd-11-stable/libexec/bootpd/tools/bootptest/
H A Dbootptest.c271 sin_server.sin_port = htons(bootps_port);
290 sin_client.sin_port = htons(bootpc_port);
411 bp->bp_secs = htons(secs);

Completed in 554 milliseconds

1234567891011>>