Revision d14f8c3c sysdep/unix/krt.c

View differences:

sysdep/unix/krt.c
1153 1153
  {
1154 1154
  case NET_IP4:	p->af = AF_INET; break;
1155 1155
  case NET_IP6:	p->af = AF_INET6; break;
1156
  default:	ASSERT(0);
1156
  case NET_MPLS: p->af = AF_MPLS; break;
1157
  default: log(L_ERR "KRT: Tried to start with strange net type: %d", p->p.net_type); return PS_START; break;
1157 1158
  }
1158 1159

  
1159 1160
  add_tail(&krt_proto_list, &p->krt_node);
......
1264 1265
  .template =		"kernel%d",
1265 1266
  .attr_class =		EAP_KRT,
1266 1267
  .preference =		DEF_PREF_INHERITED,
1267
  .channel_mask =	NB_IP,
1268
  .channel_mask =	NB_IP | NB_MPLS,
1268 1269
  .proto_size =		sizeof(struct krt_proto),
1269 1270
  .config_size =	sizeof(struct krt_config),
1270 1271
  .preconfig =		krt_preconfig,

Also available in: Unified diff