Lines Matching refs:id
79 r->id.idiag_sport = htons(sk->sk_num); in inet_diag_msg_common_fill()
80 r->id.idiag_dport = sk->sk_dport; in inet_diag_msg_common_fill()
81 r->id.idiag_if = sk->sk_bound_dev_if; in inet_diag_msg_common_fill()
82 sock_diag_save_cookie(sk, r->id.idiag_cookie); in inet_diag_msg_common_fill()
86 *(struct in6_addr *)r->id.idiag_src = sk->sk_v6_rcv_saddr; in inet_diag_msg_common_fill()
87 *(struct in6_addr *)r->id.idiag_dst = sk->sk_v6_daddr; in inet_diag_msg_common_fill()
91 memset(&r->id.idiag_src, 0, sizeof(r->id.idiag_src)); in inet_diag_msg_common_fill()
92 memset(&r->id.idiag_dst, 0, sizeof(r->id.idiag_dst)); in inet_diag_msg_common_fill()
94 r->id.idiag_src[0] = sk->sk_rcv_saddr; in inet_diag_msg_common_fill()
95 r->id.idiag_dst[0] = sk->sk_daddr; in inet_diag_msg_common_fill()
518 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[0], in inet_diag_find_one_icsk()
519 req->id.idiag_dport, req->id.idiag_src[0], in inet_diag_find_one_icsk()
520 req->id.idiag_sport, req->id.idiag_if); in inet_diag_find_one_icsk()
523 if (ipv6_addr_v4mapped((struct in6_addr *)req->id.idiag_dst) && in inet_diag_find_one_icsk()
524 ipv6_addr_v4mapped((struct in6_addr *)req->id.idiag_src)) in inet_diag_find_one_icsk()
525 sk = inet_lookup(net, hashinfo, NULL, 0, req->id.idiag_dst[3], in inet_diag_find_one_icsk()
526 req->id.idiag_dport, req->id.idiag_src[3], in inet_diag_find_one_icsk()
527 req->id.idiag_sport, req->id.idiag_if); in inet_diag_find_one_icsk()
530 (struct in6_addr *)req->id.idiag_dst, in inet_diag_find_one_icsk()
531 req->id.idiag_dport, in inet_diag_find_one_icsk()
532 (struct in6_addr *)req->id.idiag_src, in inet_diag_find_one_icsk()
533 req->id.idiag_sport, in inet_diag_find_one_icsk()
534 req->id.idiag_if); in inet_diag_find_one_icsk()
545 if (sock_diag_check_cookie(sk, req->id.idiag_cookie)) { in inet_diag_find_one_icsk()
1028 if (!(idiag_states & TCPF_LISTEN) || r->id.idiag_dport) in inet_diag_dump_icsk()
1054 if (r->id.idiag_sport != inet->inet_sport && in inet_diag_dump_icsk()
1055 r->id.idiag_sport) in inet_diag_dump_icsk()
1116 if (r->id.idiag_sport != htons(sk->sk_num) && in inet_diag_dump_icsk()
1117 r->id.idiag_sport) in inet_diag_dump_icsk()
1119 if (r->id.idiag_dport != sk->sk_dport && in inet_diag_dump_icsk()
1120 r->id.idiag_dport) in inet_diag_dump_icsk()
1286 req.id = rc->id; in inet_diag_dump_compat()
1302 req.id = rc->id; in inet_diag_get_exact_compat()
1369 r->id.idiag_sport = inet_sk(sk)->inet_sport; in inet_diag_handler_get_info()