Home
last modified time | relevance | path

Searched refs:RTA_PUT (Results 1 – 25 of 38) sorted by relevance

12

/linux-2.4.37.9/net/core/
Drtnetlink.c137 RTA_PUT(skb, RTA_METRICS, 0, NULL); in rtnetlink_put_metrics()
140 RTA_PUT(skb, i+1, sizeof(unsigned), metrics+i); in rtnetlink_put_metrics()
175 RTA_PUT(skb, IFLA_IFNAME, strlen(dev->name)+1, dev->name); in rtnetlink_fill_ifinfo()
177 RTA_PUT(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr); in rtnetlink_fill_ifinfo()
178 RTA_PUT(skb, IFLA_BROADCAST, dev->addr_len, dev->broadcast); in rtnetlink_fill_ifinfo()
182 RTA_PUT(skb, IFLA_MTU, sizeof(mtu), &mtu); in rtnetlink_fill_ifinfo()
185 RTA_PUT(skb, IFLA_LINK, sizeof(int), &dev->iflink); in rtnetlink_fill_ifinfo()
187 RTA_PUT(skb, IFLA_QDISC, in rtnetlink_fill_ifinfo()
191 RTA_PUT(skb, IFLA_MASTER, sizeof(int), &dev->master->ifindex); in rtnetlink_fill_ifinfo()
195 RTA_PUT(skb, IFLA_STATS, sizeof(*stats), stats); in rtnetlink_fill_ifinfo()
/linux-2.4.37.9/net/sched/
Dsch_dsmark.c404 RTA_PUT(skb,TCA_OPTIONS,0,NULL); in dsmark_dump_class()
405 RTA_PUT(skb,TCA_DSMARK_MASK,1,&p->mask[cl-1]); in dsmark_dump_class()
406 RTA_PUT(skb,TCA_DSMARK_VALUE,1,&p->value[cl-1]); in dsmark_dump_class()
422 RTA_PUT(skb,TCA_OPTIONS,0,NULL); in dsmark_dump()
423 RTA_PUT(skb,TCA_DSMARK_INDICES,sizeof(__u16),&p->indices); in dsmark_dump()
427 RTA_PUT(skb,TCA_DSMARK_DEFAULT_INDEX, sizeof(__u16), &tmp); in dsmark_dump()
430 RTA_PUT(skb, TCA_DSMARK_SET_TC_INDEX, 0, NULL); in dsmark_dump()
Dcls_tcindex.c443 RTA_PUT(skb,TCA_OPTIONS,0,NULL); in tcindex_dump()
446 RTA_PUT(skb,TCA_TCINDEX_HASH,sizeof(p->hash),&p->hash); in tcindex_dump()
447 RTA_PUT(skb,TCA_TCINDEX_MASK,sizeof(p->mask),&p->mask); in tcindex_dump()
448 RTA_PUT(skb,TCA_TCINDEX_SHIFT,sizeof(p->shift),&p->shift); in tcindex_dump()
449 RTA_PUT(skb,TCA_TCINDEX_FALL_THROUGH,sizeof(p->fall_through), in tcindex_dump()
469 RTA_PUT(skb, TCA_TCINDEX_CLASSID, 4, &r->res.classid); in tcindex_dump()
474 RTA_PUT(skb,TCA_TCINDEX_POLICE,0,NULL); in tcindex_dump()
Dcls_u32.c650 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in u32_dump()
655 RTA_PUT(skb, TCA_U32_DIVISOR, 4, &divisor); in u32_dump()
657 RTA_PUT(skb, TCA_U32_SEL, in u32_dump()
662 RTA_PUT(skb, TCA_U32_HASH, 4, &htid); in u32_dump()
665 RTA_PUT(skb, TCA_U32_CLASSID, 4, &n->res.classid); in u32_dump()
667 RTA_PUT(skb, TCA_U32_LINK, 4, &n->ht_down->handle); in u32_dump()
672 RTA_PUT(skb, TCA_U32_POLICE, 0, NULL); in u32_dump()
Dcls_route.c567 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in route4_dump()
571 RTA_PUT(skb, TCA_ROUTE4_TO, sizeof(id), &id); in route4_dump()
575 RTA_PUT(skb, TCA_ROUTE4_IIF, sizeof(f->iif), &f->iif); in route4_dump()
578 RTA_PUT(skb, TCA_ROUTE4_FROM, sizeof(id), &id); in route4_dump()
581 RTA_PUT(skb, TCA_ROUTE4_CLASSID, 4, &f->res.classid); in route4_dump()
586 RTA_PUT(skb, TCA_ROUTE4_POLICE, 0, NULL); in route4_dump()
Dpolice.c239 RTA_PUT(skb, TCA_POLICE_TBF, sizeof(opt), &opt); in tcf_police_dump()
241 RTA_PUT(skb, TCA_POLICE_RESULT, sizeof(int), &p->result); in tcf_police_dump()
244 RTA_PUT(skb, TCA_POLICE_AVRATE, 4, &p->ewma_rate); in tcf_police_dump()
Dcls_rsvp.h633 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in rsvp_dump()
635 RTA_PUT(skb, TCA_RSVP_DST, sizeof(s->dst), &s->dst); in rsvp_dump()
642 RTA_PUT(skb, TCA_RSVP_PINFO, sizeof(pinfo), &pinfo); in rsvp_dump()
644 RTA_PUT(skb, TCA_RSVP_CLASSID, 4, &f->res.classid); in rsvp_dump()
646 RTA_PUT(skb, TCA_RSVP_SRC, sizeof(f->src), f->src); in rsvp_dump()
651 RTA_PUT(skb, TCA_RSVP_POLICE, 0, NULL); in rsvp_dump()
Dsch_atm.c634 RTA_PUT(skb,TCA_OPTIONS,0,NULL); in atm_tc_dump_class()
635 RTA_PUT(skb,TCA_ATM_HDR,flow->hdr_len,flow->hdr); in atm_tc_dump_class()
644 RTA_PUT(skb,TCA_ATM_ADDR,sizeof(pvc),&pvc); in atm_tc_dump_class()
646 RTA_PUT(skb,TCA_ATM_STATE,sizeof(state),&state); in atm_tc_dump_class()
649 RTA_PUT(skb,TCA_ATM_EXCESS,sizeof(u32),&flow->classid); in atm_tc_dump_class()
653 RTA_PUT(skb,TCA_ATM_EXCESS,sizeof(zero),&zero); in atm_tc_dump_class()
Dcls_fw.c322 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in fw_dump()
325 RTA_PUT(skb, TCA_FW_CLASSID, 4, &f->res.classid); in fw_dump()
330 RTA_PUT(skb, TCA_FW_POLICE, 0, NULL); in fw_dump()
Dsch_red.c408 RTA_PUT(skb, TCA_XSTATS, sizeof(*st), st); in red_copy_xstats()
423 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in red_dump()
431 RTA_PUT(skb, TCA_RED_PARMS, sizeof(opt), &opt); in red_dump()
Dsch_csz.c812 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in csz_dump()
816 RTA_PUT(skb, TCA_CSZ_PARMS, sizeof(opt), &opt); in csz_dump()
959 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in csz_dump_class()
973 RTA_PUT(skb, TCA_CSZ_PARMS, sizeof(opt), &opt); in csz_dump_class()
Dsch_cbq.c1463 RTA_PUT(skb, TCA_CBQ_RATE, sizeof(cl->R_tab->rate), &cl->R_tab->rate); in cbq_dump_rate()
1488 RTA_PUT(skb, TCA_CBQ_LSSOPT, sizeof(opt), &opt); in cbq_dump_lss()
1506 RTA_PUT(skb, TCA_CBQ_WRROPT, sizeof(opt), &opt); in cbq_dump_wrr()
1523 RTA_PUT(skb, TCA_CBQ_OVL_STRATEGY, sizeof(opt), &opt); in cbq_dump_ovl()
1540 RTA_PUT(skb, TCA_CBQ_FOPT, sizeof(opt), &opt); in cbq_dump_fopt()
1559 RTA_PUT(skb, TCA_CBQ_POLICE, sizeof(opt), &opt); in cbq_dump_police()
1585 RTA_PUT(skb, TCA_XSTATS, sizeof(*st), st); in cbq_copy_xstats()
1600 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in cbq_dump()
1635 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in cbq_dump_class()
Dsch_fifo.c165 RTA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); in fifo_dump()
Dsch_tbf.c415 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in tbf_dump()
425 RTA_PUT(skb, TCA_TBF_PARMS, sizeof(opt), &opt); in tbf_dump()
Dsch_netem.c473 RTA_PUT(skb, TCA_OPTIONS, sizeof(qopt), &qopt); in netem_dump()
478 RTA_PUT(skb, TCA_NETEM_CORR, sizeof(cor), &cor); in netem_dump()
Dsch_htb.c1287 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in htb_dump()
1288 RTA_PUT(skb, TCA_HTB_INIT, sizeof(gopt), &gopt); in htb_dump()
1320 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in htb_dump_class()
1328 RTA_PUT(skb, TCA_HTB_PARMS, sizeof(opt), &opt); in htb_dump_class()
1338 RTA_PUT(skb, TCA_STATS, sizeof(cl->stats), &cl->stats); in htb_dump_class()
1339 RTA_PUT(skb, TCA_XSTATS, sizeof(cl->xstats), &cl->xstats); in htb_dump_class()
Dsch_ingress.c328 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); in ingress_dump()
/linux-2.4.37.9/net/ipv4/
Dfib_rules.c414 RTA_PUT(skb, RTA_PROTOINFO, 4, &r->r_fwmark); in inet_fill_rule()
423 RTA_PUT(skb, RTA_DST, 4, &r->r_dst); in inet_fill_rule()
425 RTA_PUT(skb, RTA_SRC, 4, &r->r_src); in inet_fill_rule()
427 RTA_PUT(skb, RTA_IIF, IFNAMSIZ, &r->r_ifname); in inet_fill_rule()
429 RTA_PUT(skb, RTA_PRIORITY, 4, &r->r_preference); in inet_fill_rule()
431 RTA_PUT(skb, RTA_GATEWAY, 4, &r->r_srcmap); in inet_fill_rule()
434 RTA_PUT(skb, RTA_FLOW, 4, &r->r_tclassid); in inet_fill_rule()
Dfib_semantics.c663 RTA_PUT(skb, RTA_DST, 4, dst); in fib_dump_info()
666 RTA_PUT(skb, RTA_PRIORITY, 4, &fi->fib_priority); in fib_dump_info()
669 RTA_PUT(skb, RTA_FLOW, 4, &fi->fib_nh[0].nh_tclassid); in fib_dump_info()
674 RTA_PUT(skb, RTA_PREFSRC, 4, &fi->fib_prefsrc); in fib_dump_info()
677 RTA_PUT(skb, RTA_GATEWAY, 4, &fi->fib_nh->nh_gw); in fib_dump_info()
679 RTA_PUT(skb, RTA_OIF, sizeof(int), &fi->fib_nh->nh_oif); in fib_dump_info()
697 RTA_PUT(skb, RTA_GATEWAY, 4, &nh->nh_gw); in fib_dump_info()
Ddevinet.c989 RTA_PUT(skb, IFA_ADDRESS, 4, &ifa->ifa_address); in inet_fill_ifaddr()
991 RTA_PUT(skb, IFA_LOCAL, 4, &ifa->ifa_local); in inet_fill_ifaddr()
993 RTA_PUT(skb, IFA_BROADCAST, 4, &ifa->ifa_broadcast); in inet_fill_ifaddr()
995 RTA_PUT(skb, IFA_ANYCAST, 4, &ifa->ifa_anycast); in inet_fill_ifaddr()
997 RTA_PUT(skb, IFA_LABEL, IFNAMSIZ, &ifa->ifa_label); in inet_fill_ifaddr()
Droute.c2128 RTA_PUT(skb, RTA_DST, 4, &rt->rt_dst); in rt_fill_info()
2131 RTA_PUT(skb, RTA_SRC, 4, &rt->key.src); in rt_fill_info()
2134 RTA_PUT(skb, RTA_OIF, sizeof(int), &rt->u.dst.dev->ifindex); in rt_fill_info()
2137 RTA_PUT(skb, RTA_FLOW, 4, &rt->u.dst.tclassid); in rt_fill_info()
2140 RTA_PUT(skb, RTA_PREFSRC, 4, &rt->rt_spec_dst); in rt_fill_info()
2142 RTA_PUT(skb, RTA_PREFSRC, 4, &rt->rt_src); in rt_fill_info()
2144 RTA_PUT(skb, RTA_GATEWAY, 4, &rt->rt_gateway); in rt_fill_info()
2166 RTA_PUT(skb, RTA_CACHEINFO, sizeof(ci), &ci); in rt_fill_info()
2187 RTA_PUT(skb, RTA_IIF, sizeof(int), &rt->key.iif); in rt_fill_info()
/linux-2.4.37.9/net/decnet/
Ddn_rules.c317 RTA_PUT(skb, RTA_PROTOINFO, 4, &r->r_fwmark); in dn_fib_fill_rule()
326 RTA_PUT(skb, RTA_DST, 2, &r->r_dst); in dn_fib_fill_rule()
328 RTA_PUT(skb, RTA_SRC, 2, &r->r_src); in dn_fib_fill_rule()
330 RTA_PUT(skb, RTA_IIF, IFNAMSIZ, &r->r_ifname); in dn_fib_fill_rule()
332 RTA_PUT(skb, RTA_PRIORITY, 4, &r->r_preference); in dn_fib_fill_rule()
Ddn_table.c289 RTA_PUT(skb, RTA_DST, 2, dst); in dn_fib_dump_info()
292 RTA_PUT(skb, RTA_PRIORITY, 4, &fi->fib_priority); in dn_fib_dump_info()
295 RTA_PUT(skb, RTA_GATEWAY, 2, &fi->fib_nh->nh_gw); in dn_fib_dump_info()
297 RTA_PUT(skb, RTA_OIF, sizeof(int), &fi->fib_nh->nh_oif); in dn_fib_dump_info()
314 RTA_PUT(skb, RTA_GATEWAY, 2, &nh->nh_gw); in dn_fib_dump_info()
Ddn_route.c1048 RTA_PUT(skb, RTA_DST, 2, &rt->rt_daddr); in dn_rt_fill_info()
1049 RTA_PUT(skb, RTA_SRC, 2, &rt->rt_saddr); in dn_rt_fill_info()
1051 RTA_PUT(skb, RTA_OIF, sizeof(int), &rt->u.dst.dev->ifindex); in dn_rt_fill_info()
1053 RTA_PUT(skb, RTAX_WINDOW, sizeof(unsigned), &rt->u.dst.window); in dn_rt_fill_info()
1055 RTA_PUT(skb, RTAX_RTT, sizeof(unsigned), &rt->u.dst.rtt); in dn_rt_fill_info()
/linux-2.4.37.9/net/ipv6/
Droute.c1622 RTA_PUT(skb, RTA_DST, 16, dst); in rt6_fill_node()
1625 RTA_PUT(skb, RTA_DST, 16, &rt->rt6i_dst.addr); in rt6_fill_node()
1628 RTA_PUT(skb, RTA_SRC, 16, src); in rt6_fill_node()
1631 RTA_PUT(skb, RTA_SRC, 16, &rt->rt6i_src.addr); in rt6_fill_node()
1634 RTA_PUT(skb, RTA_IIF, 4, &iif); in rt6_fill_node()
1638 RTA_PUT(skb, RTA_PREFSRC, 16, &saddr_buf); in rt6_fill_node()
1643 RTA_PUT(skb, RTA_GATEWAY, 16, &rt->u.dst.neighbour->primary_key); in rt6_fill_node()
1645 RTA_PUT(skb, RTA_OIF, sizeof(int), &rt->rt6i_dev->ifindex); in rt6_fill_node()
1646 RTA_PUT(skb, RTA_PRIORITY, 4, &rt->rt6i_metric); in rt6_fill_node()
1658 RTA_PUT(skb, RTA_CACHEINFO, sizeof(ci), &ci); in rt6_fill_node()

12