taglinefilesource code
htons621arch/sparc/kernel/sys_sunos.clocal.sin_port = htons (--try_port);
htons139drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
htons158drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
htons202drivers/net/3c509.cphys_addr[i] = htons(id_read_eeprom(i));
htons452drivers/net/3c59x.cphys_addr[i] = htons(inw(ioaddr + 12));
htons2855drivers/net/arcnet.ccase ARC_P_IP:    return htons(ETH_P_IP);
htons2856drivers/net/arcnet.ccase ARC_P_ARP:    return htons(ETH_P_ARP);
htons2857drivers/net/arcnet.ccase ARC_P_RARP:  return htons(ETH_P_RARP);
htons2861drivers/net/arcnet.creturn htons(ETH_P_802_3);
htons2870drivers/net/arcnet.creturn htons(ETH_P_IP);
htons2896drivers/net/arcnet.ccase ARC_P_IP_RFC1051:  return htons(ETH_P_IP);
htons2897drivers/net/arcnet.ccase ARC_P_ARP_RFC1051:  return htons(ETH_P_ARP);
htons2898drivers/net/arcnet.ccase ARC_P_ATALK:   return htons(ETH_P_ATALK); /* untested appletalk */
htons2907drivers/net/arcnet.creturn htons(ETH_P_IP);
htons975drivers/net/de620.cif (!clone && (wrd != htons(0x0080))) /* Valid D-Link ether sequence? */
htons992drivers/net/ibmtr.copen_sap->max_i_field=htons(MAX_I_FIELD);
htons1019drivers/net/ibmtr.copen_adapter->open_options=htons(OPEN_PASS_BCON_MAC);
htons1020drivers/net/ibmtr.copen_adapter->num_rcv_buf=htons(NUM_RCV_BUF);
htons1021drivers/net/ibmtr.copen_adapter->rcv_buf_len=htons(RCV_BUF_LEN);
htons1022drivers/net/ibmtr.copen_adapter->dhb_length=htons(DHB_LENGTH);
htons1069drivers/net/ibmtr.cxmit_resp->frame_length=htons(0x11);
htons1114drivers/net/ibmtr.cxmit_resp->frame_length=htons(ti->current_skb->len
htons569drivers/net/pi2.cskb->protocol=htons(ETH_P_AX25);
htons867drivers/net/plip.cif (eth->h_proto != htons(ETH_P_IP)) {
htons1294drivers/net/ppp.creturn ppp_rcv_rx (ppp, htons (ETH_P_IP), data, count);
htons1309drivers/net/ppp.creturn ppp_rcv_rx (ppp, htons (ETH_P_IPX), data, count);
htons3167drivers/net/ppp.ccase htons (ETH_P_IPX):
htons3171drivers/net/ppp.ccase htons (ETH_P_IP):
htons3256drivers/net/ppp.ccase htons (ETH_P_IP):
htons3257drivers/net/ppp.ccase htons (ETH_P_IPX):
htons3278drivers/net/ppp.creturn (htons (ETH_P_IP));
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);
htons392drivers/net/slip.cskb->protocol=htons(ETH_P_AX25);
htons394drivers/net/slip.cskb->protocol=htons(ETH_P_IP);
htons545drivers/net/slip.cif (sl->mode & SL_MODE_AX25 && type != htons(ETH_P_AX25))  {
htons235drivers/net/tunnel.ciph->tot_len = htons(skb2->len);
htons469drivers/scsi/eata.cconfig.len = (ushort) htons((ushort)510);
htons695drivers/scsi/eata_pio.ccppadlen=(htons(gc->cppadlen)+1)/2)) == NULL)
htons132fs/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));
htons189fs/nfs/nfsroot.crarp_packet_type.type = htons(ETH_P_RARP);
htons199fs/nfs/nfsroot.crarp_packet_type.type = htons(ETH_P_RARP);
htons221fs/nfs/nfsroot.cif (rarp->ar_op != htons(ARPOP_RREPLY)) {
htons227fs/nfs/nfsroot.cif ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) ||
htons229fs/nfs/nfsroot.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
htons760fs/nfs/nfsroot.csin->sin_port = htons(port++);
htons861fs/nfs/nfsroot.cserver.sin_port = htons(NFS_PMAP_PORT);
htons901fs/nfs/nfsroot.cserver.sin_port = htons(port);
htons959fs/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);
htons72net/802/p8022.cp8022_packet_type.type=htons(ETH_P_802_2);
htons63net/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))) {
htons127net/appletalk/aarp.ceah->hw_type  =  htons(AARP_HW_TYPE_ETHERNET);
htons128net/appletalk/aarp.ceah->pa_type  =  htons(ETH_P_ATALK);
htons131net/appletalk/aarp.ceah->function  =  htons(AARP_REQUEST);
htons187net/appletalk/aarp.ceah->hw_type  =  htons(AARP_HW_TYPE_ETHERNET);
htons188net/appletalk/aarp.ceah->pa_type  =  htons(ETH_P_ATALK);
htons191net/appletalk/aarp.ceah->function  =  htons(AARP_REPLY);
htons251net/appletalk/aarp.ceah->hw_type  =  htons(AARP_HW_TYPE_ETHERNET);
htons252net/appletalk/aarp.ceah->pa_type  =  htons(ETH_P_ATALK);
htons255net/appletalk/aarp.ceah->function  =  htons(AARP_PROBE);
htons444net/appletalk/aarp.cskb->protocol = htons(ETH_P_ATALK);
htons373net/appletalk/ddp.catif->address.s_net=htons(probe_net);
htons523net/appletalk/ddp.catrtr_default.gateway.s_net=htons(0);
htons772net/appletalk/ddp.cif(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) 
htons788net/appletalk/ddp.csa->sat_addr.s_net=htons(ct);
htons943net/appletalk/ddp.creturn htons((unsigned short)sum);
htons1191net/appletalk/ddp.cif ( ap == NULL || ap->s_net == htons( ATADDR_ANYNET ))
htons1224net/appletalk/ddp.cif(addr->sat_addr.s_net==htons(ATADDR_ANYNET))
htons2225net/ax25/af_ax25.cax25_packet_type.type = htons(ETH_P_AX25);
htons2228net/ax25/af_ax25.cbpq_packet_type.type  = htons(ETH_P_BPQ);
htons2284net/ax25/af_ax25.cskb->protocol = htons (ETH_P_AX25);
htons491net/ax25/ax25_subr.cskb->protocol = htons(ETH_P_AX25);
htons147net/core/dev.cif(pt->type==htons(ETH_P_ALL))
htons169net/core/dev.cif(pt->type==htons(ETH_P_ALL))
htons100net/ethernet/eth.ceth->h_proto = htons(type);
htons102net/ethernet/eth.ceth->h_proto = htons(len);
htons148net/ethernet/eth.cif(eth->h_proto != htons(ETH_P_IP)) 
htons212net/ethernet/eth.creturn htons(ETH_P_802_3);
htons217net/ethernet/eth.creturn htons(ETH_P_802_2);
htons273net/ethernet/eth.cif(eth->h_proto!=htons(ETH_P_IP))
htons13net/ethernet/pe2.cskb->protocol = htons (ETH_P_IPX);
htons656net/ipv4/arp.cskb->protocol = htons (ETH_P_IP);
htons665net/ipv4/arp.carp->ar_hrd = htons(dev->type);
htons668net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
htons670net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25) ? htons(ETH_P_IP) : htons(AX25_P_IP);
htons673net/ipv4/arp.carp->ar_pro = htons(ETH_P_IP);
htons677net/ipv4/arp.carp->ar_op = htons(type);
htons819net/ipv4/arp.cif(arp->ar_pro != htons(AX25_P_IP))
htons828net/ipv4/arp.cif(arp->ar_pro != htons(AX25_P_IP))
htons837net/ipv4/arp.cif(arp->ar_pro != htons(ETH_P_IP))
htons845net/ipv4/arp.cif(arp->ar_pro != htons(ETH_P_IP))
htons917net/ipv4/arp.cif (arp->ar_op == htons(ARPOP_REQUEST))
htons2001net/ipv4/arp.carp_packet_type.type=htons(ETH_P_ARP);
htons287net/ipv4/icmp.cif(iph->frag_off&htons(IP_OFFSET))
htons406net/ipv4/icmp.ciph->id = htons(new_mtu);
htons63net/ipv4/ip_forward.ciph->tot_len  =  htons(skb->len);
htons64net/ipv4/ip_forward.ciph->id    =  htons(ip_id_count++);
htons148net/ipv4/ip_forward.ciph->check = htons(iph->check);
htons283net/ipv4/ip_forward.cskb2->protocol=htons(ETH_P_IP);
htons397net/ipv4/ip_fragment.ciph->tot_len = htons((iph->ihl * 4) + count);
htons761net/ipv4/ip_fragment.ciph->frag_off = htons((offset >> 3));
htons778net/ipv4/ip_fragment.ciph->frag_off |= htons(IP_MF);
htons571net/ipv4/ip_fw.cms->mport = htons(masq_port++);
htons684net/ipv4/ip_fw.cms->sport    = htons(port);  /* derived from PORT cmd */
htons691net/ipv4/ip_fw.cms->dport    = htons(FTP_DPORT_TBD);  /* ftp-data */
htons759net/ipv4/ip_fw.ciph->tot_len = htons(diff+ntohs(iph->tot_len));
htons776net/ipv4/ip_fw.ciph->tot_len = htons(skb->len + diff);
htons878net/ipv4/ip_fw.cif (portptr[1]==htons(21)) 
htons953net/ipv4/ip_fw.c(ms->dport==htons(FTP_DPORT_TBD) || portptr[0]==ms->dport) &&
htons961net/ipv4/ip_fw.cif(ms->dport==htons(FTP_DPORT_TBD))
htons320net/ipv4/ip_input.cif (iph->frag_off & htons(IP_MF))
htons326net/ipv4/ip_input.cif (iph->frag_off & htons(IP_OFFSET))
htons120net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons157net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons379net/ipv4/ip_output.ciph->id      = htons(ip_id_count++);
htons656net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons690net/ipv4/ip_output.ciph->tot_len = htons(length);
htons691net/ipv4/ip_output.ciph->id=htons(ip_id_count++);
htons792net/ipv4/ip_output.cid = htons(ip_id_count++);
htons823net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons880net/ipv4/ip_output.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
htons882net/ipv4/ip_output.ciph->frag_off = htons(offset>>3);
htons901net/ipv4/ip_output.cmf = htons(IP_MF);
htons1100net/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 */
htons182net/ipv4/rarp.crarp_packet_type.type=htons(ETH_P_RARP);
htons218net/ipv4/rarp.cif (rarp->ar_op != htons(ARPOP_RREQUEST))
htons230net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
htons232net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
htons180net/ipv4/raw.ciph->tot_len=htons(fraglen);  /* This is right as you cant frag
htons186net/ipv4/raw.ciph->id = htons(ip_id_count++);
htons834net/ipv4/tcp.cth->window = htons(sk->window);
htons1139net/ipv4/tcp.cskb->ip_hdr->frag_off |= htons(IP_DF);
htons1274net/ipv4/tcp.ct1->window = htons(sk->window);
htons118net/ipv4/tcp_output.cth->window = htons(tcp_select_window(sk));
htons283net/ipv4/tcp_output.ciph->frag_off &= ~htons(IP_DF);
htons289net/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);
htons650net/ipv4/tcp_output.ct1->window = htons(sk->window=tcp_select_window(sk));
htons998net/ipv4/tcp_output.cnth->window = htons(tcp_select_window(sk));
htons1069net/ipv4/tcp_output.ct1->window = htons(tcp_select_window(sk));
htons313net/ipv4/udp.cufh.uh.len = htons(ulen);
htons316net/ipv4/udp.cufh.other = (htons(ulen) << 16) + IPPROTO_UDP*256;
htons664net/ipx/af_ipx.cskb->protocol = htons(ETH_P_IPX);
htons828net/ipx/af_ipx.ccase IPX_FRAME_ETHERII: return htons(ETH_P_IPX);
htons829net/ipx/af_ipx.ccase IPX_FRAME_8022: return htons(ETH_P_802_2);
htons830net/ipx/af_ipx.ccase IPX_FRAME_SNAP: return htons(ETH_P_SNAP);
htons831net/ipx/af_ipx.ccase IPX_FRAME_8023: return htons(ETH_P_802_3);
htons856net/ipx/af_ipx.cdlink_type = htons(ETH_P_IPX);
htons860net/ipx/af_ipx.cdlink_type = htons(ETH_P_802_2);
htons864net/ipx/af_ipx.cdlink_type = htons(ETH_P_SNAP);
htons868net/ipx/af_ipx.cdlink_type = htons(ETH_P_802_3);
htons956net/ipx/af_ipx.cswitch (htons(dlink_type)) {
htons1197net/ipx/af_ipx.cipx->ipx_pktsize=htons(len+sizeof(ipx_packet));
htons1389net/ipx/af_ipx.chtons(s->ipx_port));
htons1393net/ipx/af_ipx.chtons(s->ipx_port));
htons1404net/ipx/af_ipx.chtons(s->ipx_dest_addr.sock));
htons1940net/ipx/af_ipx.cif(htons(ipx->ipx_pktsize)<sizeof(ipx_packet)) {
htons2204net/ipx/af_ipx.cipx_dix_packet_type.type=htons(ETH_P_IPX);
htons2208net/ipx/af_ipx.cipx_8023_packet_type.type=htons(ETH_P_802_3);
htons65net/netrom/nr_dev.cskb->protocol = htons(ETH_P_IP);