tag | line | file | source code |
htons | 621 | arch/sparc/kernel/sys_sunos.c | local.sin_port = htons (--try_port); |
htons | 139 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
htons | 158 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
htons | 202 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
htons | 452 | drivers/net/3c59x.c | phys_addr[i] = htons(inw(ioaddr + 12)); |
htons | 2855 | drivers/net/arcnet.c | case ARC_P_IP: return htons(ETH_P_IP); |
htons | 2856 | drivers/net/arcnet.c | case ARC_P_ARP: return htons(ETH_P_ARP); |
htons | 2857 | drivers/net/arcnet.c | case ARC_P_RARP: return htons(ETH_P_RARP); |
htons | 2861 | drivers/net/arcnet.c | return htons(ETH_P_802_3); |
htons | 2870 | drivers/net/arcnet.c | return htons(ETH_P_IP); |
htons | 2896 | drivers/net/arcnet.c | case ARC_P_IP_RFC1051: return htons(ETH_P_IP); |
htons | 2897 | drivers/net/arcnet.c | case ARC_P_ARP_RFC1051: return htons(ETH_P_ARP); |
htons | 2898 | drivers/net/arcnet.c | case ARC_P_ATALK: return htons(ETH_P_ATALK); /* untested appletalk */ |
htons | 2907 | drivers/net/arcnet.c | return htons(ETH_P_IP); |
htons | 975 | drivers/net/de620.c | if (!clone && (wrd != htons(0x0080))) /* Valid D-Link ether sequence? */ |
htons | 992 | drivers/net/ibmtr.c | open_sap->max_i_field=htons(MAX_I_FIELD); |
htons | 1019 | drivers/net/ibmtr.c | open_adapter->open_options=htons(OPEN_PASS_BCON_MAC); |
htons | 1020 | drivers/net/ibmtr.c | open_adapter->num_rcv_buf=htons(NUM_RCV_BUF); |
htons | 1021 | drivers/net/ibmtr.c | open_adapter->rcv_buf_len=htons(RCV_BUF_LEN); |
htons | 1022 | drivers/net/ibmtr.c | open_adapter->dhb_length=htons(DHB_LENGTH); |
htons | 1069 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(0x11); |
htons | 1114 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
htons | 569 | drivers/net/pi2.c | skb->protocol=htons(ETH_P_AX25); |
htons | 867 | drivers/net/plip.c | if (eth->h_proto != htons(ETH_P_IP)) { |
htons | 1294 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IP), data, count); |
htons | 1309 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IPX), data, count); |
htons | 3167 | drivers/net/ppp.c | case htons (ETH_P_IPX): |
htons | 3171 | drivers/net/ppp.c | case htons (ETH_P_IP): |
htons | 3256 | drivers/net/ppp.c | case htons (ETH_P_IP): |
htons | 3257 | drivers/net/ppp.c | case htons (ETH_P_IPX): |
htons | 3278 | drivers/net/ppp.c | return (htons (ETH_P_IP)); |
htons | 1825 | drivers/net/pt.c | skb->protocol=htons(ETH_P_AX25); |
htons | 709 | drivers/net/seeq8005.c | outw( htons(length + 4), SEEQ_BUFFER); |
htons | 535 | drivers/net/slhc.c | thp->check = htons(x); |
htons | 567 | drivers/net/slhc.c | thp->urg_ptr = htons(x); |
htons | 574 | drivers/net/slhc.c | thp->window = htons( ntohs(thp->window) + x); |
htons | 594 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + x); |
htons | 596 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + 1); |
htons | 608 | drivers/net/slhc.c | ip->tot_len = htons(len); |
htons | 392 | drivers/net/slip.c | skb->protocol=htons(ETH_P_AX25); |
htons | 394 | drivers/net/slip.c | skb->protocol=htons(ETH_P_IP); |
htons | 545 | drivers/net/slip.c | if (sl->mode & SL_MODE_AX25 && type != htons(ETH_P_AX25)) { |
htons | 235 | drivers/net/tunnel.c | iph->tot_len = htons(skb2->len); |
htons | 469 | drivers/scsi/eata.c | config.len = (ushort) htons((ushort)510); |
htons | 695 | drivers/scsi/eata_pio.c | cppadlen=(htons(gc->cppadlen)+1)/2)) == NULL) |
htons | 132 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, htons(size)); |
htons | 570 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, htons(to_read)); |
htons | 597 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, htons(to_write)); |
htons | 189 | fs/nfs/nfsroot.c | rarp_packet_type.type = htons(ETH_P_RARP); |
htons | 199 | fs/nfs/nfsroot.c | rarp_packet_type.type = htons(ETH_P_RARP); |
htons | 221 | fs/nfs/nfsroot.c | if (rarp->ar_op != htons(ARPOP_RREPLY)) { |
htons | 227 | fs/nfs/nfsroot.c | if ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) || |
htons | 229 | fs/nfs/nfsroot.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
htons | 760 | fs/nfs/nfsroot.c | sin->sin_port = htons(port++); |
htons | 861 | fs/nfs/nfsroot.c | server.sin_port = htons(NFS_PMAP_PORT); |
htons | 901 | fs/nfs/nfsroot.c | server.sin_port = htons(port); |
htons | 959 | fs/nfs/nfsroot.c | server.sin_port = htons(nfs_port); |
htons | 20 | include/asm-alpha/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 25 | include/asm-i386/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 25 | include/asm-mips/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 21 | include/asm-ppc/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 72 | net/802/p8022.c | p8022_packet_type.type=htons(ETH_P_802_2); |
htons | 63 | net/802/psnap.c | psnap_packet_type.type=htons(ETH_P_SNAP); |
htons | 60 | net/802/tr.c | trllc->ethertype=htons(type); |
htons | 77 | net/802/tr.c | if(trllc->ethertype != htons(ETH_P_IP)) { |
htons | 78 | net/802/tr.c | printk("tr_rebuild_header: Don't know how to resolve type %04X addresses ?\n",(unsigned int)htons( trllc->ethertype)); |
htons | 130 | net/802/tr.c | trh->rcf=htons((((sizeof(trh->rcf)) << 8) & TR_RCF_LEN_MASK) |
htons | 147 | net/802/tr.c | trh->rcf^=htons(TR_RCF_DIR_BIT); |
htons | 148 | net/802/tr.c | trh->rcf&=htons(0x1fff); /* Issam Chehab <ichehab@madge1.demon.co.uk> */ |
htons | 155 | net/802/tr.c | trh->rcf=htons((((sizeof(trh->rcf)) << 8) & TR_RCF_LEN_MASK) |
htons | 200 | net/802/tr.c | if (!(trh->rcf & htons(TR_RCF_BROADCAST_MASK))) { |
htons | 127 | net/appletalk/aarp.c | eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); |
htons | 128 | net/appletalk/aarp.c | eah->pa_type = htons(ETH_P_ATALK); |
htons | 131 | net/appletalk/aarp.c | eah->function = htons(AARP_REQUEST); |
htons | 187 | net/appletalk/aarp.c | eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); |
htons | 188 | net/appletalk/aarp.c | eah->pa_type = htons(ETH_P_ATALK); |
htons | 191 | net/appletalk/aarp.c | eah->function = htons(AARP_REPLY); |
htons | 251 | net/appletalk/aarp.c | eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); |
htons | 252 | net/appletalk/aarp.c | eah->pa_type = htons(ETH_P_ATALK); |
htons | 255 | net/appletalk/aarp.c | eah->function = htons(AARP_PROBE); |
htons | 444 | net/appletalk/aarp.c | skb->protocol = htons(ETH_P_ATALK); |
htons | 373 | net/appletalk/ddp.c | atif->address.s_net=htons(probe_net); |
htons | 523 | net/appletalk/ddp.c | atrtr_default.gateway.s_net=htons(0); |
htons | 772 | net/appletalk/ddp.c | if(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) |
htons | 788 | net/appletalk/ddp.c | sa->sat_addr.s_net=htons(ct); |
htons | 943 | net/appletalk/ddp.c | return htons((unsigned short)sum); |
htons | 1191 | net/appletalk/ddp.c | if ( ap == NULL || ap->s_net == htons( ATADDR_ANYNET )) |
htons | 1224 | net/appletalk/ddp.c | if(addr->sat_addr.s_net==htons(ATADDR_ANYNET)) |
htons | 2225 | net/ax25/af_ax25.c | ax25_packet_type.type = htons(ETH_P_AX25); |
htons | 2228 | net/ax25/af_ax25.c | bpq_packet_type.type = htons(ETH_P_BPQ); |
htons | 2284 | net/ax25/af_ax25.c | skb->protocol = htons (ETH_P_AX25); |
htons | 491 | net/ax25/ax25_subr.c | skb->protocol = htons(ETH_P_AX25); |
htons | 147 | net/core/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 169 | net/core/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 100 | net/ethernet/eth.c | eth->h_proto = htons(type); |
htons | 102 | net/ethernet/eth.c | eth->h_proto = htons(len); |
htons | 148 | net/ethernet/eth.c | if(eth->h_proto != htons(ETH_P_IP)) |
htons | 212 | net/ethernet/eth.c | return htons(ETH_P_802_3); |
htons | 217 | net/ethernet/eth.c | return htons(ETH_P_802_2); |
htons | 273 | net/ethernet/eth.c | if(eth->h_proto!=htons(ETH_P_IP)) |
htons | 13 | net/ethernet/pe2.c | skb->protocol = htons (ETH_P_IPX); |
htons | 656 | net/ipv4/arp.c | skb->protocol = htons (ETH_P_IP); |
htons | 665 | net/ipv4/arp.c | arp->ar_hrd = htons(dev->type); |
htons | 668 | net/ipv4/arp.c | arp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP); |
htons | 670 | net/ipv4/arp.c | arp->ar_pro = (dev->type != ARPHRD_AX25) ? htons(ETH_P_IP) : htons(AX25_P_IP); |
htons | 673 | net/ipv4/arp.c | arp->ar_pro = htons(ETH_P_IP); |
htons | 677 | net/ipv4/arp.c | arp->ar_op = htons(type); |
htons | 819 | net/ipv4/arp.c | if(arp->ar_pro != htons(AX25_P_IP)) |
htons | 828 | net/ipv4/arp.c | if(arp->ar_pro != htons(AX25_P_IP)) |
htons | 837 | net/ipv4/arp.c | if(arp->ar_pro != htons(ETH_P_IP)) |
htons | 845 | net/ipv4/arp.c | if(arp->ar_pro != htons(ETH_P_IP)) |
htons | 917 | net/ipv4/arp.c | if (arp->ar_op == htons(ARPOP_REQUEST)) |
htons | 2001 | net/ipv4/arp.c | arp_packet_type.type=htons(ETH_P_ARP); |
htons | 287 | net/ipv4/icmp.c | if(iph->frag_off&htons(IP_OFFSET)) |
htons | 406 | net/ipv4/icmp.c | iph->id = htons(new_mtu); |
htons | 63 | net/ipv4/ip_forward.c | iph->tot_len = htons(skb->len); |
htons | 64 | net/ipv4/ip_forward.c | iph->id = htons(ip_id_count++); |
htons | 148 | net/ipv4/ip_forward.c | iph->check = htons(iph->check); |
htons | 283 | net/ipv4/ip_forward.c | skb2->protocol=htons(ETH_P_IP); |
htons | 397 | net/ipv4/ip_fragment.c | iph->tot_len = htons((iph->ihl * 4) + count); |
htons | 761 | net/ipv4/ip_fragment.c | iph->frag_off = htons((offset >> 3)); |
htons | 778 | net/ipv4/ip_fragment.c | iph->frag_off |= htons(IP_MF); |
htons | 571 | net/ipv4/ip_fw.c | ms->mport = htons(masq_port++); |
htons | 684 | net/ipv4/ip_fw.c | ms->sport = htons(port); /* derived from PORT cmd */ |
htons | 691 | net/ipv4/ip_fw.c | ms->dport = htons(FTP_DPORT_TBD); /* ftp-data */ |
htons | 759 | net/ipv4/ip_fw.c | iph->tot_len = htons(diff+ntohs(iph->tot_len)); |
htons | 776 | net/ipv4/ip_fw.c | iph->tot_len = htons(skb->len + diff); |
htons | 878 | net/ipv4/ip_fw.c | if (portptr[1]==htons(21)) |
htons | 953 | net/ipv4/ip_fw.c | (ms->dport==htons(FTP_DPORT_TBD) || portptr[0]==ms->dport) && |
htons | 961 | net/ipv4/ip_fw.c | if(ms->dport==htons(FTP_DPORT_TBD)) |
htons | 320 | net/ipv4/ip_input.c | if (iph->frag_off & htons(IP_MF)) |
htons | 326 | net/ipv4/ip_input.c | if (iph->frag_off & htons(IP_OFFSET)) |
htons | 120 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 157 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 379 | net/ipv4/ip_output.c | iph->id = htons(ip_id_count++); |
htons | 656 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 690 | net/ipv4/ip_output.c | iph->tot_len = htons(length); |
htons | 691 | net/ipv4/ip_output.c | iph->id=htons(ip_id_count++); |
htons | 792 | net/ipv4/ip_output.c | id = htons(ip_id_count++); |
htons | 823 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 880 | net/ipv4/ip_output.c | iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); |
htons | 882 | net/ipv4/ip_output.c | iph->frag_off = htons(offset>>3); |
htons | 901 | net/ipv4/ip_output.c | mf = htons(IP_MF); |
htons | 1100 | net/ipv4/ip_output.c | ip_packet_type.type=htons(ETH_P_IP); |
htons | 279 | net/ipv4/ipmr.c | skb->ip_hdr->tot_len=htons(skb->len); /* Fix the length */ |
htons | 182 | net/ipv4/rarp.c | rarp_packet_type.type=htons(ETH_P_RARP); |
htons | 218 | net/ipv4/rarp.c | if (rarp->ar_op != htons(ARPOP_RREQUEST)) |
htons | 230 | net/ipv4/rarp.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
htons | 232 | net/ipv4/rarp.c | (rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) |
htons | 180 | net/ipv4/raw.c | iph->tot_len=htons(fraglen); /* This is right as you cant frag |
htons | 186 | net/ipv4/raw.c | iph->id = htons(ip_id_count++); |
htons | 834 | net/ipv4/tcp.c | th->window = htons(sk->window); |
htons | 1139 | net/ipv4/tcp.c | skb->ip_hdr->frag_off |= htons(IP_DF); |
htons | 1274 | net/ipv4/tcp.c | t1->window = htons(sk->window); |
htons | 118 | net/ipv4/tcp_output.c | th->window = htons(tcp_select_window(sk)); |
htons | 283 | net/ipv4/tcp_output.c | iph->frag_off &= ~htons(IP_DF); |
htons | 289 | net/ipv4/tcp_output.c | th->window = htons(tcp_select_window(sk)); |
htons | 389 | net/ipv4/tcp_output.c | iph->id = htons(ip_id_count++); |
htons | 392 | net/ipv4/tcp_output.c | iph->frag_off &= ~htons(IP_DF); |
htons | 650 | net/ipv4/tcp_output.c | t1->window = htons(sk->window=tcp_select_window(sk)); |
htons | 998 | net/ipv4/tcp_output.c | nth->window = htons(tcp_select_window(sk)); |
htons | 1069 | net/ipv4/tcp_output.c | t1->window = htons(tcp_select_window(sk)); |
htons | 313 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
htons | 316 | net/ipv4/udp.c | ufh.other = (htons(ulen) << 16) + IPPROTO_UDP*256; |
htons | 664 | net/ipx/af_ipx.c | skb->protocol = htons(ETH_P_IPX); |
htons | 828 | net/ipx/af_ipx.c | case IPX_FRAME_ETHERII: return htons(ETH_P_IPX); |
htons | 829 | net/ipx/af_ipx.c | case IPX_FRAME_8022: return htons(ETH_P_802_2); |
htons | 830 | net/ipx/af_ipx.c | case IPX_FRAME_SNAP: return htons(ETH_P_SNAP); |
htons | 831 | net/ipx/af_ipx.c | case IPX_FRAME_8023: return htons(ETH_P_802_3); |
htons | 856 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_IPX); |
htons | 860 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_802_2); |
htons | 864 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_SNAP); |
htons | 868 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_802_3); |
htons | 956 | net/ipx/af_ipx.c | switch (htons(dlink_type)) { |
htons | 1197 | net/ipx/af_ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
htons | 1389 | net/ipx/af_ipx.c | htons(s->ipx_port)); |
htons | 1393 | net/ipx/af_ipx.c | htons(s->ipx_port)); |
htons | 1404 | net/ipx/af_ipx.c | htons(s->ipx_dest_addr.sock)); |
htons | 1940 | net/ipx/af_ipx.c | if(htons(ipx->ipx_pktsize)<sizeof(ipx_packet)) { |
htons | 2204 | net/ipx/af_ipx.c | ipx_dix_packet_type.type=htons(ETH_P_IPX); |
htons | 2208 | net/ipx/af_ipx.c | ipx_8023_packet_type.type=htons(ETH_P_802_3); |
htons | 65 | net/netrom/nr_dev.c | skb->protocol = htons(ETH_P_IP); |