taglinefilesource code
htons664arch/sparc/kernel/sys_sunos.clocal.sin_port = htons (--try_port);
htons948drivers/isdn/isdn_net.creturn htons(ETH_P_802_3);
htons952drivers/isdn/isdn_net.creturn htons(ETH_P_802_2);
htons997drivers/isdn/isdn_net.cskb->protocol = htons(ETH_P_IP);
htons1008drivers/isdn/isdn_net.cskb->protocol = htons(ETH_P_802_3);
htons1086drivers/isdn/isdn_net.ceth->h_proto = htons(type);
htons1088drivers/isdn/isdn_net.ceth->h_proto = htons(len);
htons1137drivers/isdn/isdn_net.c*((ushort*) skb_push(skb, 2)) = htons(type);
htons1142drivers/isdn/isdn_net.c*((ushort*) skb_push(skb, 2)) = htons(0x0103);
htons1149drivers/isdn/isdn_net.c*((ushort*)&skb->data[2]) = htons(type);
htons1195drivers/isdn/isdn_net.cif(eth->h_proto != htons(ETH_P_IP)) {
htons737drivers/isdn/isdn_ppp.cskb->protocol = htons(ETH_P_IPX);
htons746drivers/isdn/isdn_ppp.cskb->protocol = htons(ETH_P_IP);
htons768drivers/isdn/isdn_ppp.cskb->protocol = htons(ETH_P_IP);
htons160drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
htons179drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
htons238drivers/net/3c509.cphys_addr[i] = htons(id_read_eeprom(i));
htons460drivers/net/3c59x.cphys_addr[i] = htons(inw(ioaddr + 12));
htons2722drivers/net/arcnet.ccase ARC_P_IP:    return htons(ETH_P_IP);
htons2723drivers/net/arcnet.ccase ARC_P_ARP:    return htons(ETH_P_ARP);
htons2724drivers/net/arcnet.ccase ARC_P_RARP:  return htons(ETH_P_RARP);
htons2728drivers/net/arcnet.creturn htons(ETH_P_802_3);
htons2737drivers/net/arcnet.creturn htons(ETH_P_IP);
htons3171drivers/net/arcnet.ccase ARC_P_IP_RFC1051:  return htons(ETH_P_IP);
htons3172drivers/net/arcnet.ccase ARC_P_ARP_RFC1051:  return htons(ETH_P_ARP);
htons3173drivers/net/arcnet.ccase ARC_P_ATALK:   return htons(ETH_P_ATALK); /* untested appletalk */
htons3182drivers/net/arcnet.creturn htons(ETH_P_IP);
htons975drivers/net/de620.cif (!clone && (wrd != htons(0x0080))) /* Valid D-Link ether sequence? */
htons195drivers/net/dlci.cskb->protocol = htons(hdr->PID);
htons201drivers/net/dlci.cskb->protocol = htons(ETH_P_IP);
htons322drivers/net/fmv18x.chtons(inw(ioaddr + TX_STATUS)),
htons326drivers/net/fmv18x.cdev->name, htons(inw(ioaddr + 0)),
htons327drivers/net/fmv18x.chtons(inw(ioaddr + 2)), htons(inw(ioaddr + 4)),
htons328drivers/net/fmv18x.chtons(inw(ioaddr + 6)), htons(inw(ioaddr + 8)),
htons329drivers/net/fmv18x.chtons(inw(ioaddr +10)), htons(inw(ioaddr +12)),
htons330drivers/net/fmv18x.chtons(inw(ioaddr +14)));
htons332drivers/net/fmv18x.chtons(inw(ioaddr+FJ_STATUS0)),
htons333drivers/net/fmv18x.chtons(inw(ioaddr+FJ_CONFIG0)));
htons1129drivers/net/ibmtr.cwritew(htons(MAX_I_FIELD), 
htons1162drivers/net/ibmtr.cwritew(htons(OPEN_PASS_BCON_MAC), 
htons1164drivers/net/ibmtr.cwritew(htons(NUM_RCV_BUF), 
htons1166drivers/net/ibmtr.cwritew(htons(RCV_BUF_LEN), 
htons1168drivers/net/ibmtr.cwritew(htons(DHB_LENGTH), 
htons1218drivers/net/ibmtr.cwritew(htons(0x11), 
htons1259drivers/net/ibmtr.cwritew(htons(ti->current_skb->len-sizeof(struct trh_hdr)+hdr_len),
htons1394drivers/net/ibmtr.clocal_llc->ethertype = htons(ETH_P_TR_802_2);
htons286drivers/net/new_tunnel.ciph->tot_len    =  htons(skb->len);
htons287drivers/net/new_tunnel.ciph->id      =  htons(ip_id_count++);  /* Race condition here? */
htons290drivers/net/new_tunnel.cskb->protocol    =  htons(ETH_P_IP);
htons569drivers/net/pi2.cskb->protocol=htons(ETH_P_AX25);
htons869drivers/net/plip.cif (eth->h_proto != htons(ETH_P_IP)) {
htons1225drivers/net/ppp.creturn ppp_rcv_rx (ppp, htons (ETH_P_IP), data, count);
htons1237drivers/net/ppp.creturn ppp_rcv_rx (ppp, htons (ETH_P_IPX), data, count);
htons1825drivers/net/pt.cskb->protocol=htons(ETH_P_AX25);
htons709drivers/net/seeq8005.coutw( htons(length + 4), SEEQ_BUFFER);
htons535drivers/net/slhc.cthp->check = htons(x);
htons567drivers/net/slhc.cthp->urg_ptr = htons(x);
htons574drivers/net/slhc.cthp->window = htons( ntohs(thp->window) + x);
htons594drivers/net/slhc.cip->id = htons (ntohs (ip->id) + x);
htons596drivers/net/slhc.cip->id = htons (ntohs (ip->id) + 1);
htons608drivers/net/slhc.cip->tot_len = htons(len);
htons393drivers/net/slip.cskb->protocol=htons(ETH_P_AX25);
htons395drivers/net/slip.cskb->protocol=htons(ETH_P_IP);
htons545drivers/net/slip.cif (sl->mode & SL_MODE_AX25 && type != htons(ETH_P_AX25))  {
htons753drivers/net/strip.cskb->protocol = htons(ETH_P_IP);
htons929drivers/net/wic.cif (eth->h_proto != htons(ETH_P_IP)) {
htons472drivers/scsi/eata.cconfig.len = (ushort) htons((ushort)510);
htons695drivers/scsi/eata_pio.ccppadlen=(htons(gc->cppadlen)+1)/2)) == NULL)
htons139fs/ncpfs/ncplib_kernel.cncp_add_word(server, htons(size));
htons570fs/ncpfs/ncplib_kernel.cncp_add_word(server, htons(to_read));
htons597fs/ncpfs/ncplib_kernel.cncp_add_word(server, htons(to_write));
htons268fs/nfs/nfsroot.crarp_packet_type.type = htons(ETH_P_RARP);
htons278fs/nfs/nfsroot.crarp_packet_type.type = htons(ETH_P_RARP);
htons300fs/nfs/nfsroot.cif (rarp->ar_op != htons(ARPOP_RREPLY)) {
htons306fs/nfs/nfsroot.cif ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) ||
htons308fs/nfs/nfsroot.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
htons534fs/nfs/nfsroot.csa.sin_port = htons(port);
htons554fs/nfs/nfsroot.csa.sin_port = htons(port);
htons739fs/nfs/nfsroot.cxmit_bootp->secs = htons(jiffies / HZ);
htons1478fs/nfs/nfsroot.csin->sin_port = htons(port++);
htons1579fs/nfs/nfsroot.cserver.sin_port = htons(NFS_PMAP_PORT);
htons1619fs/nfs/nfsroot.cserver.sin_port = htons(port);
htons1677fs/nfs/nfsroot.cserver.sin_port = htons(nfs_port);
htons20include/asm-alpha/byteorder.hextern unsigned short int  htons(unsigned short int);
htons25include/asm-i386/byteorder.hextern unsigned short int  htons(unsigned short int);
htons25include/asm-mips/byteorder.hextern unsigned short int  htons(unsigned short int);
htons21include/asm-ppc/byteorder.hextern unsigned short int  htons(unsigned short int);
htons81net/802/p8022.cp8022_packet_type.type=htons(ETH_P_802_2);
htons88net/802/p8022tr.cp8022tr_packet_type.type=htons(ETH_P_TR_802_2);
htons64net/802/psnap.cpsnap_packet_type.type=htons(ETH_P_SNAP);
htons60net/802/tr.ctrllc->ethertype=htons(type);
htons77net/802/tr.cif(trllc->ethertype != htons(ETH_P_IP)) {
htons78net/802/tr.cprintk("tr_rebuild_header: Don't know how to resolve type %04X addresses ?\n",(unsigned int)htons(  trllc->ethertype));
htons130net/802/tr.ctrh->rcf=htons((((sizeof(trh->rcf)) << 8) & TR_RCF_LEN_MASK)  
htons147net/802/tr.ctrh->rcf^=htons(TR_RCF_DIR_BIT);  
htons148net/802/tr.ctrh->rcf&=htons(0x1fff);  /* Issam Chehab <ichehab@madge1.demon.co.uk> */
htons155net/802/tr.ctrh->rcf=htons((((sizeof(trh->rcf)) << 8) & TR_RCF_LEN_MASK)  
htons200net/802/tr.cif (!(trh->rcf & htons(TR_RCF_BROADCAST_MASK))) {
htons125net/appletalk/aarp.ceah->hw_type  =  htons(AARP_HW_TYPE_ETHERNET);
htons126net/appletalk/aarp.ceah->pa_type  =  htons(ETH_P_ATALK);
htons129net/appletalk/aarp.ceah->function  =  htons(AARP_REQUEST);
htons185net/appletalk/aarp.ceah->hw_type  =  htons(AARP_HW_TYPE_ETHERNET);
htons186net/appletalk/aarp.ceah->pa_type  =  htons(ETH_P_ATALK);
htons189net/appletalk/aarp.ceah->function  =  htons(AARP_REPLY);
htons249net/appletalk/aarp.ceah->hw_type  =  htons(AARP_HW_TYPE_ETHERNET);
htons250net/appletalk/aarp.ceah->pa_type  =  htons(ETH_P_ATALK);
htons253net/appletalk/aarp.ceah->function  =  htons(AARP_PROBE);
htons456net/appletalk/aarp.c*((__u16 *)skb->data)=htons(skb->len);
htons486net/appletalk/aarp.cskb->protocol = htons(ETH_P_ATALK);
htons379net/appletalk/ddp.catif->address.s_net=htons(sa->sat_addr.s_net);
htons417net/appletalk/ddp.catif->address.s_net=htons(probe_net);
htons567net/appletalk/ddp.catrtr_default.gateway.s_net=htons(0);
htons822net/appletalk/ddp.cif(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) 
htons838net/appletalk/ddp.csa->sat_addr.s_net=htons(ct);
htons993net/appletalk/ddp.creturn htons((unsigned short)sum);
htons1223net/appletalk/ddp.cif ( ap == NULL || ap->s_net == htons( ATADDR_ANYNET ))
htons1256net/appletalk/ddp.cif(addr->sat_addr.s_net==htons(ATADDR_ANYNET))
htons1620net/appletalk/ddp.c*((__u16 *)ddp)=htons(*((__u16 *)ddp));    /* Mend the byte order */
htons2018net/appletalk/ddp.cltalk_packet_type.type=htons(ETH_P_LOCALTALK);  
htons2021net/appletalk/ddp.cppptalk_packet_type.type=htons(ETH_P_PPPTALK);
htons2389net/ax25/af_ax25.cax25_packet_type.type = htons(ETH_P_AX25);
htons2392net/ax25/af_ax25.cbpq_packet_type.type  = htons(ETH_P_BPQ);
htons2446net/ax25/af_ax25.cskb->protocol = htons (ETH_P_AX25);
htons542net/ax25/ax25_subr.cskb->protocol = htons(ETH_P_AX25);
htons150net/core/dev.cif(pt->type==htons(ETH_P_ALL))
htons172net/core/dev.cif(pt->type==htons(ETH_P_ALL))
htons101net/ethernet/eth.ceth->h_proto = htons(type);
htons103net/ethernet/eth.ceth->h_proto = htons(len);
htons149net/ethernet/eth.cif(eth->h_proto != htons(ETH_P_IP)) 
htons213net/ethernet/eth.creturn htons(ETH_P_802_3);
htons218net/ethernet/eth.creturn htons(ETH_P_802_2);
htons277net/ethernet/eth.cif(eth->h_proto!=htons(ETH_P_IP))
htons13net/ethernet/pe2.cskb->protocol = htons (ETH_P_IPX);
htons845net/ipv4/arp.cskb->protocol = htons (ETH_P_IP);
htons854net/ipv4/arp.carp->ar_hrd = htons(dev->type);
htons857net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
htons859net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25) ? htons(ETH_P_IP) : htons(AX25_P_IP);
htons862net/ipv4/arp.carp->ar_pro = htons(ETH_P_IP);
htons866net/ipv4/arp.carp->ar_op = htons(type);
htons1008net/ipv4/arp.cif(arp->ar_pro != htons(AX25_P_IP))
htons1017net/ipv4/arp.cif(arp->ar_pro != htons(AX25_P_IP))
htons1027net/ipv4/arp.cif(arp->ar_pro != htons(ETH_P_IP))
htons1035net/ipv4/arp.cif(arp->ar_pro != htons(ETH_P_IP))
htons1107net/ipv4/arp.cif (arp->ar_op == htons(ARPOP_REQUEST))
htons2225net/ipv4/arp.carp_packet_type.type=htons(ETH_P_ARP);
htons540net/ipv4/icmp.cif(iph->frag_off&htons(IP_OFFSET))
htons679net/ipv4/icmp.ciph->id = htons(new_mtu);
htons66net/ipv4/ip_forward.ciph->tot_len  =  htons(skb->len);
htons67net/ipv4/ip_forward.ciph->id    =  htons(ip_id_count++);
htons153net/ipv4/ip_forward.ciph->check = htons(iph->check);
htons292net/ipv4/ip_forward.cskb2->protocol=htons(ETH_P_IP);
htons384net/ipv4/ip_fragment.ciph->tot_len = htons((iph->ihl * 4) + count);
htons744net/ipv4/ip_fragment.ciph->frag_off = htons((offset >> 3));
htons761net/ipv4/ip_fragment.ciph->frag_off |= htons(IP_MF);
htons323net/ipv4/ip_input.cif (iph->frag_off & htons(IP_MF))
htons329net/ipv4/ip_input.cif (iph->frag_off & htons(IP_OFFSET))
htons365net/ipv4/ip_masq.cms->mport = htons(masq_port++);
htons582net/ipv4/ip_masq_app.ciph->tot_len = htons(skb_len + diff);
htons108net/ipv4/ip_masq_ftp.cprintk("protocol %d %lX:%X %X:%X\n", iph->protocol, htonl(from), htons(port), iph->daddr, 0);
htons112net/ipv4/ip_masq_ftp.chtonl(from), htons(port),
htons120net/ipv4/ip_masq_ftp.chtonl(from), htons(port),
htons169net/ipv4/ip_masq_irc.chtonl(s_addr),htons(s_port),
htons125net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons162net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons364net/ipv4/ip_output.ciph->tot_len = htons(skb->len-(((unsigned char *)iph)-skb->data));
htons371net/ipv4/ip_output.ciph->id      = htons(ip_id_count++);
htons660net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons694net/ipv4/ip_output.ciph->tot_len = htons(length);
htons695net/ipv4/ip_output.ciph->id=htons(ip_id_count++);
htons796net/ipv4/ip_output.cid = htons(ip_id_count++);
htons827net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons884net/ipv4/ip_output.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
htons886net/ipv4/ip_output.ciph->frag_off = htons(offset>>3);
htons905net/ipv4/ip_output.cmf = htons(IP_MF);
htons1104net/ipv4/ip_output.cip_packet_type.type=htons(ETH_P_IP);
htons279net/ipv4/ipmr.cskb->ip_hdr->tot_len=htons(skb->len);      /* Fix the length */
htons183net/ipv4/rarp.crarp_packet_type.type=htons(ETH_P_RARP);
htons219net/ipv4/rarp.cif (rarp->ar_op != htons(ARPOP_RREQUEST))
htons231net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
htons233net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
htons201net/ipv4/raw.ciph->tot_len=htons(fraglen);  /* This is right as you cant frag
htons207net/ipv4/raw.ciph->id = htons(ip_id_count++);
htons831net/ipv4/tcp.cth->window = htons(tcp_select_window(sk));
htons1087net/ipv4/tcp.cskb->ip_hdr->frag_off |= htons(IP_DF);
htons124net/ipv4/tcp_output.cth->window = htons(tcp_select_window(sk));
htons285net/ipv4/tcp_output.ciph->frag_off &= ~htons(IP_DF);
htons291net/ipv4/tcp_output.cth->window = htons(tcp_select_window(sk));
htons389net/ipv4/tcp_output.ciph->id = htons(ip_id_count++);
htons392net/ipv4/tcp_output.ciph->frag_off &= ~htons(IP_DF);
htons640net/ipv4/tcp_output.ct1->window = htons(tcp_select_window(sk));
htons868net/ipv4/tcp_output.ct1->window  = htons(tcp_select_window(sk));
htons987net/ipv4/tcp_output.cnth->window = htons(tcp_select_window(sk));
htons1047net/ipv4/tcp_output.ct1->window = htons(tcp_select_window(sk));
htons311net/ipv4/udp.cufh.uh.len = htons(ulen);
htons314net/ipv4/udp.cufh.other = (htons(ulen) << 16) + IPPROTO_UDP*256;
htons679net/ipx/af_ipx.cskb->protocol = htons(ETH_P_IPX);
htons844net/ipx/af_ipx.ccase IPX_FRAME_ETHERII: return htons(ETH_P_IPX);
htons845net/ipx/af_ipx.ccase IPX_FRAME_8022: return htons(ETH_P_802_2);
htons846net/ipx/af_ipx.ccase IPX_FRAME_TR_8022: return htons(ETH_P_TR_802_2);
htons847net/ipx/af_ipx.ccase IPX_FRAME_SNAP: return htons(ETH_P_SNAP);
htons848net/ipx/af_ipx.ccase IPX_FRAME_8023: return htons(ETH_P_802_3);
htons873net/ipx/af_ipx.cdlink_type = htons(ETH_P_IPX);
htons877net/ipx/af_ipx.cdlink_type = htons(ETH_P_TR_802_2);
htons881net/ipx/af_ipx.cdlink_type = htons(ETH_P_802_2);
htons885net/ipx/af_ipx.cdlink_type = htons(ETH_P_SNAP);
htons889net/ipx/af_ipx.cdlink_type = htons(ETH_P_802_3);
htons982net/ipx/af_ipx.cswitch (htons(dlink_type)) {
htons1219net/ipx/af_ipx.cif(packet->ipx_pktsize&htons(1))
htons1283net/ipx/af_ipx.cipx->ipx_pktsize=htons(len+sizeof(ipx_packet));
htons1488net/ipx/af_ipx.chtons(s->protinfo.af_ipx.port));
htons1492net/ipx/af_ipx.chtons(s->protinfo.af_ipx.port));
htons1506net/ipx/af_ipx.chtons(s->protinfo.af_ipx.dest_addr.sock));
htons2322net/ipx/af_ipx.cipx_dix_packet_type.type=htons(ETH_P_IPX);
htons2326net/ipx/af_ipx.cipx_8023_packet_type.type=htons(ETH_P_802_3);
htons66net/netrom/nr_dev.cskb->protocol = htons(ETH_P_IP);