Lines Matching refs:rep
60 struct sk_buff *rep; member
242 if (tipc_skb_tailroom(msg->rep) <= 1) { in __tipc_nl_compat_dumpit()
264 if ((TIPC_SKB_MAX - msg->rep->len) <= 1) { in __tipc_nl_compat_dumpit()
265 char *tail = skb_tail_pointer(msg->rep); in __tipc_nl_compat_dumpit()
289 msg->rep = tipc_tlv_alloc(msg->rep_size); in tipc_nl_compat_dumpit()
290 if (!msg->rep) in tipc_nl_compat_dumpit()
294 tipc_tlv_init(msg->rep, msg->rep_type); in tipc_nl_compat_dumpit()
299 kfree_skb(msg->rep); in tipc_nl_compat_dumpit()
300 msg->rep = NULL; in tipc_nl_compat_dumpit()
307 kfree_skb(msg->rep); in tipc_nl_compat_dumpit()
308 msg->rep = NULL; in tipc_nl_compat_dumpit()
315 kfree_skb(msg->rep); in tipc_nl_compat_dumpit()
316 msg->rep = NULL; in tipc_nl_compat_dumpit()
323 kfree_skb(msg->rep); in tipc_nl_compat_dumpit()
324 msg->rep = NULL; in tipc_nl_compat_dumpit()
401 msg->rep = tipc_tlv_alloc(0); in tipc_nl_compat_doit()
402 if (!msg->rep) in tipc_nl_compat_doit()
422 return tipc_add_tlv(msg->rep, TIPC_TLV_BEARER_NAME, in tipc_nl_compat_bearer_dump()
508 tipc_tlv_sprintf(msg->rep, " Window:%u packets\n", in __fill_bc_link_stat()
511 tipc_tlv_sprintf(msg->rep, in __fill_bc_link_stat()
519 tipc_tlv_sprintf(msg->rep, in __fill_bc_link_stat()
527 tipc_tlv_sprintf(msg->rep, " RX naks:%u defs:%u dups:%u\n", in __fill_bc_link_stat()
532 tipc_tlv_sprintf(msg->rep, " TX naks:%u acks:%u dups:%u\n", in __fill_bc_link_stat()
537 tipc_tlv_sprintf(msg->rep, in __fill_bc_link_stat()
593 tipc_tlv_sprintf(msg->rep, "\nLink <%s>\n", in tipc_nl_compat_link_stat_dump()
602 tipc_tlv_sprintf(msg->rep, " ACTIVE"); in tipc_nl_compat_link_stat_dump()
604 tipc_tlv_sprintf(msg->rep, " STANDBY"); in tipc_nl_compat_link_stat_dump()
606 tipc_tlv_sprintf(msg->rep, " DEFUNCT"); in tipc_nl_compat_link_stat_dump()
608 tipc_tlv_sprintf(msg->rep, " MTU:%u Priority:%u", in tipc_nl_compat_link_stat_dump()
612 tipc_tlv_sprintf(msg->rep, " Tolerance:%u ms Window:%u packets\n", in tipc_nl_compat_link_stat_dump()
616 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
625 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()
640 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
651 tipc_tlv_sprintf(msg->rep, "-16384:%u%% -32768:%u%% -66000:%u%%\n", in tipc_nl_compat_link_stat_dump()
659 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
667 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
675 tipc_tlv_sprintf(msg->rep, in tipc_nl_compat_link_stat_dump()
704 return tipc_add_tlv(msg->rep, TIPC_TLV_LINK_INFO, in tipc_nl_compat_link_dump()
891 tipc_tlv_sprintf(msg->rep, header[i]); in tipc_nl_compat_name_table_dump_header()
892 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_name_table_dump_header()
942 tipc_tlv_sprintf(msg->rep, "%-10u ", in tipc_nl_compat_name_table_dump()
948 tipc_tlv_sprintf(msg->rep, "%-10u %-10u ", in tipc_nl_compat_name_table_dump()
958 tipc_tlv_sprintf(msg->rep, "%-26s ", port_str); in tipc_nl_compat_name_table_dump()
963 tipc_tlv_sprintf(msg->rep, "%-10u %s", in tipc_nl_compat_name_table_dump()
967 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_name_table_dump()
992 tipc_tlv_sprintf(msg->rep, " {%u,%u}", type, lower); in __tipc_nl_compat_publ_dump()
994 tipc_tlv_sprintf(msg->rep, " {%u,%u,%u}", type, lower, upper); in __tipc_nl_compat_publ_dump()
1058 tipc_tlv_sprintf(msg->rep, "%u:", sock_ref); in tipc_nl_compat_sk_dump()
1072 tipc_tlv_sprintf(msg->rep, " connected to <%u.%u.%u:%u>", in tipc_nl_compat_sk_dump()
1079 tipc_tlv_sprintf(msg->rep, " via {%u,%u}\n", in tipc_nl_compat_sk_dump()
1083 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_sk_dump()
1085 tipc_tlv_sprintf(msg->rep, " bound to"); in tipc_nl_compat_sk_dump()
1091 tipc_tlv_sprintf(msg->rep, "\n"); in tipc_nl_compat_sk_dump()
1110 return tipc_add_tlv(msg->rep, TIPC_TLV_MEDIA_NAME, in tipc_nl_compat_media_dump()
1133 return tipc_add_tlv(msg->rep, TIPC_TLV_NODE_INFO, &node_info, in tipc_nl_compat_node_dump()
1179 return tipc_add_tlv(msg->rep, TIPC_TLV_UNSIGNED, &id, sizeof(id)); in tipc_nl_compat_net_dump()
1184 msg->rep = tipc_tlv_alloc(ULTRA_STRING_MAX_LEN); in tipc_cmd_show_stats_compat()
1185 if (!msg->rep) in tipc_cmd_show_stats_compat()
1188 tipc_tlv_init(msg->rep, TIPC_TLV_ULTRA_STRING); in tipc_cmd_show_stats_compat()
1189 tipc_tlv_sprintf(msg->rep, "TIPC version " TIPC_MOD_VER "\n"); in tipc_cmd_show_stats_compat()
1204 msg->rep = tipc_tlv_alloc(0); in tipc_nl_compat_handle()
1205 if (!msg->rep) in tipc_nl_compat_handle()
1312 msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_NET_ADMIN); in tipc_nl_compat_recv()
1319 msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_SUPPORTED); in tipc_nl_compat_recv()
1326 msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_SUPPORTED); in tipc_nl_compat_recv()
1328 msg.rep = tipc_get_err_tlv(TIPC_CFG_TLV_ERROR); in tipc_nl_compat_recv()
1330 if (!msg.rep) in tipc_nl_compat_recv()
1334 skb_push(msg.rep, len); in tipc_nl_compat_recv()
1335 rep_nlh = nlmsg_hdr(msg.rep); in tipc_nl_compat_recv()
1337 rep_nlh->nlmsg_len = msg.rep->len; in tipc_nl_compat_recv()
1338 genlmsg_unicast(msg.net, msg.rep, NETLINK_CB(skb).portid); in tipc_nl_compat_recv()