@@ -647,7 +647,7 @@ int nla_get_labels(const struct nlattr *nla,
647
647
return - EINVAL ;
648
648
649
649
switch (dec .label ) {
650
- case LABEL_IMPLICIT_NULL :
650
+ case MPLS_LABEL_IMPLICIT_NULL :
651
651
/* RFC3032: This is a label that an LSR may
652
652
* assign and distribute, but which never
653
653
* actually appears in the encapsulation.
@@ -935,7 +935,7 @@ static int resize_platform_label_table(struct net *net, size_t limit)
935
935
}
936
936
937
937
/* In case the predefined labels need to be populated */
938
- if (limit > LABEL_IPV4_EXPLICIT_NULL ) {
938
+ if (limit > MPLS_LABEL_IPV4_EXPLICIT_NULL ) {
939
939
struct net_device * lo = net -> loopback_dev ;
940
940
rt0 = mpls_rt_alloc (lo -> addr_len );
941
941
if (!rt0 )
@@ -945,7 +945,7 @@ static int resize_platform_label_table(struct net *net, size_t limit)
945
945
rt0 -> rt_via_table = NEIGH_LINK_TABLE ;
946
946
memcpy (rt0 -> rt_via , lo -> dev_addr , lo -> addr_len );
947
947
}
948
- if (limit > LABEL_IPV6_EXPLICIT_NULL ) {
948
+ if (limit > MPLS_LABEL_IPV6_EXPLICIT_NULL ) {
949
949
struct net_device * lo = net -> loopback_dev ;
950
950
rt2 = mpls_rt_alloc (lo -> addr_len );
951
951
if (!rt2 )
@@ -973,15 +973,15 @@ static int resize_platform_label_table(struct net *net, size_t limit)
973
973
memcpy (labels , old , cp_size );
974
974
975
975
/* If needed set the predefined labels */
976
- if ((old_limit <= LABEL_IPV6_EXPLICIT_NULL ) &&
977
- (limit > LABEL_IPV6_EXPLICIT_NULL )) {
978
- RCU_INIT_POINTER (labels [LABEL_IPV6_EXPLICIT_NULL ], rt2 );
976
+ if ((old_limit <= MPLS_LABEL_IPV6_EXPLICIT_NULL ) &&
977
+ (limit > MPLS_LABEL_IPV6_EXPLICIT_NULL )) {
978
+ RCU_INIT_POINTER (labels [MPLS_LABEL_IPV6_EXPLICIT_NULL ], rt2 );
979
979
rt2 = NULL ;
980
980
}
981
981
982
- if ((old_limit <= LABEL_IPV4_EXPLICIT_NULL ) &&
983
- (limit > LABEL_IPV4_EXPLICIT_NULL )) {
984
- RCU_INIT_POINTER (labels [LABEL_IPV4_EXPLICIT_NULL ], rt0 );
982
+ if ((old_limit <= MPLS_LABEL_IPV4_EXPLICIT_NULL ) &&
983
+ (limit > MPLS_LABEL_IPV4_EXPLICIT_NULL )) {
984
+ RCU_INIT_POINTER (labels [MPLS_LABEL_IPV4_EXPLICIT_NULL ], rt0 );
985
985
rt0 = NULL ;
986
986
}
987
987
0 commit comments