The NetBSD Project

CVS log for src/sys/netmpls/mpls_ttl.c

[BACK] Up to [] / src / sys / netmpls

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: netbsd-7-1-2-RELEASE

Revision / (download) - annotate - [select for diffs], Sat Feb 24 18:29:39 2018 UTC (3 years ago) by snj
Branch: netbsd-7-1
CVS Tags: netbsd-7-1-2-RELEASE
Changes since 1.4: +27 -30 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by maxv in ticket #1571):
	sys/net/if_mpls.c: 1.31-1.33 via patch
	sys/netmpls/mpls_ttl.c: 1.9
Style, and fix several bugs:
 - ip4_check(), mpls_unlabel_inet() and mpls_unlabel_inet6() perform
   pullups, so we need to pass the updated pointers back
 - in mpls_lse() the route is not always freed
Looks a little better now.
Kick MPLS packets earlier.
Several changes:
 * Declare TRIM_LABEL as a function.
 * In mpls_unlabel_inet, copy the label locally. It's not incorrect to
   keep a pointer on the mbuf, but it's bug-friendly.
 * In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we
   just want to make sure that m_copydata won't fail, but if we were
   guaranteed that m has M_PKTHDR set, we could simply check the length
   against m->m_pkthdr.len.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>