• Home
  • Raw
  • Download

Lines Matching refs:rta

467 static int parse_encap_seg6(struct rtattr *rta, size_t len, int *argcp,  in parse_encap_seg6()  argument
518 rta_addattr_l(rta, len, SEG6_IPTUNNEL_SRH, tuninfo, in parse_encap_seg6()
530 static int parse_encap_seg6local(struct rtattr *rta, size_t len, int *argcp, in parse_encap_seg6local() argument
551 rta_addattr32(rta, len, SEG6_LOCAL_ACTION, action); in parse_encap_seg6local()
557 rta_addattr32(rta, len, SEG6_LOCAL_TABLE, table); in parse_encap_seg6local()
563 rta_addattr_l(rta, len, SEG6_LOCAL_NH4, &addr.data, in parse_encap_seg6local()
570 rta_addattr_l(rta, len, SEG6_LOCAL_NH6, &addr.data, in parse_encap_seg6local()
579 rta_addattr32(rta, len, SEG6_LOCAL_IIF, iif); in parse_encap_seg6local()
587 rta_addattr32(rta, len, SEG6_LOCAL_OIF, oif); in parse_encap_seg6local()
628 rta_addattr_l(rta, len, SEG6_LOCAL_SRH, srh, srhlen); in parse_encap_seg6local()
638 static int parse_encap_mpls(struct rtattr *rta, size_t len, in parse_encap_mpls() argument
653 rta_addattr_l(rta, len, MPLS_IPTUNNEL_DST, &addr.data, in parse_encap_mpls()
668 rta_addattr8(rta, len, MPLS_IPTUNNEL_TTL, ttl); in parse_encap_mpls()
685 static int parse_encap_ip(struct rtattr *rta, size_t len, in parse_encap_ip() argument
701 rta_addattr64(rta, len, LWTUNNEL_IP_ID, id); in parse_encap_ip()
709 rta_addattr_l(rta, len, LWTUNNEL_IP_DST, in parse_encap_ip()
719 rta_addattr8(rta, len, LWTUNNEL_IP_TOS, tos); in parse_encap_ip()
728 rta_addattr8(rta, len, LWTUNNEL_IP_TTL, ttl); in parse_encap_ip()
745 static int parse_encap_ila(struct rtattr *rta, size_t len, in parse_encap_ila() argument
759 rta_addattr64(rta, 1024, ILA_ATTR_LOCATOR, locator); in parse_encap_ila()
772 rta_addattr8(rta, 1024, ILA_ATTR_CSUM_MODE, in parse_encap_ila()
791 static int parse_encap_ip6(struct rtattr *rta, size_t len, in parse_encap_ip6() argument
807 rta_addattr64(rta, len, LWTUNNEL_IP6_ID, id); in parse_encap_ip6()
815 rta_addattr_l(rta, len, LWTUNNEL_IP6_DST, in parse_encap_ip6()
825 rta_addattr8(rta, len, LWTUNNEL_IP6_TC, tc); in parse_encap_ip6()
835 rta_addattr8(rta, len, LWTUNNEL_IP6_HOPLIMIT, hoplimit); in parse_encap_ip6()
853 struct rtattr *rta; member
861 rta_addattr32(x->rta, x->len, LWT_BPF_PROG_FD, fd); in bpf_lwt_cb()
862 rta_addattr_l(x->rta, x->len, LWT_BPF_PROG_NAME, annotation, in bpf_lwt_cb()
870 static int lwt_parse_bpf(struct rtattr *rta, size_t len, in lwt_parse_bpf() argument
879 .rta = rta, in lwt_parse_bpf()
885 nest = rta_nest(rta, len, attr); in lwt_parse_bpf()
892 rta_nest_end(rta, nest); in lwt_parse_bpf()
907 static int parse_encap_bpf(struct rtattr *rta, size_t len, int *argcp, in parse_encap_bpf() argument
917 if (lwt_parse_bpf(rta, len, &argc, &argv, LWT_BPF_IN, in parse_encap_bpf()
922 if (lwt_parse_bpf(rta, len, &argc, &argv, LWT_BPF_OUT, in parse_encap_bpf()
927 if (lwt_parse_bpf(rta, len, &argc, &argv, LWT_BPF_XMIT, in parse_encap_bpf()
937 rta_addattr32(rta, 1024, LWT_BPF_XMIT_HEADROOM, in parse_encap_bpf()
958 int lwt_parse_encap(struct rtattr *rta, size_t len, int *argcp, char ***argvp) in lwt_parse_encap() argument
977 nest = rta_nest(rta, 1024, RTA_ENCAP); in lwt_parse_encap()
980 parse_encap_mpls(rta, len, &argc, &argv); in lwt_parse_encap()
983 parse_encap_ip(rta, len, &argc, &argv); in lwt_parse_encap()
986 parse_encap_ila(rta, len, &argc, &argv); in lwt_parse_encap()
989 parse_encap_ip6(rta, len, &argc, &argv); in lwt_parse_encap()
992 if (parse_encap_bpf(rta, len, &argc, &argv) < 0) in lwt_parse_encap()
996 parse_encap_seg6(rta, len, &argc, &argv); in lwt_parse_encap()
999 parse_encap_seg6local(rta, len, &argc, &argv); in lwt_parse_encap()
1005 rta_nest_end(rta, nest); in lwt_parse_encap()
1007 rta_addattr16(rta, 1024, RTA_ENCAP_TYPE, type); in lwt_parse_encap()