tag | line | file | source code |
sin | 190 | net/inet/packet.c | int noblock, unsigned flags, struct sockaddr_in *sin, |
sin | 198 | net/inet/packet.c | saddr = (struct sockaddr *)sin; |
sin | 145 | net/inet/raw.c | struct sockaddr_in sin; |
sin | 162 | net/inet/raw.c | if (addr_len < sizeof(sin)) return(-EINVAL); |
sin | 163 | net/inet/raw.c | err=verify_area (VERIFY_READ, usin, sizeof (sin)); |
sin | 166 | net/inet/raw.c | memcpy_fromfs(&sin, usin, sizeof(sin)); |
sin | 167 | net/inet/raw.c | if (sin.sin_family && sin.sin_family != AF_INET) return(-EINVAL); |
sin | 170 | net/inet/raw.c | sin.sin_family = AF_INET; |
sin | 171 | net/inet/raw.c | sin.sin_port = sk->protocol; |
sin | 172 | net/inet/raw.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 174 | net/inet/raw.c | if (sin.sin_port == 0) sin.sin_port = sk->protocol; |
sin | 176 | net/inet/raw.c | if (sk->broadcast == 0 && chk_addr(sin.sin_addr.s_addr)==IS_BROADCAST) |
sin | 221 | net/inet/raw.c | sin.sin_addr.s_addr, &dev, |
sin | 317 | net/inet/raw.c | int noblock, unsigned flags, struct sockaddr_in *sin, |
sin | 326 | net/inet/raw.c | sk, to, len, noblock, flags, sin, addr_len)); |
sin | 336 | net/inet/raw.c | put_fs_long(sizeof(*sin), addr_len); |
sin | 338 | net/inet/raw.c | if(sin) |
sin | 340 | net/inet/raw.c | err=verify_area(VERIFY_WRITE, sin, sizeof(*sin)); |
sin | 358 | net/inet/raw.c | if (sin) { |
sin | 363 | net/inet/raw.c | memcpy_tofs(sin, &addr, sizeof(*sin)); |
sin | 32 | net/inet/raw.h | struct sockaddr_in *sin, int *addr_len); |
sin | 1251 | net/inet/sock.c | struct sockaddr_in sin; |
sin | 1268 | net/inet/sock.c | if (len < sizeof(sin)) return(-EINVAL); |
sin | 1270 | net/inet/sock.c | sin.sin_family = AF_INET; |
sin | 1278 | net/inet/sock.c | sin.sin_port = sk->dummy_th.dest; |
sin | 1279 | net/inet/sock.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 1281 | net/inet/sock.c | sin.sin_port = sk->dummy_th.source; |
sin | 1282 | net/inet/sock.c | if (sk->saddr == 0) sin.sin_addr.s_addr = my_addr(); |
sin | 1283 | net/inet/sock.c | else sin.sin_addr.s_addr = sk->saddr; |
sin | 1285 | net/inet/sock.c | len = sizeof(sin); |
sin | 1287 | net/inet/sock.c | memcpy_tofs(uaddr, &sin, sizeof(sin)); |
sin | 1396 | net/inet/sock.c | unsigned flags, struct sockaddr *sin, int addr_len) |
sin | 1421 | net/inet/sock.c | (struct sockaddr_in *)sin, addr_len)); |
sin | 1427 | net/inet/sock.c | unsigned flags, struct sockaddr *sin, int *addr_len ) |
sin | 1448 | net/inet/sock.c | (struct sockaddr_in*)sin, addr_len)); |
sin | 1086 | net/inet/tcp.c | struct sockaddr_in sin; |
sin | 1088 | net/inet/tcp.c | if (addr_len < sizeof(sin)) return(-EINVAL); |
sin | 1089 | net/inet/tcp.c | memcpy_fromfs(&sin, addr, sizeof(sin)); |
sin | 1090 | net/inet/tcp.c | if (sin.sin_family && sin.sin_family != AF_INET) return(-EINVAL); |
sin | 1091 | net/inet/tcp.c | if (sin.sin_port != sk->dummy_th.dest) return(-EINVAL); |
sin | 1092 | net/inet/tcp.c | if (sin.sin_addr.s_addr != sk->daddr) return(-EINVAL); |
sin | 1548 | net/inet/tcp.c | struct sockaddr_in sin; |
sin | 1560 | net/inet/tcp.c | if(len > sizeof(sin)) |
sin | 1561 | net/inet/tcp.c | len = sizeof(sin); |
sin | 1570 | net/inet/tcp.c | sin.sin_family = AF_INET; |
sin | 1571 | net/inet/tcp.c | sin.sin_port = sk->dummy_th.dest; |
sin | 1572 | net/inet/tcp.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 1574 | net/inet/tcp.c | memcpy_tofs(addr, &sin, len); |
sin | 2959 | net/inet/tcp.c | struct sockaddr_in sin; |
sin | 2973 | net/inet/tcp.c | memcpy_fromfs(&sin,usin, min(sizeof(sin), addr_len)); |
sin | 2975 | net/inet/tcp.c | if (sin.sin_family && sin.sin_family != AF_INET) return(-EAFNOSUPPORT); |
sin | 2977 | net/inet/tcp.c | DPRINTF((DBG_TCP, "TCP connect daddr=%s\n", in_ntoa(sin.sin_addr.s_addr))); |
sin | 2980 | net/inet/tcp.c | if (chk_addr(sin.sin_addr.s_addr) == IS_BROADCAST) { |
sin | 2986 | net/inet/tcp.c | if(sk->saddr == sin.sin_addr.s_addr && sk->num==ntohs(sin.sin_port)) |
sin | 2990 | net/inet/tcp.c | sk->daddr = sin.sin_addr.s_addr; |
sin | 2995 | net/inet/tcp.c | sk->dummy_th.dest = sin.sin_port; |
sin | 216 | net/inet/udp.c | udp_send(struct sock *sk, struct sockaddr_in *sin, |
sin | 228 | net/inet/udp.c | in_ntoa(sin->sin_addr.s_addr), ntohs(sin->sin_port), |
sin | 251 | net/inet/udp.c | saddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len)); |
sin | 252 | net/inet/udp.c | tmp = sk->prot->build_header(skb, saddr, sin->sin_addr.s_addr, |
sin | 286 | net/inet/udp.c | uh->dest = sin->sin_port; |
sin | 293 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
sin | 306 | net/inet/udp.c | struct sockaddr_in sin; |
sin | 322 | net/inet/udp.c | if (addr_len < sizeof(sin)) return(-EINVAL); |
sin | 323 | net/inet/udp.c | err=verify_area(VERIFY_READ, usin, sizeof(sin)); |
sin | 326 | net/inet/udp.c | memcpy_fromfs(&sin, usin, sizeof(sin)); |
sin | 327 | net/inet/udp.c | if (sin.sin_family && sin.sin_family != AF_INET) |
sin | 329 | net/inet/udp.c | if (sin.sin_port == 0) |
sin | 333 | net/inet/udp.c | sin.sin_family = AF_INET; |
sin | 334 | net/inet/udp.c | sin.sin_port = sk->dummy_th.dest; |
sin | 335 | net/inet/udp.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 338 | net/inet/udp.c | if(!sk->broadcast && chk_addr(sin.sin_addr.s_addr)==IS_BROADCAST) |
sin | 343 | net/inet/udp.c | tmp = udp_send(sk, &sin, from, len); |
sin | 436 | net/inet/udp.c | int noblock, unsigned flags, struct sockaddr_in *sin, |
sin | 465 | net/inet/udp.c | put_fs_long(sizeof(*sin), addr_len); |
sin | 467 | net/inet/udp.c | if(sin) |
sin | 469 | net/inet/udp.c | er=verify_area(VERIFY_WRITE, sin, sizeof(*sin)); |
sin | 485 | net/inet/udp.c | if (sin) { |
sin | 491 | net/inet/udp.c | memcpy_tofs(sin, &addr, sizeof(*sin)); |
sin | 511 | net/inet/udp.c | struct sockaddr_in sin; |
sin | 514 | net/inet/udp.c | if (addr_len < sizeof(sin)) |
sin | 517 | net/inet/udp.c | er=verify_area(VERIFY_READ, usin, sizeof(sin)); |
sin | 521 | net/inet/udp.c | memcpy_fromfs(&sin, usin, sizeof(sin)); |
sin | 522 | net/inet/udp.c | if (sin.sin_family && sin.sin_family != AF_INET) |
sin | 525 | net/inet/udp.c | if(!sk->broadcast && chk_addr(sin.sin_addr.s_addr)==IS_BROADCAST) |
sin | 528 | net/inet/udp.c | sk->daddr = sin.sin_addr.s_addr; |
sin | 529 | net/inet/udp.c | sk->dummy_th.dest = sin.sin_port; |
sin | 38 | net/inet/udp.h | struct sockaddr_in *sin, int *addr_len); |