diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-03 21:58:00 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-03 21:58:00 +0000 |
commit | f448ef3672f16ab4039c0990f4181b16111956bc (patch) | |
tree | f9e930f4dfdc271f047d198430678145ed3d0c21 /sys/netmpls | |
parent | cf0e146a4d23b167153e741cab2fef993dadd10c (diff) |
Get rid of rt_mask() and stop allocating a "struct sockaddr" for every
route entry in ART.
rt_plen() now represents the prefix length of a route entry and should
be used instead.
For now use a "struct sockaddr_in6" to represent the mask when needed,
this should be then replaced by the prefix length and RTA_NETMASK only
used for compatibility with userland.
ok claudio@
Diffstat (limited to 'sys/netmpls')
-rw-r--r-- | sys/netmpls/mpls_proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netmpls/mpls_proto.c b/sys/netmpls/mpls_proto.c index c485c56381a..b35e2b065a1 100644 --- a/sys/netmpls/mpls_proto.c +++ b/sys/netmpls/mpls_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_proto.c,v 1.13 2015/10/07 10:50:35 mpi Exp $ */ +/* $OpenBSD: mpls_proto.c,v 1.14 2015/12/03 21:57:59 mpi Exp $ */ /* * Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project. @@ -69,5 +69,5 @@ struct domain mplsdomain = { mplssw, &mplssw[nitems(mplssw)], sizeof(struct sockaddr_mpls), - offsetof(struct sockaddr_mpls, smpls_label) + offsetof(struct sockaddr_mpls, smpls_label), 32 }; |