Lines Matching refs:rep
60 struct sk_buff *rep; member
220 if (tipc_skb_tailroom(msg->rep) <= 1) { in __tipc_nl_compat_dumpit()
241 if ((TIPC_SKB_MAX - msg->rep->len) <= 1) { in __tipc_nl_compat_dumpit()
242 char *tail = skb_tail_pointer(msg->rep); in __tipc_nl_compat_dumpit()
265 msg->rep = tipc_tlv_alloc(msg->rep_size); in tipc_nl_compat_dumpit()
266 if (!msg->rep) in tipc_nl_compat_dumpit()
270 tipc_tlv_init(msg->rep, msg->rep_type); in tipc_nl_compat_dumpit()
275 kfree_skb(msg->rep); in tipc_nl_compat_dumpit()
276 msg->rep = NULL; in tipc_nl_compat_dumpit()
283 kfree_skb(msg->rep); in tipc_nl_compat_dumpit()
284 msg->rep = NULL; in tipc_nl_compat_dumpit()
290 kfree_skb(msg->rep); in tipc_nl_compat_dumpit()
291 msg->rep = NULL; in tipc_nl_compat_dumpit()
368 msg->rep = tipc_tlv_alloc(0); in tipc_nl_compat_doit()
369 if (!msg->rep) in tipc_nl_compat_doit()
389 return tipc_add_tlv(msg->rep, TIPC_TLV_BEARER_NAME, in tipc_nl_compat_bearer_dump()
475 tipc_tlv_sprintf(msg->rep, " Window:%u packets\n", in __fill_bc_link_stat()
478 tipc_tlv_sprintf(msg->rep, in __fill_bc_link_stat()
486 tipc_tlv_sprintf(msg->rep, in __fill_bc_link_stat()
494 tipc_tlv_sprintf(msg->rep, " RX naks:%u defs:%u dups:%u\n", in __fill_bc_link_stat()
499 tipc_tlv_sprintf(msg->rep, " TX naks:%u acks:%u dups:%u\n", in __fill_bc_link_stat()
504 tipc_tlv_sprintf(msg->rep, in __fill_bc_link_stat()
560 tipc_tlv_sprintf(msg->rep, "\nLink <%s>\n", in tipc_nl_compat_link_stat_dump()
569 tipc_tlv_sprintf(msg->rep, " ACTIVE"); in tipc_nl_compat_link_stat_dump()
571 tipc_tlv_sprintf(msg->rep, " STANDBY"); in tipc_nl_compat_link_stat_dump()
573 tipc_tlv_sprintf(msg->rep, " DEFUNCT"); in tipc_nl_compat_link_stat_dump()
575 tipc_tlv_sprintf(msg->rep, " MTU:%u Priority:%u", in tipc_nl_compat_link_stat_dump()
579 tipc_tlv_sprintf(msg->rep, " Tolerance:%u ms Window:%u packets\n", in tipc_nl_compat_link_stat_dump()
583 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
592 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
601 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
607 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
618 tipc_tlv_sprintf(msg->rep, "-16384:%u%% -32768:%u%% -66000:%u%%\n", in tipc_nl_compat_link_stat_dump()
626 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
634 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
642 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
671 return tipc_add_tlv(msg->rep, TIPC_TLV_LINK_INFO, in tipc_nl_compat_link_dump()
858 tipc_tlv_sprintf(msg->rep, header[i]); in tipc_nl_compat_name_table_dump_header()
859 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_name_table_dump_header()
909 tipc_tlv_sprintf(msg->rep, "%-10u ", in tipc_nl_compat_name_table_dump()
915 tipc_tlv_sprintf(msg->rep, "%-10u %-10u ", in tipc_nl_compat_name_table_dump()
925 tipc_tlv_sprintf(msg->rep, "%-26s ", port_str); in tipc_nl_compat_name_table_dump()
930 tipc_tlv_sprintf(msg->rep, "%-10u %s", in tipc_nl_compat_name_table_dump()
934 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_name_table_dump()
959 tipc_tlv_sprintf(msg->rep, " {%u,%u}", type, lower); in __tipc_nl_compat_publ_dump()
961 tipc_tlv_sprintf(msg->rep, " {%u,%u,%u}", type, lower, upper); in __tipc_nl_compat_publ_dump()
1025 tipc_tlv_sprintf(msg->rep, "%u:", sock_ref); in tipc_nl_compat_sk_dump()
1039 tipc_tlv_sprintf(msg->rep, " connected to <%u.%u.%u:%u>", in tipc_nl_compat_sk_dump()
1046 tipc_tlv_sprintf(msg->rep, " via {%u,%u}\n", in tipc_nl_compat_sk_dump()
1050 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_sk_dump()
1052 tipc_tlv_sprintf(msg->rep, " bound to"); in tipc_nl_compat_sk_dump()
1058 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_sk_dump()
1077 return tipc_add_tlv(msg->rep, TIPC_TLV_MEDIA_NAME, in tipc_nl_compat_media_dump()
1100 return tipc_add_tlv(msg->rep, TIPC_TLV_NODE_INFO, &node_info, in tipc_nl_compat_node_dump()
1146 return tipc_add_tlv(msg->rep, TIPC_TLV_UNSIGNED, &id, sizeof(id)); in tipc_nl_compat_net_dump()
1151 msg->rep = tipc_tlv_alloc(ULTRA_STRING_MAX_LEN); in tipc_cmd_show_stats_compat()
1152 if (!msg->rep) in tipc_cmd_show_stats_compat()
1155 tipc_tlv_init(msg->rep, TIPC_TLV_ULTRA_STRING); in tipc_cmd_show_stats_compat()
1156 tipc_tlv_sprintf(msg->rep, "TIPC version " TIPC_MOD_VER "\n"); in tipc_cmd_show_stats_compat()
1171 msg->rep = tipc_tlv_alloc(0); in tipc_nl_compat_handle()
1172 if (!msg->rep) in tipc_nl_compat_handle()
1279 msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_NET_ADMIN); in tipc_nl_compat_recv()
1286 msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_SUPPORTED); in tipc_nl_compat_recv()
1293 msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_SUPPORTED); in tipc_nl_compat_recv()
1295 msg.rep = tipc_get_err_tlv(TIPC_CFG_TLV_ERROR); in tipc_nl_compat_recv()
1297 if (!msg.rep) in tipc_nl_compat_recv()
1301 skb_push(msg.rep, len); in tipc_nl_compat_recv()
1302 rep_nlh = nlmsg_hdr(msg.rep); in tipc_nl_compat_recv()
1304 rep_nlh->nlmsg_len = msg.rep->len; in tipc_nl_compat_recv()
1305 genlmsg_unicast(msg.net, msg.rep, NETLINK_CB(skb).portid); in tipc_nl_compat_recv()