tag | line | file | source code |
saddr | 273 | drivers/net/slhc.c | if( ip->saddr == cs->cs_ip.saddr |
saddr | 90 | drivers/net/slip.c | in_ntoa(ip->saddr), in_ntoa(ip->daddr), |
saddr | 101 | drivers/net/slip.c | printk("SLIP: %s->", in_ntoa(ip->saddr)); |
saddr | 551 | drivers/net/slip.c | unsigned long daddr, unsigned long saddr, unsigned len) |
saddr | 572 | drivers/net/slip.c | if(arp_find(buff,daddr,dev, saddr)) |
saddr | 574 | drivers/net/slip.c | memcpy(buff+7,&saddr,4); |
saddr | 75 | include/linux/ip.h | unsigned long saddr; |
saddr | 568 | net/inet/arp.c | arp_send(unsigned long paddr, struct device *dev, unsigned long saddr) |
saddr | 577 | net/inet/arp.c | DPRINTF((DBG_ARP, "saddr=%s)\n", in_ntoa(saddr))); |
saddr | 599 | net/inet/arp.c | ETH_P_ARP, 0, saddr, skb->len); |
saddr | 617 | net/inet/arp.c | memcpy(ptr, &saddr, arp->ar_pln); |
saddr | 633 | net/inet/arp.c | unsigned long saddr) |
saddr | 639 | net/inet/arp.c | DPRINTF((DBG_ARP, "dev=%s, saddr=%s)\n", dev->name, in_ntoa(saddr))); |
saddr | 676 | net/inet/arp.c | arp_send(paddr, dev, saddr); |
saddr | 55 | net/inet/arp.h | struct device *dev, unsigned long saddr); |
saddr | 125 | net/inet/dev.h | unsigned long saddr, |
saddr | 98 | net/inet/eth.c | unsigned long daddr, unsigned long saddr, unsigned len) |
saddr | 102 | net/inet/eth.c | DPRINTF((DBG_DEV, "ETH: header(%s, ", in_ntoa(saddr))); |
saddr | 125 | net/inet/eth.c | memcpy(eth->h_source, &saddr, 4); |
saddr | 127 | net/inet/eth.c | if (arp_find(eth->h_dest, daddr, dev, saddr)) |
saddr | 29 | net/inet/eth.h | unsigned long saddr, unsigned len); |
saddr | 110 | net/inet/icmp.c | offset = ip_build_header(skb, dev->pa_addr, iph->saddr, |
saddr | 192 | net/inet/icmp.c | iph->daddr, iph->saddr, ipprot); |
saddr | 237 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
saddr | 257 | net/inet/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &dev, |
saddr | 289 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
saddr | 301 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
saddr | 321 | net/inet/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &dev, |
saddr | 357 | net/inet/icmp.c | unsigned long saddr, int redo, struct inet_protocol *protocol) |
saddr | 365 | net/inet/icmp.c | in_ntoa(saddr))); |
saddr | 377 | net/inet/icmp.c | printk("ICMP: failed checksum from %s!\n", in_ntoa(saddr)); |
saddr | 395 | net/inet/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
saddr | 402 | net/inet/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
saddr | 409 | net/inet/icmp.c | icmp_address(icmph, skb1, dev, saddr, daddr, len, opt); |
saddr | 418 | net/inet/icmp.c | in_ntoa(saddr), icmph->type)); |
saddr | 30 | net/inet/icmp.h | unsigned short len, unsigned long saddr, |
saddr | 87 | net/inet/ip.c | printk(" soucre=%s ", in_ntoa(ip->saddr)); |
saddr | 173 | net/inet/ip.c | unsigned long saddr) |
saddr | 182 | net/inet/ip.c | mac = dev->hard_header(ptr, dev, ETH_P_IP, daddr, saddr, len); |
saddr | 200 | net/inet/ip.c | ip_build_header(struct sk_buff *skb, unsigned long saddr, unsigned long daddr, |
saddr | 211 | net/inet/ip.c | if (saddr == 0) |
saddr | 212 | net/inet/ip.c | saddr = my_addr(); |
saddr | 216 | net/inet/ip.c | skb, saddr, daddr, *dev, type, opt, len)); |
saddr | 227 | net/inet/ip.c | if (saddr == 0x0100007FL && daddr != 0x0100007FL) |
saddr | 228 | net/inet/ip.c | saddr = rt->rt_dev->pa_addr; |
saddr | 231 | net/inet/ip.c | DPRINTF((DBG_IP, "ip_build_header: saddr set to %s\n", in_ntoa(saddr))); |
saddr | 242 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
saddr | 247 | net/inet/ip.c | skb->saddr = saddr; |
saddr | 248 | net/inet/ip.c | if (skb->sk) skb->sk->saddr = saddr; |
saddr | 263 | net/inet/ip.c | iph->saddr = saddr; |
saddr | 550 | net/inet/ip.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
saddr | 977 | net/inet/ip.c | dev->name, dev->mtu, left, in_ntoa(iph->saddr))); |
saddr | 985 | net/inet/ip.c | dev->name, dev->mtu, left, in_ntoa(iph->saddr))); |
saddr | 1089 | net/inet/ip.c | DPRINTF((DBG_IP, " SRC = %s ", in_ntoa(iph->saddr))); |
saddr | 1142 | net/inet/ip.c | DPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr))); |
saddr | 1200 | net/inet/ip.c | DPRINTF((DBG_IP, " SRC = %s ", in_ntoa(iph->saddr))); |
saddr | 1226 | net/inet/ip.c | iph->saddr,iph->daddr); |
saddr | 1248 | net/inet/ip.c | printk(" SRC = %s ", in_ntoa(iph->saddr)); |
saddr | 1309 | net/inet/ip.c | iph->saddr, 0, ipprot); |
saddr | 69 | net/inet/ip.h | unsigned long saddr, |
saddr | 90 | net/inet/packet.c | struct sockaddr saddr; |
saddr | 99 | net/inet/packet.c | if (addr_len < sizeof(saddr)) return(-EINVAL); |
saddr | 100 | net/inet/packet.c | err=verify_area(VERIFY_READ, usin, sizeof(saddr)); |
saddr | 103 | net/inet/packet.c | memcpy_fromfs(&saddr, usin, sizeof(saddr)); |
saddr | 112 | net/inet/packet.c | saddr.sa_data[13] = 0; |
saddr | 113 | net/inet/packet.c | dev = dev_get(saddr.sa_data); |
saddr | 193 | net/inet/packet.c | struct sockaddr *saddr; |
saddr | 196 | net/inet/packet.c | saddr = (struct sockaddr *)sin; |
saddr | 205 | net/inet/packet.c | put_fs_long(sizeof(*saddr), addr_len); |
saddr | 219 | net/inet/packet.c | if (saddr) { |
saddr | 224 | net/inet/packet.c | verify_area(VERIFY_WRITE, saddr, sizeof(*saddr)); |
saddr | 225 | net/inet/packet.c | memcpy_tofs(saddr, &addr, sizeof(*saddr)); |
saddr | 79 | net/inet/proc.c | src = sp->saddr; |
saddr | 33 | net/inet/protocol.h | unsigned short len, unsigned long saddr, |
saddr | 37 | net/inet/protocol.h | unsigned short len, unsigned long saddr, |
saddr | 41 | net/inet/protocol.h | unsigned long saddr, |
saddr | 61 | net/inet/raw.c | unsigned long saddr, struct inet_protocol *protocol) |
saddr | 66 | net/inet/raw.c | err, header, daddr, saddr, protocol)); |
saddr | 91 | net/inet/raw.c | unsigned long daddr, unsigned short len, unsigned long saddr, |
saddr | 98 | net/inet/raw.c | skb, dev, opt, daddr, len, saddr, redo, protocol)); |
saddr | 115 | net/inet/raw.c | skb->saddr = daddr; |
saddr | 116 | net/inet/raw.c | skb->daddr = saddr; |
saddr | 215 | net/inet/raw.c | tmp = sk->prot->build_header(skb, sk->saddr, |
saddr | 238 | net/inet/raw.c | iph->saddr = sk->saddr; |
saddr | 25 | net/inet/raw.h | unsigned long saddr, struct inet_protocol *protocol); |
saddr | 28 | net/inet/raw.h | unsigned short len, unsigned long saddr, |
saddr | 68 | net/inet/skbuff.h | unsigned long saddr; |
saddr | 115 | net/inet/sock.c | printk(" daddr = %lX, saddr = %lX\n", sk->daddr,sk->saddr); |
saddr | 232 | net/inet/sock.c | if ((mask & sk->saddr) && |
saddr | 233 | net/inet/sock.c | (mask & sk->saddr) != (mask & 0xffffffff)) { |
saddr | 243 | net/inet/sock.c | if (!(sk2->saddr & mask)) { |
saddr | 831 | net/inet/sock.c | sk->saddr = my_addr(); |
saddr | 981 | net/inet/sock.c | sk->saddr = addr.sin_addr.s_addr; |
saddr | 1004 | net/inet/sock.c | if (sk2->saddr != sk->saddr) continue; /* socket per slot ! -FB */ |
saddr | 1209 | net/inet/sock.c | if (sk->saddr == 0) sin.sin_addr.s_addr = my_addr(); |
saddr | 1210 | net/inet/sock.c | else sin.sin_addr.s_addr = sk->saddr; |
saddr | 1644 | net/inet/sock.c | if(ip_addr_match(s->saddr,laddr) == 0) |
saddr | 1684 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
saddr | 100 | net/inet/sock.h | unsigned long saddr; |
saddr | 177 | net/inet/sock.h | unsigned long saddr, |
saddr | 192 | net/inet/sock.h | unsigned short len, unsigned long saddr, |
saddr | 196 | net/inet/tcp.c | unsigned long saddr, struct inet_protocol *protocol) |
saddr | 205 | net/inet/tcp.c | err, header, daddr, saddr, protocol)); |
saddr | 208 | net/inet/tcp.c | sk = get_sock(&tcp_prot, th->source/*dest*/, daddr, th->dest/*source*/, saddr); |
saddr | 483 | net/inet/tcp.c | unsigned long saddr, unsigned long daddr) |
saddr | 487 | net/inet/tcp.c | if (saddr == 0) saddr = my_addr(); |
saddr | 493 | net/inet/tcp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_TCP*256) |
saddr | 544 | net/inet/tcp.c | tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 548 | net/inet/tcp.c | th->check = tcp_check(th, len, saddr, daddr); |
saddr | 563 | net/inet/tcp.c | tcp_send_check(skb->h.th, sk->saddr, sk->daddr, |
saddr | 624 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
saddr | 662 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), sk); |
saddr | 889 | net/inet/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
saddr | 927 | net/inet/tcp.c | tcp_send_check((struct tcphdr *)buff, sk->saddr, sk->daddr, |
saddr | 1010 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1036 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 1485 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 1509 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 1571 | net/inet/tcp.c | tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 1596 | net/inet/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &dev, IPPROTO_TCP, opt, |
saddr | 1634 | net/inet/tcp.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), NULL); |
saddr | 1699 | net/inet/tcp.c | unsigned long daddr, unsigned long saddr, |
saddr | 1711 | net/inet/tcp.c | sk, skb, daddr, saddr, opt, dev)); |
saddr | 1720 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev); |
saddr | 1789 | net/inet/tcp.c | newsk->daddr = saddr; |
saddr | 1790 | net/inet/tcp.c | newsk->saddr = daddr; |
saddr | 1837 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &dev, |
saddr | 1880 | net/inet/tcp.c | tcp_send_check(t1, daddr, saddr, sizeof(*t1)+4, newsk); |
saddr | 2000 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 2026 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 2133 | net/inet/tcp.c | tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
saddr | 2401 | net/inet/tcp.c | unsigned long saddr, unsigned short len) |
saddr | 2416 | net/inet/tcp.c | if (!th->ack) tcp_send_ack(sk->send_seq, sk->acked_seq,sk, th, saddr); |
saddr | 2423 | net/inet/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
saddr | 2605 | net/inet/tcp.c | tcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2610 | net/inet/tcp.c | tcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2637 | net/inet/tcp.c | tcp_urg(struct sock *sk, struct tcphdr *th, unsigned long saddr) |
saddr | 2668 | net/inet/tcp.c | unsigned long saddr, struct device *dev) |
saddr | 2671 | net/inet/tcp.c | sk, th, saddr, dev)); |
saddr | 2719 | net/inet/tcp.c | sk, flags, in_ntoa(sk->saddr))); |
saddr | 2815 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 2846 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, |
saddr | 2865 | net/inet/tcp.c | struct options *opt, unsigned long saddr) |
saddr | 2874 | net/inet/tcp.c | sk, th, len, opt, saddr)); |
saddr | 2891 | net/inet/tcp.c | tcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2902 | net/inet/tcp.c | tcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2914 | net/inet/tcp.c | unsigned long saddr, int redo, struct inet_protocol * protocol) |
saddr | 2940 | net/inet/tcp.c | sk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 2954 | net/inet/tcp.c | if (tcp_check(th, len, saddr, daddr )) { |
saddr | 2972 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev); |
saddr | 2985 | net/inet/tcp.c | skb->saddr = daddr; |
saddr | 2986 | net/inet/tcp.c | skb->daddr = saddr; |
saddr | 3057 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr)) { |
saddr | 3061 | net/inet/tcp.c | sk, th, saddr); |
saddr | 3098 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev); |
saddr | 3108 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) { |
saddr | 3115 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr)) { |
saddr | 3122 | net/inet/tcp.c | if (th->fin && tcp_fin(sk, th, saddr, dev)) { |
saddr | 3128 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
saddr | 3148 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev); |
saddr | 3161 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev); |
saddr | 3170 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, prot, opt,dev); |
saddr | 3182 | net/inet/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev); |
saddr | 3192 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr)) { |
saddr | 3216 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev); |
saddr | 3237 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) { |
saddr | 3238 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 3262 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) { |
saddr | 3263 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 3288 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr)) { |
saddr | 3294 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
saddr | 3297 | net/inet/tcp.c | if (th->fin) tcp_fin(sk, th, saddr, dev); |
saddr | 3303 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr)) { |
saddr | 3310 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
saddr | 3320 | net/inet/tcp.c | tcp_fin(sk, th, saddr, dev); |
saddr | 3356 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 3384 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 138 | net/inet/tcp.h | unsigned long saddr, struct inet_protocol *protocol); |
saddr | 142 | net/inet/tcp.h | unsigned short len, unsigned long saddr, int redo, |
saddr | 96 | net/inet/udp.c | unsigned long saddr, struct inet_protocol *protocol) |
saddr | 107 | net/inet/udp.c | sport=%d,dport=%d", err, header, daddr, saddr, protocol, (int)th->source,(int)th->dest)); |
saddr | 109 | net/inet/udp.c | sk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr); |
saddr | 139 | net/inet/udp.c | unsigned long saddr, unsigned long daddr) |
saddr | 144 | net/inet/udp.c | uh, len, saddr, daddr)); |
saddr | 152 | net/inet/udp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_UDP*256) |
saddr | 203 | net/inet/udp.c | udp_send_check(struct udphdr *uh, unsigned long saddr, |
saddr | 209 | net/inet/udp.c | uh->check = udp_check(uh, len, saddr, daddr); |
saddr | 222 | net/inet/udp.c | unsigned long saddr; |
saddr | 247 | net/inet/udp.c | saddr = 0; |
saddr | 250 | net/inet/udp.c | saddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len)); |
saddr | 251 | net/inet/udp.c | tmp = sk->prot->build_header(skb, saddr, sin->sin_addr.s_addr, |
saddr | 260 | net/inet/udp.c | saddr = dev->pa_addr; |
saddr | 292 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
saddr | 548 | net/inet/udp.c | unsigned long saddr, int redo, struct inet_protocol *protocol) |
saddr | 554 | net/inet/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
saddr | 571 | net/inet/udp.c | if (uh->check && udp_check(uh, len, saddr, daddr)) { |
saddr | 583 | net/inet/udp.c | skb->daddr = saddr; |
saddr | 584 | net/inet/udp.c | skb->saddr = daddr; |
saddr | 35 | net/inet/udp.h | unsigned long saddr, struct inet_protocol *protocol); |
saddr | 45 | net/inet/udp.h | unsigned short len, unsigned long saddr, int redo, |