• Home
  • Raw
  • Download

Lines Matching refs:req

389 	} req;  in tc_action_gd()  local
391 req.t.tca_family = AF_UNSPEC; in tc_action_gd()
393 memset(&req, 0, sizeof(req)); in tc_action_gd()
398 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg)); in tc_action_gd()
399 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in tc_action_gd()
400 req.n.nlmsg_type = cmd; in tc_action_gd()
405 tail = NLMSG_TAIL(&req.n); in tc_action_gd()
406 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_action_gd()
453 tail2 = NLMSG_TAIL(&req.n); in tc_action_gd()
454 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_action_gd()
455 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_action_gd()
456 addattr32(&req.n, MAX_MSG, TCA_ACT_INDEX, i); in tc_action_gd()
457 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_action_gd()
461 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_gd()
463 req.n.nlmsg_seq = rth.dump = ++rth.seq; in tc_action_gd()
465 ans = &req.n; in tc_action_gd()
467 if (rtnl_talk(&rth, &req.n, 0, 0, ans, NULL, NULL) < 0) { in tc_action_gd()
472 if (ans && print_action(NULL, &req.n, (void*)stdout) < 0) { in tc_action_gd()
494 } req; in tc_action_modify() local
496 req.t.tca_family = AF_UNSPEC; in tc_action_modify()
498 memset(&req, 0, sizeof(req)); in tc_action_modify()
500 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg)); in tc_action_modify()
501 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in tc_action_modify()
502 req.n.nlmsg_type = cmd; in tc_action_modify()
503 tail = NLMSG_TAIL(&req.n); in tc_action_modify()
506 if (parse_action(&argc, &argv, TCA_ACT_TAB, &req.n)) { in tc_action_modify()
510 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_modify()
512 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) { in tc_action_modify()
533 } req; in tc_act_list_or_flush() local
535 req.t.tca_family = AF_UNSPEC; in tc_act_list_or_flush()
537 memset(&req, 0, sizeof(req)); in tc_act_list_or_flush()
539 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg)); in tc_act_list_or_flush()
541 tail = NLMSG_TAIL(&req.n); in tc_act_list_or_flush()
542 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_act_list_or_flush()
543 tail2 = NLMSG_TAIL(&req.n); in tc_act_list_or_flush()
562 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_act_list_or_flush()
563 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_act_list_or_flush()
564 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_act_list_or_flush()
565 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_act_list_or_flush()
567 msg_size = NLMSG_ALIGN(req.n.nlmsg_len) - NLMSG_ALIGN(sizeof(struct nlmsghdr)); in tc_act_list_or_flush()
570 if (rtnl_dump_request(&rth, event, (void *)&req.t, msg_size) < 0) { in tc_act_list_or_flush()
578 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len); in tc_act_list_or_flush()
579 req.n.nlmsg_type = RTM_DELACTION; in tc_act_list_or_flush()
580 req.n.nlmsg_flags |= NLM_F_ROOT; in tc_act_list_or_flush()
581 req.n.nlmsg_flags |= NLM_F_REQUEST; in tc_act_list_or_flush()
582 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) { in tc_act_list_or_flush()