Home
last modified time | relevance | path

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

12

/external/iproute2/ip/
Dlink_iptnl.c358 addattr16(n, 1024, IFLA_IPTUN_ENCAP_TYPE, encaptype); in iptunnel_parse_opt()
359 addattr16(n, 1024, IFLA_IPTUN_ENCAP_FLAGS, encapflags); in iptunnel_parse_opt()
360 addattr16(n, 1024, IFLA_IPTUN_ENCAP_SPORT, htons(encapsport)); in iptunnel_parse_opt()
361 addattr16(n, 1024, IFLA_IPTUN_ENCAP_DPORT, htons(encapdport)); in iptunnel_parse_opt()
367 addattr16(n, 1024, IFLA_IPTUN_FLAGS, iflags); in iptunnel_parse_opt()
371 addattr16(n, 1024, IFLA_IPTUN_6RD_PREFIXLEN, in iptunnel_parse_opt()
375 addattr16(n, 1024, IFLA_IPTUN_6RD_RELAY_PREFIXLEN, in iptunnel_parse_opt()
Dipfou.c103 addattr16(n, 1024, FOU_ATTR_PORT, port); in fou_parse_opt()
105 addattr16(n, 1024, FOU_ATTR_AF, family); in fou_parse_opt()
Dlink_ip6tnl.c323 addattr16(n, 1024, IFLA_IPTUN_ENCAP_TYPE, encaptype); in ip6tunnel_parse_opt()
324 addattr16(n, 1024, IFLA_IPTUN_ENCAP_FLAGS, encapflags); in ip6tunnel_parse_opt()
325 addattr16(n, 1024, IFLA_IPTUN_ENCAP_SPORT, htons(encapsport)); in ip6tunnel_parse_opt()
326 addattr16(n, 1024, IFLA_IPTUN_ENCAP_DPORT, htons(encapdport)); in ip6tunnel_parse_opt()
Dipl2tp.c109 addattr16(&req.n, 1024, L2TP_ATTR_ENCAP_TYPE, p->encap); in create_tunnel()
122 addattr16(&req.n, 1024, L2TP_ATTR_UDP_SPORT, p->local_udp_port); in create_tunnel()
123 addattr16(&req.n, 1024, L2TP_ATTR_UDP_DPORT, p->peer_udp_port); in create_tunnel()
160 addattr16(&req.n, 1024, L2TP_ATTR_PW_TYPE, p->pw_type); in create_session()
165 addattr16(&req.n, 1024, L2TP_ATTR_MTU, p->mtu); in create_session()
178 addattr16(&req.n, 1024, L2TP_ATTR_OFFSET, p->offset); in create_session()
Dlink_gre.c379 addattr16(n, 1024, IFLA_GRE_ENCAP_TYPE, encaptype); in gre_parse_opt()
380 addattr16(n, 1024, IFLA_GRE_ENCAP_FLAGS, encapflags); in gre_parse_opt()
381 addattr16(n, 1024, IFLA_GRE_ENCAP_SPORT, htons(encapsport)); in gre_parse_opt()
382 addattr16(n, 1024, IFLA_GRE_ENCAP_DPORT, htons(encapdport)); in gre_parse_opt()
Dlink_gre6.c391 addattr16(n, 1024, IFLA_GRE_ENCAP_TYPE, encaptype); in gre_parse_opt()
392 addattr16(n, 1024, IFLA_GRE_ENCAP_FLAGS, encapflags); in gre_parse_opt()
393 addattr16(n, 1024, IFLA_GRE_ENCAP_SPORT, htons(encapsport)); in gre_parse_opt()
394 addattr16(n, 1024, IFLA_GRE_ENCAP_DPORT, htons(encapdport)); in gre_parse_opt()
Diplink_bridge.c125 addattr16(n, 1024, IFLA_BR_PRIORITY, prio); in bridge_parse_opt()
141 addattr16(n, 1024, IFLA_BR_VLAN_PROTOCOL, vlan_proto); in bridge_parse_opt()
149 addattr16(n, 1024, IFLA_BR_GROUP_FWD_MASK, fwd_mask); in bridge_parse_opt()
168 addattr16(n, 1024, IFLA_BR_VLAN_DEFAULT_PVID, in bridge_parse_opt()
Diplink_ipvlan.c45 addattr16(n, 1024, IFLA_IPVLAN_MODE, mode); in ipvlan_parse_opt()
Diplink_bond_slave.c132 addattr16(n, 1024, IFLA_BOND_SLAVE_QUEUE_ID, queue_id); in bond_slave_parse_opt()
Diplink_bond.c329 addattr16(n, 1024, IFLA_BOND_AD_USER_PORT_KEY, in bond_parse_opt()
336 addattr16(n, 1024, IFLA_BOND_AD_ACTOR_SYS_PRIO, in bond_parse_opt()
Diplink_macvlan.c174 addattr16(n, 1024, IFLA_MACVLAN_FLAGS, flags); in macvlan_parse_opt()
Diplink_bridge_slave.c277 addattr16(n, 1024, IFLA_BRPORT_PRIORITY, priority); in bridge_slave_parse_opt()
Diplink_geneve.c214 addattr16(n, 1024, IFLA_GENEVE_PORT, htons(dstport)); in geneve_parse_opt()
Diplink_can.c232 addattr16(n, 1024, IFLA_CAN_TERMINATION, val); in can_parse_opt()
Diplink_vxlan.c388 addattr16(n, 1024, IFLA_VXLAN_PORT, htons(dstport)); in vxlan_parse_opt()
/external/iproute2/tc/
Df_flower.c141 addattr16(n, MAX_MSG, type, vlan_eth_type); in flower_parse_vlan_eth_type()
475 addattr16(n, MAX_MSG, type, port); in flower_parse_port()
497 addattr16(n, MAX_MSG, flags_type, htons(flags)); in flower_parse_tcp_flags()
506 addattr16(n, MAX_MSG, mask_type, htons(flags)); in flower_parse_tcp_flags()
571 addattr16(n, MAX_MSG, type, port); in flower_parse_enc_port()
650 addattr16(n, MAX_MSG, TCA_FLOWER_KEY_VLAN_ID, vid); in flower_parse_opt()
920 ret = addattr16(n, MAX_MSG, TCA_FLOWER_KEY_ETH_TYPE, eth_type); in flower_parse_opt()
Dm_skbmod.c153 addattr16(n, MAX_MSG, TCA_SKBMOD_ETYPE, skbmod_etype); in parse_skbmod()
Dm_bpf.c58 addattr16(nl, MAX_MSG, TCA_ACT_BPF_OPS_LEN, ops_len); in bpf_cbpf_cb()
Dm_tunnel_key.c79 addattr16(n, MAX_MSG, type, dst_port); in tunnel_key_parse_dst_port()
Df_bpf.c60 addattr16(nl, MAX_MSG, TCA_BPF_OPS_LEN, ops_len); in bpf_cbpf_cb()
Dm_pedit.c601 if (addattr16(n, MAX_MSG, TCA_PEDIT_KEY_EX_HTYPE, k->htype) || in pedit_keys_ex_addattr()
602 addattr16(n, MAX_MSG, TCA_PEDIT_KEY_EX_CMD, k->cmd)) { in pedit_keys_ex_addattr()
/external/iproute2/bridge/
Dlink.c412 addattr16(&req.n, sizeof(req), IFLA_BRPORT_PRIORITY, priority); in brlink_modify()
428 addattr16(&req.n, sizeof(req), IFLA_BRIDGE_FLAGS, flags); in brlink_modify()
431 addattr16(&req.n, sizeof(req), IFLA_BRIDGE_MODE, mode); in brlink_modify()
Dfdb.c520 addattr16(&req.n, sizeof(req), NDA_VLAN, vid); in fdb_modify()
526 addattr16(&req.n, sizeof(req), NDA_PORT, dport); in fdb_modify()
Dvlan.c115 addattr16(&req.n, sizeof(req), IFLA_BRIDGE_FLAGS, flags); in vlan_modify()
/external/iproute2/include/
Dlibnetlink.h111 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);

12