diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2009-01-01 20:03:01 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2009-01-01 20:03:01 +0000 |
commit | 877e88123e20b9f8ce2fb333a60af875ace5ddbb (patch) | |
tree | f94973134a45d822452c4bfb7ef0460eaa3762d1 /sys/kern/kern_mbuf.c | |
parent | 75193d52834bb1e20115250d3c78ba1cadc7c534 (diff) | |
download | src-877e88123e20b9f8ce2fb333a60af875ace5ddbb.tar.gz src-877e88123e20b9f8ce2fb333a60af875ace5ddbb.zip |
Temporary workaround for the limitations of the mbuf flowid field: zero
the field in the mbuf constructors, since otherwise we have no way to
tell if they are valid. In the future, Kip has plans to add a flag
specifically to indicate validity, which is the preferred model.
Notes
Notes:
svn path=/head/; revision=186683
Diffstat (limited to 'sys/kern/kern_mbuf.c')
-rw-r--r-- | sys/kern/kern_mbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index a7810efc8680..26b0250f9c99 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -420,6 +420,7 @@ mb_ctor_mbuf(void *mem, int size, void *arg, int how) m->m_pkthdr.csum_data = 0; m->m_pkthdr.tso_segsz = 0; m->m_pkthdr.ether_vtag = 0; + m->m_pkthdr.flowid = 0; SLIST_INIT(&m->m_pkthdr.tags); #ifdef MAC /* If the label init fails, fail the alloc */ @@ -644,6 +645,7 @@ mb_ctor_pack(void *mem, int size, void *arg, int how) m->m_pkthdr.csum_data = 0; m->m_pkthdr.tso_segsz = 0; m->m_pkthdr.ether_vtag = 0; + m->m_pkthdr.flowid = 0; SLIST_INIT(&m->m_pkthdr.tags); #ifdef MAC /* If the label init fails, fail the alloc */ |