Home
last modified time | relevance | path

Searched refs:ciph (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/net/ipv4/
Dip_nat_dumb.c95 struct iphdr *ciph; in ip_do_nat() local
104 ciph = (struct iphdr *) (icmph + 1); in ip_do_nat()
106 if ((u8*)(ciph+1) > skb->tail) in ip_do_nat()
109 isaddr = ciph->saddr; in ip_do_nat()
110 idaddr = ciph->daddr; in ip_do_nat()
113 if (rt->rt_flags&RTCF_DNAT && ciph->saddr == odaddr) { in ip_do_nat()
114 ciph->saddr = iph->daddr; in ip_do_nat()
118 if (ciph->daddr != osaddr) { in ip_do_nat()
123 key.src = ciph->daddr; in ip_do_nat()
124 key.dst = ciph->saddr; in ip_do_nat()
[all …]
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_core.c500 struct iphdr *ciph; /* The ip header contained within the ICMP */ in ip_vs_out_icmp() local
548 ciph = (struct iphdr *) (icmph + 1); in ip_vs_out_icmp()
549 csize = ciph->ihl << 2; in ip_vs_out_icmp()
554 if (ciph->protocol != IPPROTO_UDP && ciph->protocol != IPPROTO_TCP) in ip_vs_out_icmp()
558 if (ciph->frag_off & __constant_htons(IP_OFFSET)) in ip_vs_out_icmp()
570 pptr = (__u16 *)&(((char *)ciph)[csize]); in ip_vs_out_icmp()
582 NIPQUAD(ciph->saddr), ntohs(pptr[0]), in ip_vs_out_icmp()
583 NIPQUAD(ciph->daddr), ntohs(pptr[1])); in ip_vs_out_icmp()
586 cp = ip_vs_conn_out_get(ciph->protocol, ciph->daddr, pptr[1], in ip_vs_out_icmp()
587 ciph->saddr, pptr[0]); in ip_vs_out_icmp()
[all …]