Home | History | Annotate | Download | only in src

Lines Matching refs:cb

78 	struct nfnl_callback 	*cb;	/* array of callbacks */
354 if (ssh->cb) {
359 ssh->cb = calloc(cb_count, sizeof(*(ssh->cb)));
360 if (!ssh->cb)
375 free(ssh->cb);
376 ssh->cb = NULL;
394 if (ssh->cb) {
395 free(ssh->cb);
396 ssh->cb = NULL;
1193 * @cb: nfnetlink callback to be registered
1199 u_int8_t type, struct nfnl_callback *cb)
1202 assert(cb);
1209 memcpy(&ssh->cb[type], cb, sizeof(*cb));
1231 ssh->cb[type].call = NULL;
1248 struct nfnl_callback *cb;
1254 cb = &ssh->cb[type];
1266 memset(nfa, 0, sizeof(struct nfattr *) * cb->attr_count);
1275 if (flavor > cb->attr_count) {
1311 if (ssh->cb[type].attr_count) {
1312 struct nfattr *nfa[ssh->cb[type].attr_count];
1317 if (ssh->cb[type].call)
1318 return ssh->cb[type].call(nlh, nfa, ssh->cb[type].data);
1403 if (ssh->cb[type].attr_count) {
1405 struct nfattr *tb[ssh->cb[type].attr_count];
1410 err = nfnl_parse_attr(tb, ssh->cb[type].attr_count, attr, len);
1414 if (ssh->cb[type].call) {
1422 return ssh->cb[type].call(nlh,
1424 ssh->cb[type].data);