diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2009-02-03 16:42:55 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2009-02-03 16:42:55 +0000 |
commit | 628b50697a8761bcac8e34d9ffdff103646d2ee5 (patch) | |
tree | c54d8e7ccca81946fdf4770fd31ea7a5e3e6bfac /sys/netmpls/mpls.h | |
parent | 444bd5f6a3e4b86e7149f6cf0a472cd13248ac01 (diff) |
Use our own flags to set the operations and not RTF_PROTOX.
Switch the padding field into a MPLS one in rt_msghdr to store
relevant informations.
OK claudio@ laurent@
Diffstat (limited to 'sys/netmpls/mpls.h')
-rw-r--r-- | sys/netmpls/mpls.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netmpls/mpls.h b/sys/netmpls/mpls.h index a3c16e718a2..e6fa01182e4 100644 --- a/sys/netmpls/mpls.h +++ b/sys/netmpls/mpls.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls.h,v 1.18 2009/01/29 11:11:33 michele Exp $ */ +/* $OpenBSD: mpls.h,v 1.19 2009/02/03 16:42:54 michele Exp $ */ /* * Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project. @@ -96,13 +96,13 @@ struct sockaddr_mpls { struct rt_mpls { u_int32_t mpls_label; - u_int16_t mpls_operation; + u_int8_t mpls_operation; u_int8_t mpls_exp; }; -#define MPLS_OP_POP RTF_PROTO3 -#define MPLS_OP_PUSH RTF_PROTO2 -#define MPLS_OP_SWAP RTF_PROTO1 +#define MPLS_OP_POP 0x1 +#define MPLS_OP_PUSH 0x2 +#define MPLS_OP_SWAP 0x4 #define MPLS_INKERNEL_LOOP_MAX 16 |