/dragonfly/sys/vfs/nfs/ |
H A D | xdr_subs.h | 53 #define txdr_unsigned(v) (htonl((int32_t)(v))) 65 ((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->tv_sec); \ 67 ((struct nfsv2_time *)(t))->nfsv2_usec = htonl((f)->tv_nsec / 1000); \ 79 ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->tv_sec); \ 80 ((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->tv_nsec); \ 88 ((u_int32_t *)(t))[0] = htonl((u_int32_t)((f) >> 32)); \ 89 ((u_int32_t *)(t))[1] = htonl((u_int32_t)((f) & 0xffffffff)); \
|
/dragonfly/stand/lib/ |
H A D | rpc.c | 151 auth->authtype = htonl(RPCAUTH_NULL); in rpc_call() 160 auth->authtype = htonl(RPCAUTH_UNIX); in rpc_call() 166 auth->authtype = htonl(RPCAUTH_NULL); in rpc_call() 174 call->rp_xid = htonl(rpc_xid); in rpc_call() 175 call->rp_direction = htonl(RPC_CALL); in rpc_call() 177 call->rp_prog = htonl(prog); in rpc_call() 178 call->rp_vers = htonl(vers); in rpc_call() 179 call->rp_proc = htonl(proc); in rpc_call() 423 args->prog = htonl(prog); in rpc_getport() 424 args->vers = htonl(vers); in rpc_getport() [all …]
|
H A D | bootparam.c | 147 args->prog = htonl(BOOTPARAM_PROG); in bp_whoami() 148 args->vers = htonl(BOOTPARAM_VERS); in bp_whoami() 149 args->proc = htonl(BOOTPARAM_WHOAMI); in bp_whoami() 150 args->arglen = htonl(sizeof(struct xdr_inaddr)); in bp_whoami() 335 *lenp = htonl(len); in xdr_string_encode() 392 xi->atype = htonl(1); in xdr_inaddr_encode() 401 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() 402 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() 403 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() 404 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() [all …]
|
H A D | nfs.c | 190 args->len = htonl(len); in nfs_getrootfh() 261 args->len = htonl(len); in nfs_lookupfh() 352 args->off = htonl((n_long)off); in nfs_readdata() 355 args->len = htonl((n_long)len); in nfs_readdata() 356 args->xxx = htonl((n_long)0); in nfs_readdata() 434 fa->fa_type = htonl(NFDIR); in nfs_open() 435 fa->fa_mode = htonl(0755); in nfs_open() 436 fa->fa_nlink = htonl(2); in nfs_open() 494 if (newfd->fa.fa_type == htonl(NFLNK)) { in nfs_open() 720 args->cookie = htonl(cookie); in nfs_readdir() [all …]
|
H A D | bootp.c | 116 bp->bp_xid = htonl(d->xid); in bootp() 171 leasetime = htonl(300); in bootp() 200 nmask = htonl(IN_CLASSA_NET); in bootp() 202 nmask = htonl(IN_CLASSB_NET); in bootp() 204 nmask = htonl(IN_CLASSC_NET); in bootp() 293 if (bp->bp_xid != htonl(d->xid)) { in bootprecv()
|
H A D | net.c | 202 return (htonl(val)); in inet_addr() 204 return (htonl(INADDR_NONE)); in inet_addr() 277 return htonl(addr); in ip_convertaddr()
|
/dragonfly/usr.bin/talk/ |
H A D | invite.c | 77 msg.id_num = htonl(-1); /* an impossible id_num */ in invite_remote() 104 msg.id_num = htonl(local_id); in invite_remote() 106 msg.id_num = htonl(remote_id); in invite_remote() 124 msg.id_num = htonl(remote_id + 1); in re_invite() 176 msg.id_num = htonl(remote_id); in send_delete() 182 msg.id_num = htonl(local_id); in send_delete()
|
/dragonfly/sys/netinet/ |
H A D | ip_ecn.c | 114 *outer &= ~htonl(0xff << 20); in ip6_ecn_ingress() 115 *outer |= htonl((u_int32_t)outer8 << 20); in ip6_ecn_ingress() 129 *inner &= ~htonl(0xff << 20); in ip6_ecn_egress() 130 *inner |= htonl((u_int32_t)inner8 << 20); in ip6_ecn_egress()
|
H A D | tcp_sack.c | 942 *lp++ = htonl(tp->reportblk.rblk_start); in tcp_sack_fill_report() 943 *lp++ = htonl(tp->reportblk.rblk_end); in tcp_sack_fill_report() 951 *lp++ = htonl(tp->encloseblk.rblk_start); in tcp_sack_fill_report() 952 *lp++ = htonl(tp->encloseblk.rblk_end); in tcp_sack_fill_report() 967 *lp++ = htonl(q->tqe_th->th_seq); in tcp_sack_fill_report() 968 *lp++ = htonl(TCP_SACK_BLKEND( in tcp_sack_fill_report() 981 *lp++ = htonl(tp->sackhistory[n].rblk_start); in tcp_sack_fill_report() 982 *lp++ = htonl(tp->sackhistory[n].rblk_end); in tcp_sack_fill_report() 992 *olp = htonl(TCPOPT_SACK_ALIGNED | in tcp_sack_fill_report()
|
/dragonfly/usr.bin/gencat/ |
H A D | gencat.c | 524 cat_hdr->__magic = htonl(_NLS_MAGIC); 525 cat_hdr->__nsets = htonl(nsets); 526 cat_hdr->__mem = htonl(msgcat_size - sizeof(struct _nls_cat_hdr)); 528 htonl(nsets * sizeof(struct _nls_set_hdr)); 530 htonl(nsets * sizeof(struct _nls_set_hdr) + 554 msg_hdr->__msgno = htonl(msg->msgId); 555 msg_hdr->__msglen = htonl(msg_len); 556 msg_hdr->__offset = htonl(msg_offset); 566 set_hdr->__setno = htonl(set->setId); 567 set_hdr->__nmsgs = htonl(nmsgs); [all …]
|
/dragonfly/sys/dev/misc/dcons/ |
H A D | dcons.c | 147 buf->osize[port] = htonl(osize); in dcons_init_port() 148 buf->isize[port] = htonl(size - osize); in dcons_init_port() 149 buf->ooffset[port] = htonl(offset); in dcons_init_port() 150 buf->ioffset[port] = htonl(offset + osize); in dcons_init_port() 163 if (buf->version != htonl(DCONS_VERSION)) in dcons_load_buffer() 205 buf->version = htonl(DCONS_VERSION); in dcons_init()
|
/dragonfly/libexec/talkd/ |
H A D | process.c | 67 rp->id_num = htonl(0); in process_request() 106 rp->id_num = htonl(ptr->id_num); in process_request() 115 rp->id_num = htonl(ptr->id_num); in process_request() 167 rp->id_num = htonl(ptr->id_num); in do_announce() 171 rp->id_num = htonl(ptr->id_num); in do_announce()
|
/dragonfly/games/hunt/hunt/ |
H A D | connect.c | 65 uid = htonl(getuid()); in do_connect() 66 enter_status = htonl(enter_status); in do_connect() 67 mode = htonl(mode); in do_connect()
|
/dragonfly/usr.sbin/dntpd/ |
H A D | ntpreq.c | 64 fixed->int_partl = htonl(fixed->int_partl); in l_fixedpt_hton() 65 fixed->fractionl = htonl(fixed->fractionl); in l_fixedpt_hton() 84 msg->refid = htonl(msg->refid); in ntp_hton() 91 msg->keyid = htonl(msg->keyid); in ntp_hton()
|
/dragonfly/usr.bin/locate/locate/ |
H A D | util.c | 237 MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i)); in getwm() 261 MAXPATHLEN, abs(word) < abs(htonl(word)) ? word : in getwf() 262 htonl(word)); in getwf()
|
/dragonfly/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 164 htonl(ptr[0]), htonl(ptr[1]), in dvrecv() 165 htonl(ptr[2]), htonl(ptr[3])); in dvrecv() 311 htonl(hdr[0]), htonl(hdr[1]), htonl(hdr[2])); in dvsend()
|
/dragonfly/usr.sbin/rwhod/ |
H A D | rwhod.c | 463 htonl(_time_to_time32(ut->ut_tv.tv_sec)); in send_host_information() 476 we->we_idle = htonl(now - stb.st_atime); in send_host_information() 480 mywd.wd_loadav[i] = htonl((u_long)(avenrun[i] * 100)); in send_host_information() 482 mywd.wd_sendtime = htonl(time(0)); in send_host_information() 519 mywd.wd_boottime = htonl(time(NULL) - uts.tv_sec); in getboottime() 570 multicast_addr.sin_addr.s_addr = htonl(INADDR_WHOD_GROUP); in configure() 578 mreq.imr_multiaddr.s_addr = htonl(INADDR_WHOD_GROUP); in configure() 579 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in configure() 662 mreq.imr_multiaddr.s_addr = htonl(INADDR_WHOD_GROUP); in configure()
|
/dragonfly/usr.sbin/mtest/ |
H A D | mtest.c | 69 imr.imr_multiaddr.s_addr = htonl(imr.imr_multiaddr.s_addr); in main() 71 imr.imr_interface.s_addr = htonl(imr.imr_interface.s_addr); in main() 90 imr.imr_multiaddr.s_addr = htonl(imr.imr_multiaddr.s_addr); in main() 92 imr.imr_interface.s_addr = htonl(imr.imr_interface.s_addr); in main()
|
/dragonfly/sbin/routed/ |
H A D | output.c | 169 in.sin_addr.s_addr = htonl(INADDR_RIP_GROUP); in output() 270 na->au.a_md5.md5_seqno = htonl(clk.tv_sec); in clr_ws_buf() 350 v1_mask = ripv1_mask_host(htonl(dst_h), in supply_out() 386 addrname(htonl(dst_h), mask, in supply_out() 402 wb->n->n_dst = htonl(dst_h); in supply_out() 409 wb->n->n_metric = htonl(wb->n->n_metric); in supply_out() 423 wb->n->n_mask = htonl(mask); in supply_out() 770 v12buf.n->n_dst = htonl(RIP_DEFAULT); in supply() 771 v12buf.n->n_metric = htonl(def_metric); in supply() 906 buf.rip_nets[0].n_metric = htonl(HOPCNT_INFINITY); in rip_query()
|
/dragonfly/usr.sbin/rrenumd/ |
H A D | parser.y | 446 rpu->rpu_vltime = htonl(DEF_VLTIME); 447 rpu->rpu_pltime = htonl(DEF_PLTIME); 521 $$ = htonl(DEF_VLTIME); 525 $$ = htonl($2); 532 $$ = htonl(DEF_PLTIME); 536 $$ = htonl($2);
|
/dragonfly/sys/netgraph7/netflow/ |
H A D | netflow.c | 595 header->sys_uptime = htonl(MILLIUPTIME(time_uptime)); in export_send() 597 header->unix_secs = htonl(ts.tv_sec); in export_send() 598 header->unix_nsecs = htonl(ts.tv_nsec); in export_send() 602 header->flow_seq = htonl(atomic_fetchadd_32(&priv->flow_seq, in export_send() 636 rec->packets = htonl(fle->f.packets); in export_add() 637 rec->octets = htonl(fle->f.bytes); in export_add() 638 rec->first = htonl(MILLIUPTIME(fle->f.first)); in export_add() 639 rec->last = htonl(MILLIUPTIME(fle->f.last)); in export_add()
|
/dragonfly/sys/dev/disk/sbp/ |
H A D | sbp.c | 887 fp->mode.wreqq.data = htonl(0xf); in sbp_reset_start() 1078 fp->mode.wreqq.data = htonl(0xf); in sbp_agent_reset() 1215 fp->mode.wreqq.data = htonl(0xf); 1320 ocb->orb[2] = htonl(nid << 16); in sbp_mgm_orb() 1324 ocb->orb[4] |= htonl(ORB_EXV); in sbp_mgm_orb() 1325 ocb->orb[5] = htonl(SBP_LOGIN_SIZE); in sbp_mgm_orb() 1329 ocb->orb[0] = htonl((0 << 16) | 0); in sbp_mgm_orb() 2317 ocb->orb[0] = htonl(1 << 31); in sbp_action1() 2325 ocb->orb[4] |= htonl(ORB_CMD_IN); in sbp_action1() 2522 ocb->orb[3] = htonl(s->ds_addr); in sbp_execute_ocb() [all …]
|
/dragonfly/sys/dev/raid/dpt/ |
H A D | dpt_scsi.c | 362 next_ccb->sg_busaddr = htonl(physaddr); in dptallocccbs() 363 next_ccb->eata_ccb.cp_dataDMA = htonl(physaddr); in dptallocccbs() 366 htonl(dptccbvtop(dpt, next_ccb) in dptallocccbs() 496 cp->cp_datalen = htonl(size); in dpt_get_conf() 618 cp->cp_datalen = htonl(512); in dpt_detect_cache() 732 sg->seg_len = htonl(dm_segs->ds_len); in dptexecuteccb() 733 sg->seg_addr = htonl(dm_segs->ds_addr); in dptexecuteccb() 742 htonl(nseg * sizeof(dpt_sg_t)); in dptexecuteccb() 1794 ccb->cp_reqDMA = htonl(vtophys(&ccb->cp_reqDMA)); 1903 cp->cp_statDMA = htonl(vtophys(&cp->cp_statDMA)); [all …]
|
/dragonfly/sbin/dhclient/ |
H A D | convert.c | 88 u_int32_t tmp = htonl(val); in putULong() 96 int32_t tmp = htonl(val); in putLong()
|
/dragonfly/sys/net/ppp_layer/ |
H A D | slcompress.c | 117 (f) = htonl(ntohl(f) + ((cp[1] << 8) | cp[2])); \ 120 (f) = htonl(ntohl(f) + (u_int32_t)*cp++); \ 535 th->th_ack = htonl(ntohl(th->th_ack) + i); in sl_uncompress_tcp_core() 536 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp_core() 541 th->th_seq = htonl(ntohl(th->th_seq) + in sl_uncompress_tcp_core()
|