tag | line | file | source code |
sin | 227 | net/tcp/packet.c | unsigned flags, struct sockaddr_in *sin, int *addr_len) |
sin | 234 | net/tcp/packet.c | saddr = (struct sockaddr *)sin; |
sin | 232 | net/tcp/raw.c | struct sockaddr_in sin; |
sin | 246 | net/tcp/raw.c | if (addr_len < sizeof (sin)) |
sin | 249 | net/tcp/raw.c | memcpy_fromfs (&sin, usin, sizeof(sin)); |
sin | 250 | net/tcp/raw.c | if (sin.sin_family && |
sin | 251 | net/tcp/raw.c | sin.sin_family != AF_INET) |
sin | 258 | net/tcp/raw.c | sin.sin_family = AF_INET; |
sin | 259 | net/tcp/raw.c | sin.sin_port = sk->protocol; |
sin | 260 | net/tcp/raw.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 262 | net/tcp/raw.c | if (sin.sin_port == 0) sin.sin_port = sk->protocol; |
sin | 302 | net/tcp/raw.c | sin.sin_addr.s_addr, &dev, |
sin | 366 | net/tcp/raw.c | unsigned flags, struct sockaddr_in *sin, int *addr_len) |
sin | 375 | net/tcp/raw.c | flags, sin, addr_len)); |
sin | 384 | net/tcp/raw.c | put_fs_long (sizeof (*sin), addr_len); |
sin | 428 | net/tcp/raw.c | if (sin) |
sin | 433 | net/tcp/raw.c | verify_area (VERIFY_WRITE, sin, sizeof (*sin)); |
sin | 434 | net/tcp/raw.c | memcpy_tofs(sin, &addr, sizeof (*sin)); |
sin | 1386 | net/tcp/sock.c | struct sockaddr_in sin; |
sin | 1391 | net/tcp/sock.c | if (len < sizeof (sin)) return (-EINVAL); |
sin | 1392 | net/tcp/sock.c | sin.sin_family=AF_INET; |
sin | 1403 | net/tcp/sock.c | sin.sin_port = sk->dummy_th.dest; |
sin | 1404 | net/tcp/sock.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 1408 | net/tcp/sock.c | sin.sin_port = sk->dummy_th.source; |
sin | 1410 | net/tcp/sock.c | sin.sin_addr.s_addr = MY_IP_ADDR; |
sin | 1412 | net/tcp/sock.c | sin.sin_addr.s_addr = sk->saddr; |
sin | 1414 | net/tcp/sock.c | len = sizeof (sin); |
sin | 1416 | net/tcp/sock.c | memcpy_tofs(uaddr, &sin, sizeof (sin)); |
sin | 1530 | net/tcp/sock.c | unsigned flags, struct sockaddr *sin, int addr_len ) |
sin | 1557 | net/tcp/sock.c | (struct sockaddr_in *)sin, addr_len)); |
sin | 1562 | net/tcp/sock.c | unsigned flags, struct sockaddr *sin, int *addr_len ) |
sin | 1584 | net/tcp/sock.c | (struct sockaddr_in*)sin, addr_len)); |
sin | 967 | net/tcp/tcp.c | struct sockaddr_in sin; |
sin | 968 | net/tcp/tcp.c | if (addr_len < sizeof (sin)) |
sin | 970 | net/tcp/tcp.c | memcpy_fromfs (&sin, addr, sizeof (sin)); |
sin | 971 | net/tcp/tcp.c | if (sin.sin_family && sin.sin_family != AF_INET) |
sin | 973 | net/tcp/tcp.c | if (sin.sin_port != sk->dummy_th.dest) |
sin | 975 | net/tcp/tcp.c | if (sin.sin_addr.s_addr != sk->daddr) |
sin | 1533 | net/tcp/tcp.c | struct sockaddr_in sin; |
sin | 1538 | net/tcp/tcp.c | if (len > sizeof (sin)) |
sin | 1539 | net/tcp/tcp.c | len = sizeof (sin); |
sin | 1540 | net/tcp/tcp.c | sin.sin_family = AF_INET; |
sin | 1541 | net/tcp/tcp.c | sin.sin_port = sk->dummy_th.dest; |
sin | 1542 | net/tcp/tcp.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 1544 | net/tcp/tcp.c | memcpy_tofs (addr, &sin, len); |
sin | 2708 | net/tcp/tcp.c | struct sockaddr_in sin; |
sin | 2717 | net/tcp/tcp.c | memcpy_fromfs (&sin,usin, min(sizeof (sin), addr_len)); |
sin | 2719 | net/tcp/tcp.c | if (sin.sin_family && sin.sin_family != AF_INET) return (-EAFNOSUPPORT); |
sin | 2721 | net/tcp/tcp.c | sk->daddr = sin.sin_addr.s_addr; |
sin | 2725 | net/tcp/tcp.c | sk->dummy_th.dest = sin.sin_port; |
sin | 325 | net/tcp/udp.c | struct sockaddr_in sin; |
sin | 337 | net/tcp/udp.c | if (addr_len < sizeof (sin)) |
sin | 340 | net/tcp/udp.c | memcpy_fromfs (&sin, usin, sizeof(sin)); |
sin | 341 | net/tcp/udp.c | if (sin.sin_family && |
sin | 342 | net/tcp/udp.c | sin.sin_family != AF_INET) |
sin | 344 | net/tcp/udp.c | if (sin.sin_port == 0) |
sin | 351 | net/tcp/udp.c | sin.sin_family = AF_INET; |
sin | 352 | net/tcp/udp.c | sin.sin_port = sk->dummy_th.dest; |
sin | 353 | net/tcp/udp.c | sin.sin_addr.s_addr = sk->daddr; |
sin | 364 | net/tcp/udp.c | if ((sin.sin_addr.s_addr & 0xff000000) == 0) |
sin | 367 | net/tcp/udp.c | err = udp_loopback (sk, sin.sin_port, from, len, |
sin | 368 | net/tcp/udp.c | sin.sin_addr.s_addr, saddr); |
sin | 415 | net/tcp/udp.c | sin.sin_addr.s_addr, &dev, |
sin | 438 | net/tcp/udp.c | uh->dest = sin.sin_port; |
sin | 455 | net/tcp/udp.c | udp_send_check (uh, saddr, sin.sin_addr.s_addr, |
sin | 518 | net/tcp/udp.c | unsigned flags, struct sockaddr_in *sin, int *addr_len) |
sin | 540 | net/tcp/udp.c | put_fs_long (sizeof (*sin), addr_len); |
sin | 588 | net/tcp/udp.c | if (sin) |
sin | 594 | net/tcp/udp.c | verify_area (VERIFY_WRITE, sin, sizeof (*sin)); |
sin | 595 | net/tcp/udp.c | memcpy_tofs(sin, &addr, sizeof (*sin)); |
sin | 618 | net/tcp/udp.c | struct sockaddr_in sin; |
sin | 619 | net/tcp/udp.c | if (addr_len < sizeof (sin)) return (-EINVAL); |
sin | 621 | net/tcp/udp.c | memcpy_fromfs (&sin, usin, sizeof (sin)); |
sin | 622 | net/tcp/udp.c | if (sin.sin_family && sin.sin_family != AF_INET) |
sin | 624 | net/tcp/udp.c | sk->daddr = sin.sin_addr.s_addr; |
sin | 625 | net/tcp/udp.c | sk->dummy_th.dest = sin.sin_port; |