tag | line | file | source code |
htons | 664 | arch/sparc/kernel/sys_sunos.c | local.sin_port = htons (--try_port); |
htons | 948 | drivers/isdn/isdn_net.c | return htons(ETH_P_802_3); |
htons | 952 | drivers/isdn/isdn_net.c | return htons(ETH_P_802_2); |
htons | 997 | drivers/isdn/isdn_net.c | skb->protocol = htons(ETH_P_IP); |
htons | 1008 | drivers/isdn/isdn_net.c | skb->protocol = htons(ETH_P_802_3); |
htons | 1086 | drivers/isdn/isdn_net.c | eth->h_proto = htons(type); |
htons | 1088 | drivers/isdn/isdn_net.c | eth->h_proto = htons(len); |
htons | 1137 | drivers/isdn/isdn_net.c | *((ushort*) skb_push(skb, 2)) = htons(type); |
htons | 1142 | drivers/isdn/isdn_net.c | *((ushort*) skb_push(skb, 2)) = htons(0x0103); |
htons | 1149 | drivers/isdn/isdn_net.c | *((ushort*)&skb->data[2]) = htons(type); |
htons | 1195 | drivers/isdn/isdn_net.c | if(eth->h_proto != htons(ETH_P_IP)) { |
htons | 737 | drivers/isdn/isdn_ppp.c | skb->protocol = htons(ETH_P_IPX); |
htons | 746 | drivers/isdn/isdn_ppp.c | skb->protocol = htons(ETH_P_IP); |
htons | 768 | drivers/isdn/isdn_ppp.c | skb->protocol = htons(ETH_P_IP); |
htons | 160 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
htons | 179 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
htons | 238 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
htons | 460 | drivers/net/3c59x.c | phys_addr[i] = htons(inw(ioaddr + 12)); |
htons | 2722 | drivers/net/arcnet.c | case ARC_P_IP: return htons(ETH_P_IP); |
htons | 2723 | drivers/net/arcnet.c | case ARC_P_ARP: return htons(ETH_P_ARP); |
htons | 2724 | drivers/net/arcnet.c | case ARC_P_RARP: return htons(ETH_P_RARP); |
htons | 2728 | drivers/net/arcnet.c | return htons(ETH_P_802_3); |
htons | 2737 | drivers/net/arcnet.c | return htons(ETH_P_IP); |
htons | 3171 | drivers/net/arcnet.c | case ARC_P_IP_RFC1051: return htons(ETH_P_IP); |
htons | 3172 | drivers/net/arcnet.c | case ARC_P_ARP_RFC1051: return htons(ETH_P_ARP); |
htons | 3173 | drivers/net/arcnet.c | case ARC_P_ATALK: return htons(ETH_P_ATALK); /* untested appletalk */ |
htons | 3182 | 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 | 195 | drivers/net/dlci.c | skb->protocol = htons(hdr->PID); |
htons | 201 | drivers/net/dlci.c | skb->protocol = htons(ETH_P_IP); |
htons | 322 | drivers/net/fmv18x.c | htons(inw(ioaddr + TX_STATUS)), |
htons | 326 | drivers/net/fmv18x.c | dev->name, htons(inw(ioaddr + 0)), |
htons | 327 | drivers/net/fmv18x.c | htons(inw(ioaddr + 2)), htons(inw(ioaddr + 4)), |
htons | 328 | drivers/net/fmv18x.c | htons(inw(ioaddr + 6)), htons(inw(ioaddr + 8)), |
htons | 329 | drivers/net/fmv18x.c | htons(inw(ioaddr +10)), htons(inw(ioaddr +12)), |
htons | 330 | drivers/net/fmv18x.c | htons(inw(ioaddr +14))); |
htons | 332 | drivers/net/fmv18x.c | htons(inw(ioaddr+FJ_STATUS0)), |
htons | 333 | drivers/net/fmv18x.c | htons(inw(ioaddr+FJ_CONFIG0))); |
htons | 1129 | drivers/net/ibmtr.c | writew(htons(MAX_I_FIELD), |
htons | 1162 | drivers/net/ibmtr.c | writew(htons(OPEN_PASS_BCON_MAC), |
htons | 1164 | drivers/net/ibmtr.c | writew(htons(NUM_RCV_BUF), |
htons | 1166 | drivers/net/ibmtr.c | writew(htons(RCV_BUF_LEN), |
htons | 1168 | drivers/net/ibmtr.c | writew(htons(DHB_LENGTH), |
htons | 1218 | drivers/net/ibmtr.c | writew(htons(0x11), |
htons | 1259 | drivers/net/ibmtr.c | writew(htons(ti->current_skb->len-sizeof(struct trh_hdr)+hdr_len), |
htons | 1394 | drivers/net/ibmtr.c | local_llc->ethertype = htons(ETH_P_TR_802_2); |
htons | 286 | drivers/net/new_tunnel.c | iph->tot_len = htons(skb->len); |
htons | 287 | drivers/net/new_tunnel.c | iph->id = htons(ip_id_count++); /* Race condition here? */ |
htons | 290 | drivers/net/new_tunnel.c | skb->protocol = htons(ETH_P_IP); |
htons | 569 | drivers/net/pi2.c | skb->protocol=htons(ETH_P_AX25); |
htons | 869 | drivers/net/plip.c | if (eth->h_proto != htons(ETH_P_IP)) { |
htons | 1225 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IP), data, count); |
htons | 1237 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IPX), data, count); |
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 | 393 | drivers/net/slip.c | skb->protocol=htons(ETH_P_AX25); |
htons | 395 | 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 | 753 | drivers/net/strip.c | skb->protocol = htons(ETH_P_IP); |
htons | 929 | drivers/net/wic.c | if (eth->h_proto != htons(ETH_P_IP)) { |
htons | 472 | 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 | 139 | 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 | 268 | fs/nfs/nfsroot.c | rarp_packet_type.type = htons(ETH_P_RARP); |
htons | 278 | fs/nfs/nfsroot.c | rarp_packet_type.type = htons(ETH_P_RARP); |
htons | 300 | fs/nfs/nfsroot.c | if (rarp->ar_op != htons(ARPOP_RREPLY)) { |
htons | 306 | fs/nfs/nfsroot.c | if ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) || |
htons | 308 | fs/nfs/nfsroot.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
htons | 534 | fs/nfs/nfsroot.c | sa.sin_port = htons(port); |
htons | 554 | fs/nfs/nfsroot.c | sa.sin_port = htons(port); |
htons | 739 | fs/nfs/nfsroot.c | xmit_bootp->secs = htons(jiffies / HZ); |
htons | 1478 | fs/nfs/nfsroot.c | sin->sin_port = htons(port++); |
htons | 1579 | fs/nfs/nfsroot.c | server.sin_port = htons(NFS_PMAP_PORT); |
htons | 1619 | fs/nfs/nfsroot.c | server.sin_port = htons(port); |
htons | 1677 | 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 | 81 | net/802/p8022.c | p8022_packet_type.type=htons(ETH_P_802_2); |
htons | 88 | net/802/p8022tr.c | p8022tr_packet_type.type=htons(ETH_P_TR_802_2); |
htons | 64 | 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 | 125 | net/appletalk/aarp.c | eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); |
htons | 126 | net/appletalk/aarp.c | eah->pa_type = htons(ETH_P_ATALK); |
htons | 129 | net/appletalk/aarp.c | eah->function = htons(AARP_REQUEST); |
htons | 185 | net/appletalk/aarp.c | eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); |
htons | 186 | net/appletalk/aarp.c | eah->pa_type = htons(ETH_P_ATALK); |
htons | 189 | net/appletalk/aarp.c | eah->function = htons(AARP_REPLY); |
htons | 249 | net/appletalk/aarp.c | eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); |
htons | 250 | net/appletalk/aarp.c | eah->pa_type = htons(ETH_P_ATALK); |
htons | 253 | net/appletalk/aarp.c | eah->function = htons(AARP_PROBE); |
htons | 456 | net/appletalk/aarp.c | *((__u16 *)skb->data)=htons(skb->len); |
htons | 486 | net/appletalk/aarp.c | skb->protocol = htons(ETH_P_ATALK); |
htons | 379 | net/appletalk/ddp.c | atif->address.s_net=htons(sa->sat_addr.s_net); |
htons | 417 | net/appletalk/ddp.c | atif->address.s_net=htons(probe_net); |
htons | 567 | net/appletalk/ddp.c | atrtr_default.gateway.s_net=htons(0); |
htons | 822 | net/appletalk/ddp.c | if(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) |
htons | 838 | net/appletalk/ddp.c | sa->sat_addr.s_net=htons(ct); |
htons | 993 | net/appletalk/ddp.c | return htons((unsigned short)sum); |
htons | 1223 | net/appletalk/ddp.c | if ( ap == NULL || ap->s_net == htons( ATADDR_ANYNET )) |
htons | 1256 | net/appletalk/ddp.c | if(addr->sat_addr.s_net==htons(ATADDR_ANYNET)) |
htons | 1620 | net/appletalk/ddp.c | *((__u16 *)ddp)=htons(*((__u16 *)ddp)); /* Mend the byte order */ |
htons | 2018 | net/appletalk/ddp.c | ltalk_packet_type.type=htons(ETH_P_LOCALTALK); |
htons | 2021 | net/appletalk/ddp.c | ppptalk_packet_type.type=htons(ETH_P_PPPTALK); |
htons | 2389 | net/ax25/af_ax25.c | ax25_packet_type.type = htons(ETH_P_AX25); |
htons | 2392 | net/ax25/af_ax25.c | bpq_packet_type.type = htons(ETH_P_BPQ); |
htons | 2446 | net/ax25/af_ax25.c | skb->protocol = htons (ETH_P_AX25); |
htons | 542 | net/ax25/ax25_subr.c | skb->protocol = htons(ETH_P_AX25); |
htons | 150 | net/core/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 172 | net/core/dev.c | if(pt->type==htons(ETH_P_ALL)) |
htons | 101 | net/ethernet/eth.c | eth->h_proto = htons(type); |
htons | 103 | net/ethernet/eth.c | eth->h_proto = htons(len); |
htons | 149 | net/ethernet/eth.c | if(eth->h_proto != htons(ETH_P_IP)) |
htons | 213 | net/ethernet/eth.c | return htons(ETH_P_802_3); |
htons | 218 | net/ethernet/eth.c | return htons(ETH_P_802_2); |
htons | 277 | 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 | 845 | net/ipv4/arp.c | skb->protocol = htons (ETH_P_IP); |
htons | 854 | net/ipv4/arp.c | arp->ar_hrd = htons(dev->type); |
htons | 857 | net/ipv4/arp.c | arp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP); |
htons | 859 | net/ipv4/arp.c | arp->ar_pro = (dev->type != ARPHRD_AX25) ? htons(ETH_P_IP) : htons(AX25_P_IP); |
htons | 862 | net/ipv4/arp.c | arp->ar_pro = htons(ETH_P_IP); |
htons | 866 | net/ipv4/arp.c | arp->ar_op = htons(type); |
htons | 1008 | net/ipv4/arp.c | if(arp->ar_pro != htons(AX25_P_IP)) |
htons | 1017 | net/ipv4/arp.c | if(arp->ar_pro != htons(AX25_P_IP)) |
htons | 1027 | net/ipv4/arp.c | if(arp->ar_pro != htons(ETH_P_IP)) |
htons | 1035 | net/ipv4/arp.c | if(arp->ar_pro != htons(ETH_P_IP)) |
htons | 1107 | net/ipv4/arp.c | if (arp->ar_op == htons(ARPOP_REQUEST)) |
htons | 2225 | net/ipv4/arp.c | arp_packet_type.type=htons(ETH_P_ARP); |
htons | 540 | net/ipv4/icmp.c | if(iph->frag_off&htons(IP_OFFSET)) |
htons | 679 | net/ipv4/icmp.c | iph->id = htons(new_mtu); |
htons | 66 | net/ipv4/ip_forward.c | iph->tot_len = htons(skb->len); |
htons | 67 | net/ipv4/ip_forward.c | iph->id = htons(ip_id_count++); |
htons | 153 | net/ipv4/ip_forward.c | iph->check = htons(iph->check); |
htons | 292 | net/ipv4/ip_forward.c | skb2->protocol=htons(ETH_P_IP); |
htons | 384 | net/ipv4/ip_fragment.c | iph->tot_len = htons((iph->ihl * 4) + count); |
htons | 744 | net/ipv4/ip_fragment.c | iph->frag_off = htons((offset >> 3)); |
htons | 761 | net/ipv4/ip_fragment.c | iph->frag_off |= htons(IP_MF); |
htons | 323 | net/ipv4/ip_input.c | if (iph->frag_off & htons(IP_MF)) |
htons | 329 | net/ipv4/ip_input.c | if (iph->frag_off & htons(IP_OFFSET)) |
htons | 365 | net/ipv4/ip_masq.c | ms->mport = htons(masq_port++); |
htons | 582 | net/ipv4/ip_masq_app.c | iph->tot_len = htons(skb_len + diff); |
htons | 108 | net/ipv4/ip_masq_ftp.c | printk("protocol %d %lX:%X %X:%X\n", iph->protocol, htonl(from), htons(port), iph->daddr, 0); |
htons | 112 | net/ipv4/ip_masq_ftp.c | htonl(from), htons(port), |
htons | 120 | net/ipv4/ip_masq_ftp.c | htonl(from), htons(port), |
htons | 169 | net/ipv4/ip_masq_irc.c | htonl(s_addr),htons(s_port), |
htons | 125 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 162 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 364 | net/ipv4/ip_output.c | iph->tot_len = htons(skb->len-(((unsigned char *)iph)-skb->data)); |
htons | 371 | net/ipv4/ip_output.c | iph->id = htons(ip_id_count++); |
htons | 660 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 694 | net/ipv4/ip_output.c | iph->tot_len = htons(length); |
htons | 695 | net/ipv4/ip_output.c | iph->id=htons(ip_id_count++); |
htons | 796 | net/ipv4/ip_output.c | id = htons(ip_id_count++); |
htons | 827 | net/ipv4/ip_output.c | skb->protocol = htons(ETH_P_IP); |
htons | 884 | net/ipv4/ip_output.c | iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); |
htons | 886 | net/ipv4/ip_output.c | iph->frag_off = htons(offset>>3); |
htons | 905 | net/ipv4/ip_output.c | mf = htons(IP_MF); |
htons | 1104 | 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 | 183 | net/ipv4/rarp.c | rarp_packet_type.type=htons(ETH_P_RARP); |
htons | 219 | net/ipv4/rarp.c | if (rarp->ar_op != htons(ARPOP_RREQUEST)) |
htons | 231 | net/ipv4/rarp.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
htons | 233 | net/ipv4/rarp.c | (rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) |
htons | 201 | net/ipv4/raw.c | iph->tot_len=htons(fraglen); /* This is right as you cant frag |
htons | 207 | net/ipv4/raw.c | iph->id = htons(ip_id_count++); |
htons | 831 | net/ipv4/tcp.c | th->window = htons(tcp_select_window(sk)); |
htons | 1087 | net/ipv4/tcp.c | skb->ip_hdr->frag_off |= htons(IP_DF); |
htons | 124 | net/ipv4/tcp_output.c | th->window = htons(tcp_select_window(sk)); |
htons | 285 | net/ipv4/tcp_output.c | iph->frag_off &= ~htons(IP_DF); |
htons | 291 | 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 | 640 | net/ipv4/tcp_output.c | t1->window = htons(tcp_select_window(sk)); |
htons | 868 | net/ipv4/tcp_output.c | t1->window = htons(tcp_select_window(sk)); |
htons | 987 | net/ipv4/tcp_output.c | nth->window = htons(tcp_select_window(sk)); |
htons | 1047 | net/ipv4/tcp_output.c | t1->window = htons(tcp_select_window(sk)); |
htons | 311 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
htons | 314 | net/ipv4/udp.c | ufh.other = (htons(ulen) << 16) + IPPROTO_UDP*256; |
htons | 679 | net/ipx/af_ipx.c | skb->protocol = htons(ETH_P_IPX); |
htons | 844 | net/ipx/af_ipx.c | case IPX_FRAME_ETHERII: return htons(ETH_P_IPX); |
htons | 845 | net/ipx/af_ipx.c | case IPX_FRAME_8022: return htons(ETH_P_802_2); |
htons | 846 | net/ipx/af_ipx.c | case IPX_FRAME_TR_8022: return htons(ETH_P_TR_802_2); |
htons | 847 | net/ipx/af_ipx.c | case IPX_FRAME_SNAP: return htons(ETH_P_SNAP); |
htons | 848 | net/ipx/af_ipx.c | case IPX_FRAME_8023: return htons(ETH_P_802_3); |
htons | 873 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_IPX); |
htons | 877 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_TR_802_2); |
htons | 881 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_802_2); |
htons | 885 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_SNAP); |
htons | 889 | net/ipx/af_ipx.c | dlink_type = htons(ETH_P_802_3); |
htons | 982 | net/ipx/af_ipx.c | switch (htons(dlink_type)) { |
htons | 1219 | net/ipx/af_ipx.c | if(packet->ipx_pktsize&htons(1)) |
htons | 1283 | net/ipx/af_ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
htons | 1488 | net/ipx/af_ipx.c | htons(s->protinfo.af_ipx.port)); |
htons | 1492 | net/ipx/af_ipx.c | htons(s->protinfo.af_ipx.port)); |
htons | 1506 | net/ipx/af_ipx.c | htons(s->protinfo.af_ipx.dest_addr.sock)); |
htons | 2322 | net/ipx/af_ipx.c | ipx_dix_packet_type.type=htons(ETH_P_IPX); |
htons | 2326 | net/ipx/af_ipx.c | ipx_8023_packet_type.type=htons(ETH_P_802_3); |
htons | 66 | net/netrom/nr_dev.c | skb->protocol = htons(ETH_P_IP); |