tag | line | file | source code |
htons | 141 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
htons | 160 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
htons | 196 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
htons | 2369 | drivers/net/arcnet.c | case ARC_P_IP: return htons(ETH_P_IP); |
htons | 2370 | drivers/net/arcnet.c | case ARC_P_ARP: return htons(ETH_P_ARP); |
htons | 2371 | drivers/net/arcnet.c | case ARC_P_RARP: return htons(ETH_P_RARP); |
htons | 2372 | drivers/net/arcnet.c | case ARC_P_IPX: return htons(ETH_P_IPX); |
htons | 2373 | drivers/net/arcnet.c | case ARC_P_ATALK: return htons(ETH_P_ATALK); /* untested appletalk */ |
htons | 2383 | drivers/net/arcnet.c | return htons(ETH_P_IP); |
htons | 943 | drivers/net/de620.c | if (wrd != htons(0x0080)) /* Valid D-Link ether sequence? */ |
htons | 889 | drivers/net/ibmtr.c | open_sap->max_i_field=htons(MAX_I_FIELD); |
htons | 914 | drivers/net/ibmtr.c | open_adapter->open_options=htons(OPEN_PASS_BCON_MAC); |
htons | 915 | drivers/net/ibmtr.c | open_adapter->num_rcv_buf=htons(NUM_RCV_BUF); |
htons | 916 | drivers/net/ibmtr.c | open_adapter->rcv_buf_len=htons(RCV_BUF_LEN); |
htons | 917 | drivers/net/ibmtr.c | open_adapter->dhb_length=htons(DHB_LENGTH); |
htons | 963 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(0x11); |
htons | 1008 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
htons | 570 | drivers/net/pi2.c | skb->protocol=htons(ETH_P_AX25); |
htons | 845 | drivers/net/plip.c | if (eth->h_proto != htons(ETH_P_IP)) { |
htons | 1158 | drivers/net/ppp.c | skb->protocol=htons(ETH_P_IP); |
htons | 711 | 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 | 327 | drivers/net/slip.c | skb->protocol=htons(ETH_P_AX25); |
htons | 329 | drivers/net/slip.c | skb->protocol=htons(ETH_P_IP); |
htons | 478 | drivers/net/slip.c | if (((sl->mode & SL_MODE_AX25) || (sl->mode & SL_MODE_AX25VC)) && type != htons(ETH_P_AX25)) { |
htons | 231 | drivers/net/tunnel.c | iph->tot_len = htons(skb2->len); |
htons | 463 | drivers/scsi/eata.c | config.len = (ushort) htons((ushort)510); |
htons | 702 | drivers/scsi/eata_pio.c | cppadlen=(htons(gc->cppadlen)+1)/2)) == NULL) |
htons | 20 | include/asm-alpha/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 20 | include/asm-i386/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 22 | include/asm-mips/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 15 | include/asm-sparc/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 79 | 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 | 126 | net/appletalk/aarp.c | eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); |
htons | 127 | net/appletalk/aarp.c | eah->pa_type = htons(ETH_P_ATALK); |
htons | 130 | 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 | 349 | net/appletalk/ddp.c | atif->address.s_net=htons(probe_net); |
htons | 500 | net/appletalk/ddp.c | atrtr_default.gateway.s_net=htons(0); |
htons | 744 | net/appletalk/ddp.c | if(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) { |
htons | 757 | net/appletalk/ddp.c | sa->sat_addr.s_net=htons(ct); |
htons | 912 | net/appletalk/ddp.c | return htons((unsigned short)sum); |
htons | 1156 | net/appletalk/ddp.c | if ( ap == NULL || ap->s_net == htons( ATADDR_ANYNET )) |
htons | 1189 | net/appletalk/ddp.c | if(addr->sat_addr.s_net==htons(ATADDR_ANYNET)) |
htons | 1984 | net/ax25/af_ax25.c | ax25_packet_type.type = htons(ETH_P_AX25); |
htons | 1986 | net/ax25/af_ax25.c | bpq_packet_type.type = htons(ETH_P_BPQ); |
htons | 138 | net/core/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 160 | net/core/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 98 | net/ethernet/eth.c | eth->h_proto = htons(type); |
htons | 100 | net/ethernet/eth.c | eth->h_proto = htons(len); |
htons | 146 | net/ethernet/eth.c | if(eth->h_proto != htons(ETH_P_IP)) |
htons | 205 | net/ethernet/eth.c | return htons(ETH_P_802_3); |
htons | 210 | net/ethernet/eth.c | return htons(ETH_P_802_2); |
htons | 247 | net/ethernet/eth.c | if(eth->h_proto!=htons(ETH_P_IP)) |
htons | 349 | net/ipv4/arp.c | arp->ar_hrd = htons(dev->type); |
htons | 352 | net/ipv4/arp.c | arp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP); |
htons | 354 | net/ipv4/arp.c | arp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP); |
htons | 357 | net/ipv4/arp.c | arp->ar_pro = htons(ETH_P_IP); |
htons | 361 | net/ipv4/arp.c | arp->ar_op = htons(type); |
htons | 595 | net/ipv4/arp.c | if(arp->ar_pro != htons(AX25_P_IP)) |
htons | 604 | net/ipv4/arp.c | if(arp->ar_pro != htons(AX25_P_IP)) |
htons | 613 | net/ipv4/arp.c | if(arp->ar_pro != htons(ETH_P_IP)) |
htons | 621 | net/ipv4/arp.c | if(arp->ar_pro != htons(ETH_P_IP)) |
htons | 677 | net/ipv4/arp.c | if(arp->ar_op == htons(ARPOP_REPLY)) |
htons | 1410 | net/ipv4/arp.c | arp_packet_type.type=htons(ETH_P_ARP); |
htons | 636 | net/ipv4/ip.c | iph->tot_len = htons((iph->ihl * 4) + count); |
htons | 985 | net/ipv4/ip.c | iph->frag_off = htons((offset >> 3)); |
htons | 991 | net/ipv4/ip.c | iph->frag_off |= htons(IP_MF); |
htons | 1071 | net/ipv4/ip.c | iph->check = htons(iph->check); |
htons | 1462 | net/ipv4/ip.c | if (iph->frag_off & htons(IP_MF)) |
htons | 1468 | net/ipv4/ip.c | if (iph->frag_off & htons(IP_OFFSET)) |
htons | 1788 | net/ipv4/ip.c | iph->id = htons(ip_id_count++); |
htons | 2488 | net/ipv4/ip.c | iph->tot_len = htons(length); |
htons | 2489 | net/ipv4/ip.c | iph->id=htons(ip_id_count++); |
htons | 2562 | net/ipv4/ip.c | id = htons(ip_id_count++); |
htons | 2637 | net/ipv4/ip.c | iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); |
htons | 2639 | net/ipv4/ip.c | iph->frag_off = htons(offset>>3); |
htons | 2658 | net/ipv4/ip.c | mf = htons(IP_MF); |
htons | 2797 | net/ipv4/ip.c | ip_packet_type.type=htons(ETH_P_IP); |
htons | 486 | net/ipv4/ip_fw.c | ms->mport = htons(masq_port++); |
htons | 579 | net/ipv4/ip_fw.c | ms->sport = htons(port); /* derived from PORT cmd */ |
htons | 581 | net/ipv4/ip_fw.c | ms->dport = htons(20); /* ftp-data */ |
htons | 733 | net/ipv4/ip_fw.c | if (portptr[1]==htons(21)) |
htons | 97 | net/ipv4/rarp.c | rarp_packet_type.type=htons(ETH_P_RARP); |
htons | 168 | net/ipv4/rarp.c | if (rarp->ar_op != htons(ARPOP_RREQUEST)) |
htons | 180 | net/ipv4/rarp.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
htons | 182 | net/ipv4/rarp.c | (rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) |
htons | 147 | net/ipv4/raw.c | iph->tot_len=htons(fraglen); /* This is right as you cant frag |
htons | 153 | net/ipv4/raw.c | iph->id = htons(ip_id_count++); |
htons | 486 | net/ipv4/tcp.c | iph->id = htons(ip_id_count++); |
htons | 1449 | net/ipv4/tcp.c | th->window = htons(sk->window); |
htons | 5065 | net/ipv4/tcp.c | th->urg_ptr = htons(urg_ptr); |
htons | 5066 | net/ipv4/tcp.c | nth->urg_ptr = htons(win_size); |
htons | 265 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
htons | 268 | net/ipv4/udp.c | ufh.other = (htons(ulen) << 16) + IPPROTO_UDP*256; |
htons | 660 | net/ipx/af_ipx.c | case IPX_FRAME_ETHERII: return htons(ETH_P_IPX); |
htons | 661 | net/ipx/af_ipx.c | case IPX_FRAME_8022: return htons(ETH_P_802_2); |
htons | 662 | net/ipx/af_ipx.c | case IPX_FRAME_SNAP: return htons(ETH_P_SNAP); |
htons | 663 | net/ipx/af_ipx.c | case IPX_FRAME_8023: return htons(ETH_P_802_3); |
htons | 688 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_IPX); |
htons | 692 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_802_2); |
htons | 696 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_SNAP); |
htons | 700 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_802_3); |
htons | 788 | net/ipx/af_ipx.c | switch (htons(dlink_type)) { |
htons | 1021 | net/ipx/af_ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
htons | 1181 | net/ipx/af_ipx.c | htons(s->ipx_port)); |
htons | 1191 | net/ipx/af_ipx.c | htons(s->ipx_dest_addr.sock)); |
htons | 1649 | net/ipx/af_ipx.c | if(htons(ipx->ipx_pktsize)<sizeof(ipx_packet)) { |
htons | 1936 | net/ipx/af_ipx.c | ipx_dix_packet_type.type=htons(ETH_P_IPX); |
htons | 1940 | net/ipx/af_ipx.c | ipx_8023_packet_type.type=htons(ETH_P_802_3); |
htons | 63 | net/netrom/nr_dev.c | skb->protocol = htons(ETH_P_IP); |