Revision d14f8c3c lib/net.h

View differences:

lib/net.h
259 259
  }
260 260
}
261 261

  
262
static inline u32 net_mpls(const net_addr *a)
263
{
264
  if (a->type == NET_MPLS)
265
    return ((net_addr_mpls *) a)->label;
266

  
267
  bug("Can't call net_mpls on non-mpls net_addr");
268
}
269

  
262 270
static inline uint net4_pxlen(const net_addr *a)
263 271
{ return a->pxlen; }
264 272

  

Also available in: Unified diff