Home
last modified time | relevance | path

Searched refs:addattr16 (Results 1 – 18 of 18) sorted by relevance

/external/iproute2/ip/
Dlink_iptnl.c301 addattr16(n, 1024, IFLA_IPTUN_ENCAP_TYPE, encaptype); in iptunnel_parse_opt()
302 addattr16(n, 1024, IFLA_IPTUN_ENCAP_FLAGS, encapflags); in iptunnel_parse_opt()
303 addattr16(n, 1024, IFLA_IPTUN_ENCAP_SPORT, htons(encapsport)); in iptunnel_parse_opt()
304 addattr16(n, 1024, IFLA_IPTUN_ENCAP_DPORT, htons(encapdport)); in iptunnel_parse_opt()
307 addattr16(n, 1024, IFLA_IPTUN_FLAGS, iflags); in iptunnel_parse_opt()
312 addattr16(n, 1024, IFLA_IPTUN_6RD_PREFIXLEN, in iptunnel_parse_opt()
316 addattr16(n, 1024, IFLA_IPTUN_6RD_RELAY_PREFIXLEN, in iptunnel_parse_opt()
Diplink_bridge.c85 addattr16(n, 1024, IFLA_BR_PRIORITY, prio); in bridge_parse_opt()
103 addattr16(n, 1024, IFLA_BR_VLAN_PROTOCOL, vlan_proto); in bridge_parse_opt()
Dipl2tp.c107 addattr16(&req.n, 1024, L2TP_ATTR_ENCAP_TYPE, p->encap); in create_tunnel()
118 addattr16(&req.n, 1024, L2TP_ATTR_UDP_SPORT, p->local_udp_port); in create_tunnel()
119 addattr16(&req.n, 1024, L2TP_ATTR_UDP_DPORT, p->peer_udp_port); in create_tunnel()
150 addattr16(&req.n, 1024, L2TP_ATTR_PW_TYPE, p->pw_type); in create_session()
154 if (p->mtu) addattr16(&req.n, 1024, L2TP_ATTR_MTU, p->mtu); in create_session()
161 if (p->offset) addattr16(&req.n, 1024, L2TP_ATTR_OFFSET, p->offset); in create_session()
Dlink_gre.c330 addattr16(n, 1024, IFLA_GRE_ENCAP_TYPE, encaptype); in gre_parse_opt()
331 addattr16(n, 1024, IFLA_GRE_ENCAP_FLAGS, encapflags); in gre_parse_opt()
332 addattr16(n, 1024, IFLA_GRE_ENCAP_SPORT, htons(encapsport)); in gre_parse_opt()
333 addattr16(n, 1024, IFLA_GRE_ENCAP_DPORT, htons(encapdport)); in gre_parse_opt()
Diplink_ipvlan.c53 addattr16(n, 1024, IFLA_IPVLAN_MODE, mode); in ipvlan_parse_opt()
Diplink_bond_slave.c101 addattr16(n, 1024, IFLA_BOND_SLAVE_QUEUE_ID, queue_id); in bond_slave_parse_opt()
Dipfou.c100 addattr16(n, 1024, FOU_ATTR_PORT, port); in fou_parse_opt()
Diplink_macvlan.c92 addattr16(n, 1024, IFLA_MACVLAN_FLAGS, flags); in macvlan_parse_opt()
Diplink_bridge_slave.c135 addattr16(n, 1024, IFLA_BRPORT_PRIORITY, priority); in bridge_slave_parse_opt()
Diplink_bond.c328 addattr16(n, 1024, IFLA_BOND_AD_USER_PORT_KEY, in bond_parse_opt()
335 addattr16(n, 1024, IFLA_BOND_AD_ACTOR_SYS_PRIO, in bond_parse_opt()
Diplink_vxlan.c297 addattr16(n, 1024, IFLA_VXLAN_PORT, htons(dstport)); in vxlan_parse_opt()
/external/iproute2/bridge/
Dlink.c394 addattr16(&req.n, sizeof(req), IFLA_BRPORT_PRIORITY, priority); in brlink_modify()
410 addattr16(&req.n, sizeof(req), IFLA_BRIDGE_FLAGS, flags); in brlink_modify()
413 addattr16(&req.n, sizeof(req), IFLA_BRIDGE_MODE, mode); in brlink_modify()
Dfdb.c351 addattr16(&req.n, sizeof(req), NDA_VLAN, vid); in fdb_modify()
357 addattr16(&req.n, sizeof(req), NDA_PORT, dport); in fdb_modify()
Dvlan.c113 addattr16(&req.n, sizeof(req), IFLA_BRIDGE_FLAGS, flags); in vlan_modify()
/external/iproute2/tc/
Df_flower.c157 addattr16(n, MAX_MSG, type, htons(port)); in flower_parse_port()
297 ret = addattr16(n, MAX_MSG, TCA_FLOWER_KEY_ETH_TYPE, eth_type); in flower_parse_opt()
Dtc_bpf.c601 addattr16(n, MAX_MSG, nla_tbl[BPF_NLA_OPS_LEN], ret); in bpf_parse_common()
/external/iproute2/include/
Dlibnetlink.h83 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
/external/iproute2/lib/
Dlibnetlink.c630 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data) in addattr16() function