tag | line | file | source code |
portptr | 164 | net/ipv4/ip_fw.c | extern inline int port_match(unsigned short *portptr,int nports,unsigned short port,int range_flag) |
portptr | 170 | net/ipv4/ip_fw.c | if ( portptr[0] <= port && port <= portptr[1] ) |
portptr | 175 | net/ipv4/ip_fw.c | portptr += 2; |
portptr | 179 | net/ipv4/ip_fw.c | if ( *portptr++ == port ) |
portptr | 805 | net/ipv4/ip_fw.c | unsigned short *portptr; |
portptr | 820 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
portptr | 826 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
portptr | 827 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); |
portptr | 833 | net/ipv4/ip_fw.c | portptr[0] == ms->sport && portptr[1] == ms->dport) |
portptr | 856 | net/ipv4/ip_fw.c | ms->sport = portptr[0]; |
portptr | 857 | net/ipv4/ip_fw.c | ms->dport = portptr[1]; |
portptr | 864 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr - skb->h.raw); |
portptr | 866 | net/ipv4/ip_fw.c | portptr[0] = ms->mport; |
portptr | 875 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
portptr | 880 | net/ipv4/ip_fw.c | if (portptr[1]==htons(21)) |
portptr | 885 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
portptr | 886 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr-skb->h.raw); |
portptr | 888 | net/ipv4/ip_fw.c | th = (struct tcphdr *)portptr; |
portptr | 922 | net/ipv4/ip_fw.c | unsigned short *portptr; |
portptr | 929 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
portptr | 930 | net/ipv4/ip_fw.c | if (ntohs(portptr[1]) < PORT_MASQ_BEGIN || |
portptr | 931 | net/ipv4/ip_fw.c | ntohs(portptr[1]) > PORT_MASQ_END) |
portptr | 937 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
portptr | 938 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); |
portptr | 955 | net/ipv4/ip_fw.c | (ms->dport==htons(FTP_DPORT_TBD) || portptr[0]==ms->dport) && |
portptr | 956 | net/ipv4/ip_fw.c | portptr[1]==ms->mport) |
portptr | 959 | net/ipv4/ip_fw.c | int size = skb->len - ((unsigned char *)portptr - skb->h.raw); |
portptr | 961 | net/ipv4/ip_fw.c | portptr[1] = ms->sport; |
portptr | 965 | net/ipv4/ip_fw.c | ms->dport=portptr[0]; |
portptr | 975 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
portptr | 1005 | net/ipv4/ip_fw.c | tcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb); |
portptr | 1009 | net/ipv4/ip_fw.c | printk("I-routed to %lX:%X\n",ntohl(iph->daddr),ntohs(portptr[1])); |