* Don't call ifp->if_output() from inside mpls_output(). Make the
authorNuno Antunes <nant@dragonflybsd.org>
Tue, 5 Aug 2008 15:11:32 +0000 (15:11 +0000)
committerNuno Antunes <nant@dragonflybsd.org>
Tue, 5 Aug 2008 15:11:32 +0000 (15:11 +0000)
commitcb8d752c91e50d49493e6841a71a3add51e2f2da
tree56f59f40368464f4aa8f5dd24c2bd0e86cfe9984
parentc1aa76bb05557de5ce12294aae28e936c81ebc86
* Don't call ifp->if_output() from inside mpls_output(). Make the
  caller responsible for sending the packet.

* Fix mpls gateway arp resoving.

* Introduce a new mbuf flag M_MPLSLABELED indicating that the packet
  has at least one valid mpls label on it.

* Use the new mbuf flag instead of forging a sockaddr_mpls to let
  ether_output() identify the mpls packets.

* Drop the packet when mpls ttl is exceeded (doesn't send an ICMP message yet).

* Fix compilation warning.

* Improve comments.
sys/net/if_ethersubr.c
sys/netinet/ip_output.c
sys/netproto/mpls/mpls_demux.c
sys/netproto/mpls/mpls_input.c
sys/netproto/mpls/mpls_output.c
sys/netproto/mpls/mpls_var.h
sys/sys/mbuf.h