tag | line | file | source code |
portptr | 140 | net/ipv4/ip_fw.c | extern inline int port_match(unsigned short *portptr,int nports,unsigned short port,int range_flag) |
portptr | 146 | net/ipv4/ip_fw.c | if ( portptr[0] <= port && port <= portptr[1] ) |
portptr | 151 | net/ipv4/ip_fw.c | portptr += 2; |
portptr | 155 | net/ipv4/ip_fw.c | if ( *portptr++ == port ) |
portptr | 252 | net/ipv4/ip_fw.c | dprintf2("ICMP:%d ",((char *)portptr)[0]&0xff); |
portptr | 658 | net/ipv4/ip_fw.c | unsigned short *portptr; |
portptr | 673 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
portptr | 679 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
portptr | 680 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); |
portptr | 686 | net/ipv4/ip_fw.c | portptr[0] == ms->sport && portptr[1] == ms->dport) |
portptr | 709 | net/ipv4/ip_fw.c | ms->sport = portptr[0]; |
portptr | 710 | net/ipv4/ip_fw.c | ms->dport = portptr[1]; |
portptr | 717 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr - skb->h.raw); |
portptr | 719 | net/ipv4/ip_fw.c | portptr[0] = ms->mport; |
portptr | 728 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
portptr | 733 | net/ipv4/ip_fw.c | if (portptr[1]==htons(21)) |
portptr | 738 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
portptr | 740 | net/ipv4/ip_fw.c | th = (struct tcphdr *)portptr; |
portptr | 774 | net/ipv4/ip_fw.c | unsigned short *portptr; |
portptr | 781 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
portptr | 782 | net/ipv4/ip_fw.c | if (ntohs(portptr[1]) < PORT_MASQ_BEGIN || |
portptr | 783 | net/ipv4/ip_fw.c | ntohs(portptr[1]) > PORT_MASQ_END) |
portptr | 789 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
portptr | 790 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); |
portptr | 806 | net/ipv4/ip_fw.c | portptr[0]==ms->dport && |
portptr | 807 | net/ipv4/ip_fw.c | portptr[1]==ms->mport) |
portptr | 809 | net/ipv4/ip_fw.c | int size = skb_ptr->len - ((unsigned char *)portptr - skb_ptr->h.raw); |
portptr | 811 | net/ipv4/ip_fw.c | portptr[1] = ms->sport; |
portptr | 817 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
portptr | 829 | net/ipv4/ip_fw.c | tcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb_ptr->sk); |
portptr | 833 | net/ipv4/ip_fw.c | printk("I-routed to %lX:%X\n",ntohl(iph->daddr),ntohs(portptr[1])); |