Lines Matching refs:diag_msg
147 const struct inet_diag_msg *const diag_msg = data; in inet_parse_response() local
151 if (data_len < (int) NLMSG_LENGTH(sizeof(*diag_msg))) in inet_parse_response()
153 if (diag_msg->idiag_inode != inode) in inet_parse_response()
156 switch (diag_msg->idiag_family) { in inet_parse_response()
173 const char *ob = diag_msg->idiag_family == AF_INET6 ? "[" : ""; in inet_parse_response()
174 const char *cb = diag_msg->idiag_family == AF_INET6 ? "]" : ""; in inet_parse_response()
176 if (!inet_ntop(diag_msg->idiag_family, diag_msg->id.idiag_src, in inet_parse_response()
180 if (diag_msg->id.idiag_dport || in inet_parse_response()
181 memcmp(zero_addr, diag_msg->id.idiag_dst, addr_size)) { in inet_parse_response()
184 if (!inet_ntop(diag_msg->idiag_family, diag_msg->id.idiag_dst, in inet_parse_response()
189 ob, src_buf, cb, ntohs(diag_msg->id.idiag_sport), in inet_parse_response()
190 ob, dst_buf, cb, ntohs(diag_msg->id.idiag_dport)) in inet_parse_response()
196 ntohs(diag_msg->id.idiag_sport)) < 0) in inet_parse_response()
291 const struct unix_diag_msg *diag_msg = data; in unix_parse_response() local
293 int rta_len = data_len - NLMSG_LENGTH(sizeof(*diag_msg)); in unix_parse_response()
300 if (diag_msg->udiag_ino != inode) in unix_parse_response()
302 if (diag_msg->udiag_family != AF_UNIX) in unix_parse_response()
305 for (attr = (struct rtattr *) (diag_msg + 1); in unix_parse_response()
389 const struct netlink_diag_msg *const diag_msg = data; in netlink_parse_response() local
393 if (data_len < (int) NLMSG_LENGTH(sizeof(*diag_msg))) in netlink_parse_response()
395 if (diag_msg->ndiag_ino != inode) in netlink_parse_response()
398 if (diag_msg->ndiag_family != AF_NETLINK) in netlink_parse_response()
402 diag_msg->ndiag_protocol); in netlink_parse_response()
407 netlink_proto, diag_msg->ndiag_portid) < 0) in netlink_parse_response()
411 (unsigned) diag_msg->ndiag_protocol) < 0) in netlink_parse_response()