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 | 2097 | drivers/net/arcnet.c | case ARC_P_IP: return htons(ETH_P_IP); |
htons | 2098 | drivers/net/arcnet.c | case ARC_P_ARP: return htons(ETH_P_ARP); |
htons | 2099 | drivers/net/arcnet.c | case ARC_P_RARP: return htons(ETH_P_RARP); |
htons | 2100 | drivers/net/arcnet.c | case ARC_P_IPX: return htons(ETH_P_IPX); |
htons | 2117 | drivers/net/arcnet.c | return htons(ETH_P_802_3); |
htons | 2119 | drivers/net/arcnet.c | return htons(ETH_P_SNAP); |
htons | 2121 | drivers/net/arcnet.c | return htons(ETH_P_802_2); |
htons | 2124 | drivers/net/arcnet.c | return htons(ETH_P_IP); |
htons | 940 | drivers/net/de620.c | if (wrd != htons(0x0080)) /* Valid D-Link ether sequence? */ |
htons | 855 | drivers/net/plip.c | if (eth->h_proto != htons(ETH_P_IP)) { |
htons | 1826 | drivers/net/ppp.c | return(htons(ETH_P_IP)); |
htons | 534 | drivers/net/slhc.c | thp->check = htons(x); |
htons | 566 | drivers/net/slhc.c | thp->urg_ptr = htons(x); |
htons | 573 | drivers/net/slhc.c | thp->window = htons( ntohs(thp->window) + x); |
htons | 593 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + x); |
htons | 595 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + 1); |
htons | 607 | drivers/net/slhc.c | ip->tot_len = htons(len); |
htons | 469 | drivers/net/slip.c | return htons(ETH_P_AX25); |
htons | 472 | drivers/net/slip.c | return htons(ETH_P_IP); |
htons | 485 | drivers/net/slip.c | if ((sl->mode & SL_MODE_AX25) && type != htons(ETH_P_AX25)) { |
htons | 452 | drivers/scsi/eata.c | config.len = (ushort) htons((ushort)510); |
htons | 12 | include/asm-alpha/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 12 | include/asm-i386/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 12 | include/asm-mips/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 12 | include/asm-sparc/byteorder.h | extern unsigned short int htons(unsigned short int); |
htons | 334 | net/inet/arp.c | arp->ar_hrd = htons(dev->type); |
htons | 336 | net/inet/arp.c | arp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP); |
htons | 338 | net/inet/arp.c | arp->ar_pro = htons(ETH_P_IP); |
htons | 342 | net/inet/arp.c | arp->ar_op = htons(type); |
htons | 577 | net/inet/arp.c | if(arp->ar_pro != htons(AX25_P_IP)) |
htons | 586 | net/inet/arp.c | if(arp->ar_pro != htons(ETH_P_IP)) |
htons | 642 | net/inet/arp.c | if(arp->ar_op == htons(ARPOP_REPLY)) |
htons | 1274 | net/inet/arp.c | arp_packet_type.type=htons(ETH_P_ARP); |
htons | 129 | net/inet/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 143 | net/inet/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 395 | net/inet/dev.c | if (ptype->type == htons(ETH_P_ALL) && |
htons | 701 | net/inet/dev.c | if ((ptype->type == type || ptype->type == htons(ETH_P_ALL)) && (!ptype->dev || ptype->dev==skb->dev)) |
htons | 96 | net/inet/eth.c | eth->h_proto = htons(type); |
htons | 98 | net/inet/eth.c | eth->h_proto = htons(len); |
htons | 144 | net/inet/eth.c | if(eth->h_proto != htons(ETH_P_IP)) |
htons | 193 | net/inet/eth.c | return htons(ETH_P_802_3); |
htons | 195 | net/inet/eth.c | return htons(ETH_P_802_2); |
htons | 881 | net/inet/ip.c | iph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count); |
htons | 1228 | net/inet/ip.c | iph->frag_off = htons((offset >> 3)); |
htons | 1234 | net/inet/ip.c | iph->frag_off |= htons(IP_MF); |
htons | 1825 | net/inet/ip.c | iph->id = htons(ip_id_count++); |
htons | 2410 | net/inet/ip.c | ip_packet_type.type=htons(ETH_P_IP); |
htons | 640 | net/inet/ipx.c | case IPX_FRAME_ETHERII: return htons(ETH_P_IPX); |
htons | 641 | net/inet/ipx.c | case IPX_FRAME_8022: return htons(ETH_P_802_2); |
htons | 642 | net/inet/ipx.c | case IPX_FRAME_SNAP: return htons(ETH_P_SNAP); |
htons | 643 | net/inet/ipx.c | case IPX_FRAME_8023: return htons(ETH_P_802_3); |
htons | 668 | net/inet/ipx.c | dlink_type = htons(ETH_P_IPX); |
htons | 672 | net/inet/ipx.c | dlink_type = htons(ETH_P_802_2); |
htons | 676 | net/inet/ipx.c | dlink_type = htons(ETH_P_SNAP); |
htons | 680 | net/inet/ipx.c | dlink_type = htons(ETH_P_802_3); |
htons | 771 | net/inet/ipx.c | switch (htons(dlink_type)) { |
htons | 1006 | net/inet/ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
htons | 1166 | net/inet/ipx.c | htons(s->ipx_port)); |
htons | 1176 | net/inet/ipx.c | htons(s->ipx_dest_addr.sock)); |
htons | 1634 | net/inet/ipx.c | if(htons(ipx->ipx_pktsize)<sizeof(ipx_packet)) { |
htons | 1918 | net/inet/ipx.c | ipx_dix_packet_type.type=htons(ETH_P_IPX); |
htons | 1922 | net/inet/ipx.c | ipx_8023_packet_type.type=htons(ETH_P_802_3); |
htons | 72 | net/inet/p8022.c | p8022_packet_type.type=htons(ETH_P_802_2); |
htons | 63 | net/inet/psnap.c | psnap_packet_type.type=htons(ETH_P_SNAP); |
htons | 97 | net/inet/rarp.c | rarp_packet_type.type=htons(ETH_P_RARP); |
htons | 168 | net/inet/rarp.c | if (rarp->ar_op != htons(ARPOP_RREQUEST)) |
htons | 180 | net/inet/rarp.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
htons | 182 | net/inet/rarp.c | (rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) |
htons | 442 | net/inet/tcp.c | iph->id = htons(ip_id_count++); |
htons | 1426 | net/inet/tcp.c | th->window = htons(sk->window); |
htons | 314 | net/inet/udp.c | uh->len = htons(len + sizeof(struct udphdr)); |