Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 25 of 153) sorted by relevance

1234567

/f-stack/freebsd/contrib/openzfs/module/icp/algs/aes/
H A Daes_impl.c90 htonl(*(uint32_t *)(void *)&cipherKey[j]); in aes_init_keysched()
130 buffer[0] = htonl(*(uint32_t *)(void *)&pt[0]); in aes_encrypt_block()
131 buffer[1] = htonl(*(uint32_t *)(void *)&pt[4]); in aes_encrypt_block()
132 buffer[2] = htonl(*(uint32_t *)(void *)&pt[8]); in aes_encrypt_block()
141 *(uint32_t *)(void *)&ct[0] = htonl(buffer[0]); in aes_encrypt_block()
142 *(uint32_t *)(void *)&ct[4] = htonl(buffer[1]); in aes_encrypt_block()
143 *(uint32_t *)(void *)&ct[8] = htonl(buffer[2]); in aes_encrypt_block()
177 buffer[0] = htonl(*(uint32_t *)(void *)&ct[0]); in aes_decrypt_block()
178 buffer[1] = htonl(*(uint32_t *)(void *)&ct[4]); in aes_decrypt_block()
179 buffer[2] = htonl(*(uint32_t *)(void *)&ct[8]); in aes_decrypt_block()
[all …]
/f-stack/freebsd/netgraph/netflow/
H A Dnetflow_v9.c224 header->unix_secs = htonl(ts.tv_sec); in export9_send()
227 header->source_id = htonl(fe->domain_id); in export9_send()
276 rec->i_packets = htonl(fed->packets); in export9_add()
277 rec->i_octets = htonl(fed->bytes); in export9_add()
278 rec->o_packets = htonl(0); in export9_add()
279 rec->o_octets = htonl(0); in export9_add()
281 rec->last = htonl(MILLIUPTIME(fed->last)); in export9_add()
307 rec->i_packets = htonl(fed6->packets); in export9_add()
308 rec->i_octets = htonl(fed6->bytes); in export9_add()
309 rec->o_packets = htonl(0); in export9_add()
[all …]
/f-stack/freebsd/netinet/
H A Dip_ecn.c172 *outer &= ~htonl(0xff << 20); in ip6_ecn_ingress()
173 *outer |= htonl((u_int32_t)outer8 << 20); in ip6_ecn_ingress()
189 *inner &= ~htonl(0xff << 20); in ip6_ecn_egress()
190 *inner |= htonl((u_int32_t)inner8 << 20); in ip6_ecn_egress()
H A Din.h110 uint32_t htonl(uint32_t);
119 #define htonl(x) __htonl(x) macro
662 #define in_allhosts(x) ((x).s_addr == htonl(INADDR_ALLHOSTS_GROUP))
/f-stack/dpdk/drivers/net/cxgbe/
H A Dsge.c626 sgl->len0 = htonl(len); in write_sgl()
854 wr->equiq_to_len16 = htonl(wr_mid); in ship_tx_pkt_coalesce_wr()
878 wr->equiq_to_len16 = htonl(wr_mid); in ship_tx_pkt_coalesce_wr()
1017 sc_imm->len = htonl(sizeof(*cpl)); in tx_do_packet_coalesce()
1186 wr->equiq_to_len16 = htonl(wr_mid); in t4_eth_xmit()
1243 lso->seqno_offset = htonl(0); in t4_eth_xmit()
1245 lso->len = htonl(m->pkt_len); in t4_eth_xmit()
1401 wr->lo |= htonl(F_FW_WR_EQUEQ); in ctrl_xmit()
1536 if (cpl->l2info & htonl(F_RXF_IP)) in cxgbe_fill_mbuf_info()
1545 if (cpl->l2info & htonl(F_RXF_TCP)) in cxgbe_fill_mbuf_info()
[all …]
H A Dcxgbe_compat.h168 #ifndef htonl
169 #define htonl(o) cpu_to_be32(o) macro
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_sync.c316 td->td_end = htonl(td->td_end);
317 td->td_maxend = htonl(td->td_maxend);
341 n->nat_age = htonl(n->nat_age);
342 n->nat_flags = htonl(n->nat_flags);
344 n->nat_use = htonl(n->nat_use);
345 n->nat_dir = htonl(n->nat_dir);
374 ips->is_hv = htonl(ips->is_hv);
375 ips->is_die = htonl(ips->is_die);
376 ips->is_pass = htonl(ips->is_pass);
1079 sl->sl_magic = htonl(SYNHDRMAGIC);
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dbyteorder.h63 #define htonl(x) (x) macro
79 extern uint32_t htonl(uint32_t);
84 extern in_addr_t htonl(in_addr_t);
145 return ((((uint64_t)htonl(n)) << 32) + htonl(n >> 32));
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dbyteorder.h92 return ((((uint64_t)htonl(n)) << 32) + htonl(n >> 32)); in htonll()
107 #define BE_IN32(xa) htonl(*((uint32_t *)(void *)(xa)))
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c325 if ((ia & htonl(0xff000000)) == htonl(0x0a000000) || in nat64_check_private_ip4()
326 (ia & htonl(0xfff00000)) == htonl(0xac100000) || in nat64_check_private_ip4()
327 (ia & htonl(0xffff0000)) == htonl(0xc0a80000)) in nat64_check_private_ip4()
337 if ((ia & htonl(0xffffff00)) == htonl(0xc0000000) || in nat64_check_private_ip4()
338 (ia & htonl(0xffffff00)) == htonl(0xc0586300) || in nat64_check_private_ip4()
339 (ia & htonl(0xfffffe00)) == htonl(0xc6120000) || in nat64_check_private_ip4()
340 (ia & htonl(0xffffff00)) == htonl(0xc0000200) || in nat64_check_private_ip4()
341 (ia & htonl(0xfffffe00)) == htonl(0xc6336400) || in nat64_check_private_ip4()
342 (ia & htonl(0xffffff00)) == htonl(0xcb007100)) in nat64_check_private_ip4()
759 icmp6->icmp6_mtu = htonl(mtu); in nat64_icmp6_reflect()
[all …]
H A Dnat64stl.c77 plog->rulenr = htonl(kidx); in nat64stl_log()
79 plog->subrulenr = htonl(pktid); in nat64stl_log()
123 aaddr = htonl(TARG_VAL(chain, tablearg, nh4)); in nat64stl_handle_ip6()
203 htonl(TARG_VAL(chain, tablearg, nh4)), 0, &cfg->base, logdata)); in nat64stl_handle_icmp6()
228 dst4 = htonl(args->f_id.dst_ip); in ipfw_nat64stl()
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dbyteorder.h76 return ((((uint64_t)htonl(n)) << 32) + htonl(n >> 32)); in htonll()
/f-stack/dpdk/examples/flow_filtering/
H A Dflow_blocks.c84 ip_spec.hdr.dst_addr = htonl(dest_ip); in generate_ipv4_flow()
86 ip_spec.hdr.src_addr = htonl(src_ip); in generate_ipv4_flow()
/f-stack/tools/ifconfig/
H A Difpfsync.c198 preq.pfsyncr_syncpeer.s_addr != htonl(INADDR_PFSYNC_GROUP)) in pfsync_status()
203 if (preq.pfsyncr_syncpeer.s_addr != htonl(INADDR_PFSYNC_GROUP)) in pfsync_status()
207 preq.pfsyncr_syncpeer.s_addr != htonl(INADDR_PFSYNC_GROUP)) { in pfsync_status()
/f-stack/freebsd/net/
H A Dslcompress.c117 (f) = htonl(ntohl(f) + ((cp[1] << 8) | cp[2])); \
120 (f) = htonl(ntohl(f) + (u_int32_t)*cp++); \
530 th->th_ack = htonl(ntohl(th->th_ack) + i); in sl_uncompress_tcp_core()
531 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp_core()
536 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp_core()
H A Dif_spppfr.c504 reply->psource1 = htonl (my_ip_address); in sppp_fr_arp()
505 reply->psource2 = htonl (my_ip_address) >> 16; in sppp_fr_arp()
507 reply->ptarget1 = htonl (his_ip_address); in sppp_fr_arp()
508 reply->ptarget2 = htonl (his_ip_address) >> 16; in sppp_fr_arp()
/f-stack/freebsd/netpfil/pf/
H A Dif_pflog.c225 hdr.rulenr = htonl(rm->nr); in pflog_packet()
228 hdr.rulenr = htonl(am->nr); in pflog_packet()
229 hdr.subrulenr = htonl(rm->nr); in pflog_packet()
/f-stack/dpdk/examples/bpf/
H A Dt1.c46 iphdr->daddr != htonl(0x1020304)) in entry()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dbyteorder.h114 return ((((uint64_t)htonl(n)) << 32) + htonl(n >> 32));
/f-stack/freebsd/sys/
H A Dparam.h325 __uint32_t htonl(__uint32_t);
335 #define htonl(x) __htonl(x) macro
/f-stack/dpdk/drivers/net/pfe/
H A Dpfe_hal.c256 writel(htonl(address->bottom), base + EMAC_PHY_ADDR_LOW); in gemac_set_laddrN()
257 writel((htonl(address->top) | 0x8808), base + in gemac_set_laddrN()
260 writel(htonl(address->bottom), base + ((entry_index - 1) * 8) in gemac_set_laddrN()
262 writel((htonl(address->top) | 0x8808), base + ((entry_index - in gemac_set_laddrN()
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipip.h49 outip6->ip6_flow = htonl(IP6_VERSION << 28 | ds_ecn << 20); in ipip_outbound()
119 ip6->ip6_flow = htonl(ntohl(ip6->ip6_flow) | in ip6_ecn_setup()
/f-stack/app/nginx-1.16.1/auto/cc/
H A Dicc88 # "cc" clobber ignored, warnings for Linux's htonl()/htons()
102 # "cc" clobber ignored, warnings for Linux's htonl()/htons()
/f-stack/freebsd/libkern/
H A Dinet_aton.c133 addr->s_addr = htonl(val); in inet_aton()
/f-stack/tools/compat/include/arpa/
H A Dinet.h114 extern uint32_t htonl(uint32_t);

1234567