version 1.20, 2009/02/06 19:58:31 |
version 1.21, 2009/04/28 12:09:36 |
|
|
if (in->sa_family != AF_MPLS) |
if (in->sa_family != AF_MPLS) |
return; |
return; |
|
|
if (flags & MPLS_OP_POP) |
if (flags & MPLS_OP_POP || flags == MPLS_OP_LOCAL) |
cp = label_print(in, NULL); |
cp = label_print(in, NULL); |
else |
else |
cp = label_print(in, out); |
cp = label_print(in, out); |
|
|
label_print_op(u_int32_t type) |
label_print_op(u_int32_t type) |
{ |
{ |
switch (type & (MPLS_OP_PUSH | MPLS_OP_POP | MPLS_OP_SWAP)) { |
switch (type & (MPLS_OP_PUSH | MPLS_OP_POP | MPLS_OP_SWAP)) { |
|
case MPLS_OP_LOCAL: |
|
return ("LOCAL"); |
case MPLS_OP_POP: |
case MPLS_OP_POP: |
return ("POP"); |
return ("POP"); |
case MPLS_OP_SWAP: |
case MPLS_OP_SWAP: |