taglinefilesource code
htons649arch/sparc/kernel/sys_sunos.clocal.sin_port = htons (--try_port);
htons915drivers/isdn/isdn_net.creturn htons(ETH_P_802_3);
htons919drivers/isdn/isdn_net.creturn htons(ETH_P_802_2);
htons960drivers/isdn/isdn_net.cskb->protocol = htons(ETH_P_IP);
htons971drivers/isdn/isdn_net.cskb->protocol = htons(ETH_P_802_3);
htons1049drivers/isdn/isdn_net.ceth->h_proto = htons(type);
htons1051drivers/isdn/isdn_net.ceth->h_proto = htons(len);
htons1100drivers/isdn/isdn_net.c*((ushort*) skb_push(skb, 2)) = htons(type);
htons1107drivers/isdn/isdn_net.c*((ushort*)&skb->data[2]) = htons(type);
htons1153drivers/isdn/isdn_net.cif(eth->h_proto != htons(ETH_P_IP)) {
htons728drivers/isdn/isdn_ppp.cskb->protocol = htons(ETH_P_IPX);
htons737drivers/isdn/isdn_ppp.cskb->protocol = htons(ETH_P_IP);
htons759drivers/isdn/isdn_ppp.cskb->protocol = htons(ETH_P_IP);
htons152drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
htons171drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
htons215drivers/net/3c509.cphys_addr[i] = htons(id_read_eeprom(i));
htons460drivers/net/3c59x.cphys_addr[i] = htons(inw(ioaddr + 12));
htons2714drivers/net/arcnet.ccase ARC_P_IP:    return htons(ETH_P_IP);
htons2715drivers/net/arcnet.ccase ARC_P_ARP:    return htons(ETH_P_ARP);
htons2716drivers/net/arcnet.ccase ARC_P_RARP:  return htons(ETH_P_RARP);
htons2720drivers/net/arcnet.creturn htons(ETH_P_802_3);
htons2729drivers/net/arcnet.creturn htons(ETH_P_IP);
htons3163drivers/net/arcnet.ccase ARC_P_IP_RFC1051:  return htons(ETH_P_IP);
htons3164drivers/net/arcnet.ccase ARC_P_ARP_RFC1051:  return htons(ETH_P_ARP);
htons3165drivers/net/arcnet.ccase ARC_P_ATALK:   return htons(ETH_P_ATALK); /* untested appletalk */
htons3174drivers/net/arcnet.creturn htons(ETH_P_IP);
htons975drivers/net/de620.cif (!clone && (wrd != htons(0x0080))) /* Valid D-Link ether sequence? */
htons179drivers/net/dlci.cskb->protocol = htons(hdr->PID);
htons185drivers/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)));
htons1098drivers/net/ibmtr.cwritew(htons(MAX_I_FIELD), 
htons1131drivers/net/ibmtr.cwritew(htons(OPEN_PASS_BCON_MAC), 
htons1133drivers/net/ibmtr.cwritew(htons(NUM_RCV_BUF), 
htons1135drivers/net/ibmtr.cwritew(htons(RCV_BUF_LEN), 
htons1137drivers/net/ibmtr.cwritew(htons(DHB_LENGTH), 
htons1187drivers/net/ibmtr.cwritew(htons(0x11), 
htons1228drivers/net/ibmtr.cwritew(htons(ti->current_skb->len-sizeof(struct trh_hdr)+hdr_len),
htons1363drivers/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);
htons867drivers/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))  {
htons469drivers/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));
htons252fs/nfs/nfsroot.crarp_packet_type.type = htons(ETH_P_RARP);
htons262fs/nfs/nfsroot.crarp_packet_type.type = htons(ETH_P_RARP);
htons284fs/nfs/nfsroot.cif (rarp->ar_op != htons(ARPOP_RREPLY)) {
htons290fs/nfs/nfsroot.cif ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) ||
htons292fs/nfs/nfsroot.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
htons518fs/nfs/nfsroot.csa.sin_port = htons(port);
htons538fs/nfs/nfsroot.csa.sin_port = htons(port);
htons723fs/nfs/nfsroot.cxmit_bootp->secs = htons(jiffies / HZ);
htons1451fs/nfs/nfsroot.csin->sin_port = htons(port++);
htons1552fs/nfs/nfsroot.cserver.sin_port = htons(NFS_PMAP_PORT);
htons1592fs/nfs/nfsroot.cserver.sin_port = htons(port);
htons1650fs/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);
htons1244net/appletalk/ddp.cif ( ap == NULL || ap->s_net == htons( ATADDR_ANYNET ))
htons1277net/appletalk/ddp.cif(addr->sat_addr.s_net==htons(ATADDR_ANYNET))
htons1641net/appletalk/ddp.c*((__u16 *)ddp)=htons(*((__u16 *)ddp));    /* Mend the byte order */
htons2039net/appletalk/ddp.cltalk_packet_type.type=htons(ETH_P_LOCALTALK);  
htons2042net/appletalk/ddp.cppptalk_packet_type.type=htons(ETH_P_PPPTALK);
htons2395net/ax25/af_ax25.cax25_packet_type.type = htons(ETH_P_AX25);
htons2398net/ax25/af_ax25.cbpq_packet_type.type  = htons(ETH_P_BPQ);
htons2453net/ax25/af_ax25.cskb->protocol = htons (ETH_P_AX25);
htons504net/ax25/ax25_subr.cskb->protocol = htons(ETH_P_AX25);
htons149net/core/dev.cif(pt->type==htons(ETH_P_ALL))
htons171net/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))
htons1026net/ipv4/arp.cif(arp->ar_pro != htons(ETH_P_IP))
htons1034net/ipv4/arp.cif(arp->ar_pro != htons(ETH_P_IP))
htons1106net/ipv4/arp.cif (arp->ar_op == htons(ARPOP_REQUEST))
htons2224net/ipv4/arp.carp_packet_type.type=htons(ETH_P_ARP);
htons288net/ipv4/icmp.cif(iph->frag_off&htons(IP_OFFSET))
htons418net/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++);
htons151net/ipv4/ip_forward.ciph->check = htons(iph->check);
htons290net/ipv4/ip_forward.cskb2->protocol=htons(ETH_P_IP);
htons385net/ipv4/ip_fragment.ciph->tot_len = htons((iph->ihl * 4) + count);
htons745net/ipv4/ip_fragment.ciph->frag_off = htons((offset >> 3));
htons762net/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))
htons335net/ipv4/ip_masq.cms->mport = htons(masq_port++);
htons567net/ipv4/ip_masq_app.ciph->tot_len = htons(skb_len + diff);
htons108net/ipv4/ip_masq_ftp.chtonl(from), htons(port),
htons169net/ipv4/ip_masq_irc.chtonl(s_addr),htons(s_port),
htons120net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons157net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons359net/ipv4/ip_output.ciph->tot_len = htons(skb->len-(((unsigned char *)iph)-skb->data));
htons372net/ipv4/ip_output.ciph->id      = htons(ip_id_count++);
htons649net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons683net/ipv4/ip_output.ciph->tot_len = htons(length);
htons684net/ipv4/ip_output.ciph->id=htons(ip_id_count++);
htons785net/ipv4/ip_output.cid = htons(ip_id_count++);
htons816net/ipv4/ip_output.cskb->protocol = htons(ETH_P_IP);
htons873net/ipv4/ip_output.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
htons875net/ipv4/ip_output.ciph->frag_off = htons(offset>>3);
htons894net/ipv4/ip_output.cmf = htons(IP_MF);
htons1093net/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)
htons180net/ipv4/raw.ciph->tot_len=htons(fraglen);  /* This is right as you cant frag
htons186net/ipv4/raw.ciph->id = htons(ip_id_count++);
htons847net/ipv4/tcp.cth->window = htons(sk->window);
htons1110net/ipv4/tcp.cskb->ip_hdr->frag_off |= htons(IP_DF);
htons1275net/ipv4/tcp.ct1->window = htons(sk->window);
htons111net/ipv4/tcp_output.cth->window = htons(tcp_select_window(sk));
htons276net/ipv4/tcp_output.ciph->frag_off &= ~htons(IP_DF);
htons282net/ipv4/tcp_output.cth->window = htons(tcp_select_window(sk));
htons382net/ipv4/tcp_output.ciph->id = htons(ip_id_count++);
htons385net/ipv4/tcp_output.ciph->frag_off &= ~htons(IP_DF);
htons634net/ipv4/tcp_output.ct1->window = htons(sk->window=tcp_select_window(sk));
htons963net/ipv4/tcp_output.cnth->window = htons(tcp_select_window(sk));
htons1023net/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;
htons678net/ipx/af_ipx.cskb->protocol = htons(ETH_P_IPX);
htons843net/ipx/af_ipx.ccase IPX_FRAME_ETHERII: return htons(ETH_P_IPX);
htons844net/ipx/af_ipx.ccase IPX_FRAME_8022: return htons(ETH_P_802_2);
htons845net/ipx/af_ipx.ccase IPX_FRAME_TR_8022: return htons(ETH_P_TR_802_2);
htons846net/ipx/af_ipx.ccase IPX_FRAME_SNAP: return htons(ETH_P_SNAP);
htons847net/ipx/af_ipx.ccase IPX_FRAME_8023: return htons(ETH_P_802_3);
htons872net/ipx/af_ipx.cdlink_type = htons(ETH_P_IPX);
htons876net/ipx/af_ipx.cdlink_type = htons(ETH_P_TR_802_2);
htons880net/ipx/af_ipx.cdlink_type = htons(ETH_P_802_2);
htons884net/ipx/af_ipx.cdlink_type = htons(ETH_P_SNAP);
htons888net/ipx/af_ipx.cdlink_type = htons(ETH_P_802_3);
htons976net/ipx/af_ipx.cswitch (htons(dlink_type)) {
htons1219net/ipx/af_ipx.cipx->ipx_pktsize=htons(len+sizeof(ipx_packet));
htons1415net/ipx/af_ipx.chtons(s->protinfo.af_ipx.port));
htons1419net/ipx/af_ipx.chtons(s->protinfo.af_ipx.port));
htons1433net/ipx/af_ipx.chtons(s->protinfo.af_ipx.dest_addr.sock));
htons1977net/ipx/af_ipx.cif(htons(ipx->ipx_pktsize)<sizeof(ipx_packet)) {
htons2259net/ipx/af_ipx.cipx_dix_packet_type.type=htons(ETH_P_IPX);
htons2263net/ipx/af_ipx.cipx_8023_packet_type.type=htons(ETH_P_802_3);
htons64net/netrom/nr_dev.cskb->protocol = htons(ETH_P_IP);