• Home
  • Raw
  • Download

Lines Matching refs:rtnl_link

196 The cache will contain link objects (+struct rtnl_link+, see <<link_object>>)
208 struct rtnl_link *rtnl_link_get(struct nl_cache *cache, int ifindex);
209 struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *cache, const char *name);
217 struct rtnl_link *link;
241 int rtnl_link_get_kernel(struct nl_sock *sk, int ifindex, const char *name, struct rtnl_link **resu…
252 struct rtnl_link *link;
289 int rtnl_link_add(struct nl_sock *sk, struct rtnl_link *link, int flags);
303 int rtnl_link_delete(struct nl_sock *sk, const struct rtnl_link *link);
312 struct rtnl_link *link;
328 A link is represented by the structure +struct rtnl_link+. Instances may be
336 struct rtnl_link *rtnl_link_alloc(void);
337 void rtnl_link_put(struct rtnl_link *link);
352 void rtnl_link_set_name(struct rtnl_link *link, const char *name);
353 char *rtnl_link_get_name(struct rtnl_link *link);
367 void rtnl_link_set_ifindex(struct rtnl_link *link, int ifindex);
368 int rtnl_link_get_ifindex(struct rtnl_link *link);
381 void rtnl_link_set_group(struct rtnl_link *link, uint32_t group);
382 uint32_t rtnl_link_get_group(struct rtnl_link *link);
393 void rtnl_link_set_addr(struct rtnl_link *link, struct nl_addr *addr);
394 struct nl_addr *rtnl_link_get_addr(struct rtnl_link *link);
405 void rtnl_link_set_broadcast(struct rtnl_link *link, struct nl_addr *addr);
406 struct nl_addr *rtnl_link_get_broadcast(struct rtnl_link *link);
419 void rtnl_link_set_mtu(struct rtnl_link *link, unsigned int mtu);
420 unsigned int rtnl_link_get_mtu(struct rtnl_link *link);
432 void rtnl_link_set_flags(struct rtnl_link *link, unsigned int flags);
433 void rtnl_link_unset_flags(struct rtnl_link *link, unsigned int flags);
434 unsigned int rtnl_link_get_flags(struct rtnl_link *link);
480 void rtnl_link_set_txqlen(struct rtnl_link *link, unsigned int txqlen);
481 unsigned int rtnl_link_get_txqlen(struct rtnl_link *link);
495 void rtnl_link_set_operstate(struct rtnl_link *link, uint8_t state);
496 uint8_t rtnl_link_get_operstate(struct rtnl_link *link);
532 void rtnl_link_set_linkmode(struct rtnl_link *link, uint8_t mode);
533 uint8_t rtnl_link_get_linkmode(struct rtnl_link *link);
552 const char *rtnl_link_get_ifalias(struct rtnl_link *link);
553 void rtnl_link_set_ifalias(struct rtnl_link *link, const char *alias);
566 void rtnl_link_set_arptype(struct rtnl_link *link, unsigned int arptype);
567 unsigned int rtnl_link_get_arptype(struct rtnl_link *link);
594 void rtnl_link_set_qdisc(struct rtnl_link *link, const char *name);
595 char *rtnl_link_get_qdisc(struct rtnl_link *link);
610 void rtnl_link_set_promiscuity(struct rtnl_link *link, uint32_t count);
611 uint32_t rtnl_link_get_promiscuity(struct rtnl_link *link);
623 void rtnl_link_set_num_tx_queues(struct rtnl_link *link, uint32_t nqueues);
624 uint32_t rtnl_link_get_num_tx_queues(struct rtnl_link *link);
626 void rtnl_link_set_num_rx_queues(struct rtnl_link *link, uint32_t nqueues);
627 uint32_t rtnl_link_get_num_rx_queues(struct rtnl_link *link);
646 struct rtnl_link *link;
666 extern int rtnl_link_vlan_set_id(struct rtnl_link *, int);
667 extern int rtnl_link_vlan_get_id(struct rtnl_link *);
669 extern int rtnl_link_vlan_set_flags(struct rtnl_link *,
671 extern int rtnl_link_vlan_unset_flags(struct rtnl_link *,
673 extern unsigned int rtnl_link_vlan_get_flags(struct rtnl_link *);
675 extern int rtnl_link_vlan_set_ingress_map(struct rtnl_link *,
677 extern uint32_t * rtnl_link_vlan_get_ingress_map(struct rtnl_link *);
679 extern int rtnl_link_vlan_set_egress_map(struct rtnl_link *,
681 extern struct vlan_map *rtnl_link_vlan_get_egress_map(struct rtnl_link *,
688 struct rtnl_link *link;
714 extern struct rtnl_link *rtnl_link_macvlan_alloc(void);
716 extern int rtnl_link_is_macvlan(struct rtnl_link *);
724 extern int rtnl_link_macvlan_set_mode(struct rtnl_link *,
726 extern uint32_t rtnl_link_macvlan_get_mode(struct rtnl_link *);
728 extern int rtnl_link_macvlan_set_flags(struct rtnl_link *,
730 extern int rtnl_link_macvlan_unset_flags(struct rtnl_link *,
732 extern uint16_t rtnl_link_macvlan_get_flags(struct rtnl_link *);
738 struct rtnl_link *link;
771 extern struct rtnl_link *rtnl_link_macvtap_alloc(void);
773 extern int rtnl_link_is_macvtap(struct rtnl_link *);
781 extern int rtnl_link_macvtap_set_mode(struct rtnl_link *,
783 extern uint32_t rtnl_link_macvtap_get_mode(struct rtnl_link *);
785 extern int rtnl_link_macvtap_set_flags(struct rtnl_link *,
787 extern int rtnl_link_macvtap_unset_flags(struct rtnl_link *,
789 extern uint16_t rtnl_link_macvtap_get_flags(struct rtnl_link *);
795 struct rtnl_link *link;
828 extern struct rtnl_link *rtnl_link_vxlan_alloc(void);
830 extern int rtnl_link_is_vxlan(struct rtnl_link *);
832 extern int rtnl_link_vxlan_set_id(struct rtnl_link *, uint32_t);
833 extern int rtnl_link_vxlan_get_id(struct rtnl_link *, uint32_t *);
835 extern int rtnl_link_vxlan_set_group(struct rtnl_link *, struct nl_addr *);
836 extern int rtnl_link_vxlan_get_group(struct rtnl_link *, struct nl_addr **);
838 extern int rtnl_link_vxlan_set_link(struct rtnl_link *, uint32_t);
839 extern int rtnl_link_vxlan_get_link(struct rtnl_link *, uint32_t *);
841 extern int rtnl_link_vxlan_set_local(struct rtnl_link *, struct nl_addr *);
842 extern int rtnl_link_vxlan_get_local(struct rtnl_link *, struct nl_addr **);
844 extern int rtnl_link_vxlan_set_ttl(struct rtnl_link *, uint8_t);
845 extern int rtnl_link_vxlan_get_ttl(struct rtnl_link *);
847 extern int rtnl_link_vxlan_set_tos(struct rtnl_link *, uint8_t);
848 extern int rtnl_link_vxlan_get_tos(struct rtnl_link *);
850 extern int rtnl_link_vxlan_set_learning(struct rtnl_link *, uint8_t);
851 extern int rtnl_link_vxlan_get_learning(struct rtnl_link *);
852 extern int rtnl_link_vxlan_enable_learning(struct rtnl_link *);
853 extern int rtnl_link_vxlan_disable_learning(struct rtnl_link *);
855 extern int rtnl_link_vxlan_set_ageing(struct rtnl_link *, uint32_t);
856 extern int rtnl_link_vxlan_get_ageing(struct rtnl_link *, uint32_t *);
858 extern int rtnl_link_vxlan_set_limit(struct rtnl_link *, uint32_t);
859 extern int rtnl_link_vxlan_get_limit(struct rtnl_link *, uint32_t *);
861 extern int rtnl_link_vxlan_set_port_range(struct rtnl_link *,
863 extern int rtnl_link_vxlan_get_port_range(struct rtnl_link *,
866 extern int rtnl_link_vxlan_set_proxy(struct rtnl_link *, uint8_t);
867 extern int rtnl_link_vxlan_get_proxy(struct rtnl_link *);
868 extern int rtnl_link_vxlan_enable_proxy(struct rtnl_link *);
869 extern int rtnl_link_vxlan_disable_proxy(struct rtnl_link *);
871 extern int rtnl_link_vxlan_set_rsc(struct rtnl_link *, uint8_t);
872 extern int rtnl_link_vxlan_get_rsc(struct rtnl_link *);
873 extern int rtnl_link_vxlan_enable_rsc(struct rtnl_link *);
874 extern int rtnl_link_vxlan_disable_rsc(struct rtnl_link *);
876 extern int rtnl_link_vxlan_set_l2miss(struct rtnl_link *, uint8_t);
877 extern int rtnl_link_vxlan_get_l2miss(struct rtnl_link *);
878 extern int rtnl_link_vxlan_enable_l2miss(struct rtnl_link *);
879 extern int rtnl_link_vxlan_disable_l2miss(struct rtnl_link *);
881 extern int rtnl_link_vxlan_set_l3miss(struct rtnl_link *, uint8_t);
882 extern int rtnl_link_vxlan_get_l3miss(struct rtnl_link *);
883 extern int rtnl_link_vxlan_enable_l3miss(struct rtnl_link *);
884 extern int rtnl_link_vxlan_disable_l3miss(struct rtnl_link *);
890 struct rtnl_link *link;
923 extern struct rtnl_link *rtnl_link_ipip_alloc(void);
926 extern int rtnl_link_ipip_set_link(struct rtnl_link *link, uint32_t index);
927 extern uint32_t rtnl_link_ipip_get_link(struct rtnl_link *link);
929 extern int rtnl_link_ipip_set_local(struct rtnl_link *link, uint32_t addr);
930 extern uint32_t rtnl_link_ipip_get_local(struct rtnl_link *link);
932 extern int rtnl_link_ipip_set_remote(struct rtnl_link *link, uint32_t addr);
933 extern uint32_t rtnl_link_ipip_get_remote(struct rtnl_link *link);
935 extern int rtnl_link_ipip_set_ttl(struct rtnl_link *link, uint8_t ttl);
936 extern uint8_t rtnl_link_ipip_get_ttl(struct rtnl_link *link);
938 extern int rtnl_link_ipip_set_tos(struct rtnl_link *link, uint8_t tos);
939 extern uint8_t rtnl_link_ipip_get_tos(struct rtnl_link *link);
941 extern int rtnl_link_ipip_set_pmtudisc(struct rtnl_link *link, uint8_t pmtudisc);
942 extern uint8_t rtnl_link_ipip_get_pmtudisc(struct rtnl_link *link);
949 struct rtnl_link *link
989 extern struct rtnl_link *rtnl_link_ipgre_alloc(void);
992 extern int rtnl_link_ipgre_set_link(struct rtnl_link *link, uint32_t index);
993 extern uint32_t rtnl_link_ipgre_get_link(struct rtnl_link *link);
995 extern int rtnl_link_ipgre_set_iflags(struct rtnl_link *link, uint16_t iflags);
996 extern uint16_t rtnl_link_get_iflags(struct rtnl_link *link);
998 extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags);
999 extern uint16_t rtnl_link_get_oflags(struct rtnl_link *link);
1001 extern int rtnl_link_ipgre_set_ikey(struct rtnl_link *link, uint32_t ikey);
1002 extern uint32_t rtnl_link_get_ikey(struct rtnl_link *link);
1004 extern int rtnl_link_ipgre_set_okey(struct rtnl_link *link, uint32_t okey);
1005 extern uint32_t rtnl_link_get_okey(struct rtnl_link *link)
1007 extern int rtnl_link_ipgre_set_local(struct rtnl_link *link, uint32_t addr);
1008 extern uint32_t rtnl_link_ipgre_get_local(struct rtnl_link *link);
1010 extern int rtnl_link_ipgre_set_remote(struct rtnl_link *link, uint32_t addr);
1011 extern uint32_t rtnl_link_ipgre_get_remote(struct rtnl_link *link);
1013 extern int rtnl_link_ipgre_set_ttl(struct rtnl_link *link, uint8_t ttl);
1014 extern uint8_t rtnl_link_ipgre_get_ttl(struct rtnl_link *link);
1016 extern int rtnl_link_ipgre_set_tos(struct rtnl_link *link, uint8_t tos);
1017 extern uint8_t rtnl_link_ipgre_get_tos(struct rtnl_link *link);
1019 extern int rtnl_link_ipgre_set_pmtudisc(struct rtnl_link *link, uint8_t pmtudisc);
1020 extern uint8_t rtnl_link_ipgre_get_pmtudisc(struct rtnl_link *link);
1027 struct rtnl_link *link
1067 extern struct rtnl_link *rtnl_link_sit_alloc(void);
1070 extern int rtnl_link_sit_set_link(struct rtnl_link *link, uint32_t index);
1071 extern uint32_t rtnl_link_sit_get_link(struct rtnl_link *link);
1073 extern int rtnl_link_sit_set_iflags(struct rtnl_link *link, uint16_t iflags);
1074 extern uint16_t rtnl_link_get_iflags(struct rtnl_link *link);
1076 extern int rtnl_link_sit_set_oflags(struct rtnl_link *link, uint16_t oflags);
1077 extern uint16_t rtnl_link_get_oflags(struct rtnl_link *link);
1079 extern int rtnl_link_sit_set_ikey(struct rtnl_link *link, uint32_t ikey);
1080 extern uint32_t rtnl_link_get_ikey(struct rtnl_link *link);
1082 extern int rtnl_link_sit_set_okey(struct rtnl_link *link, uint32_t okey);
1083 extern uint32_t rtnl_link_get_okey(struct rtnl_link *link)
1085 extern int rtnl_link_sit_set_local(struct rtnl_link *link, uint32_t addr);
1086 extern uint32_t rtnl_link_sit_get_local(struct rtnl_link *link);
1088 extern int rtnl_link_sit_set_remote(struct rtnl_link *link, uint32_t addr);
1089 extern uint32_t rtnl_link_sit_get_remote(struct rtnl_link *link);
1091 extern int rtnl_link_sit_set_ttl(struct rtnl_link *link, uint8_t ttl);
1092 extern uint8_t rtnl_link_sit_get_ttl(struct rtnl_link *link);
1094 extern int rtnl_link_sit_set_tos(struct rtnl_link *link, uint8_t tos);
1095 extern uint8_t rtnl_link_sit_get_tos(struct rtnl_link *link);
1097 extern int rtnl_link_sit_set_pmtudisc(struct rtnl_link *link, uint8_t pmtudisc);
1098 extern uint8_t rtnl_link_sit_get_pmtudisc(struct rtnl_link *link);
1105 struct rtnl_link *link
1146 extern struct rtnl_link *rtnl_link_ipvti_alloc(void);
1149 extern int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index);
1150 extern uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link);
1152 extern int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey);
1153 extern uint32_t rtnl_link_ipvti_get_ikey(struct rtnl_link *link);
1155 extern int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey);
1156 extern uint32_t rtnl_link_ipvti_get_okey(struct rtnl_link *link)
1158 extern int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr);
1159 extern uint32_t rtnl_link_ipvti_get_local(struct rtnl_link *link);
1161 extern int rtnl_link_ipvti_set_remote(struct rtnl_link *link, uint32_t addr);
1162 extern uint32_t rtnl_link_ipvti_get_remote(struct rtnl_link *link);
1169 struct rtnl_link *link
1205 extern struct rtnl_link *rtnl_link_ip6_tnl_alloc(void);
1208 extern int rtnl_link_ip6_tnl_set_link(struct rtnl_link *link, uint32_t index);
1209 extern uint32_t rtnl_link_ip6_tnl_get_link(struct rtnl_link *link);
1211 extern int rtnl_link_ip6_tnl_set_local(struct rtnl_link *link, struct in6_addr *);
1212 extern int rtnl_link_ip6_tnl_get_local(struct rtnl_link *link, struct in6_addr *);
1214 extern int rtnl_link_ip6_tnl_set_remote(struct rtnl_link *link, struct in6_addr *);
1215 extern int rtnl_link_ip6_tnl_get_remote(struct rtnl_link *link, struct in6_addr *);
1217 extern int rtnl_link_ip6_tnl_set_ttl(struct rtnl_link *link, uint8_t ttl);
1218 extern uint8_t rtnl_link_ip6_tnl_get_ttl(struct rtnl_link *link);
1220 extern int rtnl_link_ip6_tnl_set_tos(struct rtnl_link *link, uint8_t tos);
1221 extern uint8_t rtnl_link_ip6_tnl_get_tos(struct rtnl_link *link);
1223 extern int rtnl_link_ip6_tnl_set_encaplimit(struct rtnl_link *link, uint8_t encap_limit);
1224 extern uint8_t rtnl_link_ip6_tnl_get_encaplimit(struct rtnl_link *link);
1226 extern int rtnl_link_ip6_tnl_set_flags(struct rtnl_link *link, uint32_t flags);
1227 extern uint32_t rtnl_link_ip6_tnl_get_flags(struct rtnl_link *link);
1229 extern uint32_t rtnl_link_ip6_tnl_get_flowinfo(struct rtnl_link *link);
1230 extern int rtnl_link_ip6_tnl_set_flowinfo(struct rtnl_link *link, uint32_t flowinfo);
1232 extern int rtnl_link_ip6_tnl_set_proto(struct rtnl_link *link, uint8_t proto);
1233 extern uint8_t rtnl_link_ip6_tnl_get_proto(struct rtnl_link *link);
1240 struct rtnl_link *link
1265 extern struct rtnl_link *rtnl_link_xfrmi_alloc(void);
1267 extern int rtnl_link_xfrmi_set_link(struct rtnl_link *link, uint32_t index);
1268 extern uint32_t rtnl_link_xfrmi_get_link(struct rtnl_link *link);
1270 extern int rtnl_link_xfrmi_set_if_id(struct rtnl_link *link, uint32_t if_id);
1271 extern uint32_t rtnl_link_xfrmi_get_if_id(struct rtnl_link *link);
1278 struct rtnl_link *link
1425 void rtnl_tc_set_link(struct rtnl_tc *tc, struct rtnl_link *link);