OpenBSD CVS

CVS log for src/share/man/man9/mbuf.9


[BACK] Up to [local] / src / share / man / man9

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.125 / (download) - annotate - [select for diffs], Tue Jul 4 03:56:07 2023 UTC (11 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.124: +2 -7 lines
Diff to previous 1.124 (colored)

m_reclaim() was removed in uipc_mbuf.c rev 1.195

Revision 1.124 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:23 2022 UTC (2 years, 2 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.123 / (download) - annotate - [select for diffs], Mon Mar 8 02:47:26 2021 UTC (3 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.122: +11 -2 lines
Diff to previous 1.122 (colored)

Add some references, most of these were removed when we stopped building
and installing USD/SMM/PSD docs.

jmc@ agrees with the direction, ok millert@ on an earlier diff

Revision 1.122 / (download) - annotate - [select for diffs], Thu Feb 25 02:43:31 2021 UTC (3 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.121: +4 -4 lines
Diff to previous 1.121 (colored)

let m_copydata use a void * instead of caddr_t

i'm not a fan of having to cast to caddr_t when we have modern
inventions like void *s we can take advantage of.

ok claudio@ mvs@ bluhm@

Revision 1.121 / (download) - annotate - [select for diffs], Tue Feb 23 14:57:52 2021 UTC (3 years, 3 months ago) by mvs
Branch: MAIN
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

Fix m_copyback(9) prototype in DESCRIPTION section.

ok millert@

Revision 1.120 / (download) - annotate - [select for diffs], Sat Dec 12 11:48:52 2020 UTC (3 years, 5 months ago) by jan
Branch: MAIN
Changes since 1.119: +5 -5 lines
Diff to previous 1.119 (colored)

Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.

OK dlg@, bluhm@
No Opinion mpi@
Not against it claudio@

Revision 1.119 / (download) - annotate - [select for diffs], Sat Aug 8 07:42:31 2020 UTC (3 years, 9 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.118: +2 -4 lines
Diff to previous 1.118 (colored)

No longer prevent TCP connections to IPv6 anycast addresses.

RFC 4291 dropped this requirement from RFC 3513:
   o  An anycast address must not be used as the source address of an
      IPv6 packet.

And from that requirement draft-itojun-ipv6-tcp-to-anycast rightly
concluded that TCP connections must be prevented.

The draft also states:

The proposed method MUST be removed when one of the following events
happens in the future:

o  Restriction imposed on IPv6 anycast address is loosened, so that
   anycast address can be placed into source address field of the IPv6
   header[...]

OK jca

Revision 1.118 / (download) - annotate - [select for diffs], Fri Dec 7 08:37:24 2018 UTC (5 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.117: +2 -25 lines
Diff to previous 1.117 (colored)

All the references to the M_ALIGN and MH_ALIGN macros are gone.
Time to bring them behind the shed and free them. Use m_align() instead.
OK mpi@ henning@ florian@ kn@

Revision 1.117 / (download) - annotate - [select for diffs], Fri Nov 30 11:58:47 2018 UTC (5 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.116: +12 -1 lines
Diff to previous 1.116 (colored)

Document m_align().
With and OK bluhm@, jmc@

Revision 1.116 / (download) - annotate - [select for diffs], Fri Nov 9 19:04:15 2018 UTC (5 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored)

retuned -> returned;

Revision 1.115 / (download) - annotate - [select for diffs], Fri Nov 9 14:17:13 2018 UTC (5 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.114: +20 -14 lines
Diff to previous 1.114 (colored)

Document m_leadingspace() and m_trailingspace() instead of the makros which
got removed. Also fix documentation of m_prepend and M_PREPEND. They are
the same quite some time and there is no longer the need to warn about
not using m_prepend directly.
OK krw@, mpi@

Revision 1.114 / (download) - annotate - [select for diffs], Mon Sep 10 16:14:07 2018 UTC (5 years, 8 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.113: +7 -1 lines
Diff to previous 1.113 (colored)

Instead of calculating the mbuf packet header length here and there,
put the algorithm into a new function m_calchdrlen().  Also set an
uninitialized m_len to 0 in NFS code.
OK claudio@

Revision 1.113 / (download) - annotate - [select for diffs], Mon Sep 10 13:52:37 2018 UTC (5 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.112: +5 -5 lines
Diff to previous 1.112 (colored)

tweak previous;

Revision 1.112 / (download) - annotate - [select for diffs], Mon Sep 10 12:47:02 2018 UTC (5 years, 8 months ago) by bluhm
Branch: MAIN
Changes since 1.111: +14 -3 lines
Diff to previous 1.111 (colored)

During fragment reassembly, mbuf chains with packet headers were
created.  Add a new function m_removehdr() do convert packet header
mbufs within the chain to regular mbufs.  Assert that the mbuf at
the beginning of the chain has a packet header.
found by Maxime Villard in NetBSD; from markus@; OK claudio@

Revision 1.111 / (download) - annotate - [select for diffs], Sun Feb 11 00:27:10 2018 UTC (6 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.110: +4 -2 lines
Diff to previous 1.110 (colored)

list M_IPV6_DF_OUT

Revision 1.110 / (download) - annotate - [select for diffs], Thu Oct 12 15:26:40 2017 UTC (6 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored)

Copy comment for M_LOOP from header file to mbuf(9).

Revision 1.109 / (download) - annotate - [select for diffs], Mon Jun 19 18:36:13 2017 UTC (6 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

missing letter in previous;

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jun 19 17:58:49 2017 UTC (6 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.107: +10 -2 lines
Diff to previous 1.107 (colored)

When dealing with mbuf pointers passed down as function parameters,
bugs could easily result in use-after-free or double free.  Introduce
m_freemp() which automatically resets the pointer before freeing
it.  So we have less dangling pointers in the kernel.
OK krw@ mpi@ claudio@

Revision 1.107 / (download) - annotate - [select for diffs], Fri May 19 05:59:27 2017 UTC (7 years ago) by jmc
Branch: MAIN
Changes since 1.106: +8 -4 lines
Diff to previous 1.106 (colored)

header updates from kevlo;

Revision 1.106 / (download) - annotate - [select for diffs], Wed Mar 29 23:05:05 2017 UTC (7 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.105: +4 -4 lines
Diff to previous 1.105 (colored)

m_devget() lost its ipf pointer argument, update man page.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Oct 17 02:53:47 2016 UTC (7 years, 7 months ago) by lteo
Branch: MAIN
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored)

"send/received" -> "sent/received"
ok jmc@

Revision 1.104 / (download) - annotate - [select for diffs], Thu Sep 15 00:00:40 2016 UTC (7 years, 8 months ago) by dlg
Branch: MAIN
Changes since 1.103: +2 -11 lines
Diff to previous 1.103 (colored)

remove m_copym2 as its use has been replaced by m_dup_pkt

ok millert@ mpi@ henning@ claudio@ markus@

Revision 1.103 / (download) - annotate - [select for diffs], Tue Sep 13 19:56:55 2016 UTC (7 years, 8 months ago) by markus
Branch: MAIN
Changes since 1.102: +15 -15 lines
Diff to previous 1.102 (colored)

avoid extensive mbuf allocation for IPsec by replacing m_inject(4)
with m_makespace(4) from freebsd; ok mpi@, bluhm@, mikeb@, dlg@

Revision 1.102 / (download) - annotate - [select for diffs], Sun Sep 4 02:26:44 2016 UTC (7 years, 9 months ago) by lteo
Branch: MAIN
Changes since 1.101: +3 -2 lines
Diff to previous 1.101 (colored)

Sync struct pkthdr with sys/mbuf.h

Revision 1.101 / (download) - annotate - [select for diffs], Sun Sep 4 02:07:48 2016 UTC (7 years, 9 months ago) by lteo
Branch: MAIN
Changes since 1.100: +4 -4 lines
Diff to previous 1.100 (colored)

Fix incorrect formatting and add the missing argument name for m_resethdr().

ok jmc@

Revision 1.100 / (download) - annotate - [select for diffs], Tue Jul 19 08:13:46 2016 UTC (7 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.99: +3 -5 lines
Diff to previous 1.99 (colored)

Use a flag to indicate that a packet has been received on an IPv6
anycast address.

This will allow us to split ip6_input() in two parts using a queue
in the middle.

ok jca@, florian@, bluhm@

Revision 1.99 / (download) - annotate - [select for diffs], Fri Apr 8 10:01:12 2016 UTC (8 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored)

bare .Nm gets turned into m_copym2, which is wrong when describing mbufs.

use explicit .Nm mbuf where appropriate.

discussed with jmc@

Revision 1.98 / (download) - annotate - [select for diffs], Fri Apr 8 03:23:13 2016 UTC (8 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.97: +14 -1 lines
Diff to previous 1.97 (colored)

document m_purge.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Apr 8 03:19:33 2016 UTC (8 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.96: +8 -4 lines
Diff to previous 1.96 (colored)

m_freem returns an mbuf like m_free now

this steals the m_free words to describe what m_freem does now.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Apr 8 03:04:15 2016 UTC (8 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.95: +16 -2 lines
Diff to previous 1.95 (colored)

document m_dup_pkt()

Revision 1.95 / (download) - annotate - [select for diffs], Mon Nov 23 17:53:57 2015 UTC (8 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.94: +38 -4 lines
Diff to previous 1.94 (colored)

add missing NAME entries;
feedback/ok schwarze

Revision 1.94 / (download) - annotate - [select for diffs], Fri Nov 13 10:12:39 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored)

Use ph_ prefix for tag-related fields.

ok dlg@

Revision 1.93 / (download) - annotate - [select for diffs], Thu Nov 12 10:07:14 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

Prefix flowid with ph_ and print it in m_print().

ok dlg@

Revision 1.92 / (download) - annotate - [select for diffs], Fri Oct 30 21:21:19 2015 UTC (8 years, 7 months ago) by benno
Branch: MAIN
Changes since 1.91: +8 -1 lines
Diff to previous 1.91 (colored)

document m_resethdr
ok and feedback mikeb@, reminded by jmc@ about MLINKS

Revision 1.91 / (download) - annotate - [select for diffs], Thu Oct 8 14:09:34 2015 UTC (8 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.90: +5 -5 lines
Diff to previous 1.90 (colored)

tweak previous;

Revision 1.90 / (download) - annotate - [select for diffs], Thu Oct 8 11:36:15 2015 UTC (8 years, 8 months ago) by dlg
Branch: MAIN
Changes since 1.89: +18 -3 lines
Diff to previous 1.89 (colored)

steal some padding in mbuf pkthdrs to store a flow id.

the flowid roughly identifies a flow or connection that the mbuf
is a part of, and can be used instead of hashing contents of the
packet (like src+dst mac and ip addresses) to decide which path a
packet should take.

ok mpi@ mikeb@ sthen@

Revision 1.89 / (download) - annotate - [select for diffs], Mon Sep 21 11:30:50 2015 UTC (8 years, 8 months ago) by mpi
Branch: MAIN
Changes since 1.88: +14 -2 lines
Diff to previous 1.88 (colored)

Document that m_free(9) and m_freem(9) now accept NULL.

From Michael McConville, ok jmc@

Revision 1.88 / (download) - annotate - [select for diffs], Wed Jul 8 07:21:49 2015 UTC (8 years, 11 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.87: +2 -12 lines
Diff to previous 1.87 (colored)

MFREE(9) is dead, long live m_freem(9)!

ok bluhm@, claudio@, dlg@

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jun 17 06:24:46 2015 UTC (8 years, 11 months ago) by mpi
Branch: MAIN
Changes since 1.86: +2 -314 lines
Diff to previous 1.86 (colored)

Move mbuf_list and mbuf_queue documentation in their own manual.

ok jmc@, deraadt@, dlg@

Revision 1.86 / (download) - annotate - [select for diffs], Tue Jun 16 11:17:02 2015 UTC (8 years, 11 months ago) by mpi
Branch: MAIN
Changes since 1.85: +11 -11 lines
Diff to previous 1.85 (colored)

Sync with recent changes.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Feb 19 05:53:46 2015 UTC (9 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.84: +2 -3 lines
Diff to previous 1.84 (colored)

remove errant reference to mq_enqueue in the mq_enlist description.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Feb 16 16:38:54 2015 UTC (9 years, 3 months ago) by naddy
Branch: MAIN
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

Replace \*(Lt \*(Le \*(Gt \*(Ge with literal < <= > >= respectively,
except for instances where \*(Le and \*(Ge are clearly understood as
mathematical symbols.  Discussed with schwarze@

Revision 1.83 / (download) - annotate - [select for diffs], Tue Feb 10 04:08:00 2015 UTC (9 years, 3 months ago) by lteo
Branch: MAIN
Changes since 1.82: +17 -15 lines
Diff to previous 1.82 (colored)

Sync and sort the M_* mbuf flags to match the way they are listed in
<sys/mbuf.h>.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Feb 10 03:50:30 2015 UTC (9 years, 3 months ago) by lteo
Branch: MAIN
Changes since 1.81: +1 -2 lines
Diff to previous 1.81 (colored)

Zap m_act here too.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Feb 7 02:53:04 2015 UTC (9 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.80: +5 -6 lines
Diff to previous 1.80 (colored)

mq_enlist can drop mbufs now.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Feb 7 02:30:28 2015 UTC (9 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.79: +62 -2 lines
Diff to previous 1.79 (colored)

try and document ml_filter and mq_filter.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Feb 1 03:32:32 2015 UTC (9 years, 4 months ago) by lteo
Branch: MAIN
Changes since 1.78: +3 -5 lines
Diff to previous 1.78 (colored)

Sync struct pkthdr_pf and struct mbuf_ext with their actual definitions
in sys/mbuf.h.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jan 31 03:08:33 2015 UTC (9 years, 4 months ago) by lteo
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

Add missing period.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jan 31 03:06:25 2015 UTC (9 years, 4 months ago) by lteo
Branch: MAIN
Changes since 1.76: +12 -6 lines
Diff to previous 1.76 (colored)

Document MSIZE, MCLSHIFT, MCLBYTES, MCLOFSET, and MAXMCLBYTES which have
been moved from sys/param.h to sys/mbuf.h (MAXMCLBYTES was moved two
years ago; the rest were done recently).  Remove references to
sys/param.h accordingly.

ok deraadt@

Revision 1.76 / (download) - annotate - [select for diffs], Mon Aug 18 04:06:16 2014 UTC (9 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.75: +258 -2 lines
Diff to previous 1.75 (colored)

introduce mbuf list and queue apis. both manage fifo lists of mbufs
and a count of the mbufs.

struct mbuf_list and the ml_foo() apis can be used to build lists of
mbufs where you dont need locking (eg, on the stack).

struct mbuf_queue and mq_foo() wrap mbuf_lists with a mutex, and
limits the number of mbufs that can be queued. they can be useful
for moving mbufs between contexts/subsystems.

with help from jmc@ for the manpage bits
mpi@ is keen

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jul 13 10:59:49 2014 UTC (9 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

tweak previous; ok dlg

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jul 13 09:52:48 2014 UTC (9 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.73: +6 -5 lines
Diff to previous 1.73 (colored)

treat external storage allocated by the mbuf layer the same as
external storage attached to an mbuf anywhere else. this means it
uses MEXTADD to wire it up to the mbuf, and it relies on the ext_free
and ext_arg bits in the header to call the right free function
against the right pool.

M_CLUSTER gets renamed to M_EXTWR. the type field in MEXTADD gets
reused as a flags field so anything attaching storage to an mbuf
can say if it is writable or not.

ok claudio@

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jul 13 05:23:24 2014 UTC (9 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.72: +2 -6 lines
Diff to previous 1.72 (colored)

we dont do per interface accounting in the mbuf layer anymore

Revision 1.72 / (download) - annotate - [select for diffs], Tue Apr 22 14:41:03 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.71: +2 -3 lines
Diff to previous 1.71 (colored)

Remove some altq tentacles.

ok pelikan@, henning@

Revision 1.71 / (download) - annotate - [select for diffs], Mon Apr 14 09:06:41 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

"struct pkthdr" holds a routing table ID, not a routing domain one.
Avoid the confusion by using an appropriate name for the variable.

Note that since routing domain IDs are a subset of the set of routing
table IDs, the following idiom is correct:

	rtableid = rdomain

But to get the routing domain ID corresponding to a given routing table
ID, you must call rtable_l2(9).

claudio@ likes it, ok mikeb@

Revision 1.70 / (download) - annotate - [select for diffs], Thu Mar 27 10:30:58 2014 UTC (10 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Store an ifp index instead of a pointer in the "struct mbuf_ext".

This is part of the plan to remove the ifp pointer from the packet
header that will allow us to stop garbage collecting mbuf(9)s when
an ifp is detached/destroyed.

ok mikeb@, lteo@, benno@

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 19 10:09:19 2014 UTC (10 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored)

Stop abusing the rcvif pointer to pass wireless nodes down to the
driver start routines.  Instead add & use a pointer in the pkthdr
since we don't want the overhead of using a mbuf_tags(9).

claudio@ pointed out that other subsystems might want to use this
pointer too, so here's a new cookie!

ok claudio@, mikeb@, deraadt@

Revision 1.68 / (download) - annotate - [select for diffs], Tue Jan 21 03:15:46 2014 UTC (10 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

obvious .Pa fixes; found with mandocdb(8)

Revision 1.67 / (download) - annotate - [select for diffs], Wed Nov 27 13:28:37 2013 UTC (10 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.66: +2 -4 lines
Diff to previous 1.66 (colored)

M_AUTH_AH got removed in 2012, no reason to document it.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Oct 25 18:42:36 2013 UTC (10 years, 7 months ago) by lteo
Branch: MAIN
Changes since 1.65: +8 -2 lines
Diff to previous 1.65 (colored)

Now that the M_ICMP_CSUM_* flags are actually used in the kernel by PF,
document them in the mbuf(9) man page.

OK henning@ jmc@

Revision 1.65 / (download) - annotate - [select for diffs], Wed Aug 21 05:21:42 2013 UTC (10 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.64: +5 -14 lines
Diff to previous 1.64 (colored)

get rid of the copy argument in m_devget that let you provide an
alternative to bcopy since noone uses it.

while there use memcpy instead of bcopy because we know the memory cannot
overlap.

ok henning@ matthew@ mikeb@ deraadt@

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 11 01:01:15 2013 UTC (10 years, 11 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.63: +4 -2 lines
Diff to previous 1.63 (colored)

return ENOBUFS on failure from m_defrag and m_tag_copy_chain.

m_foo functions that return errors are now consistent as far as i can tell.

ok bluhm@

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jun 5 11:30:23 2013 UTC (11 years ago) by jmc
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

\-1;

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 5 03:28:43 2013 UTC (11 years ago) by dlg
Branch: MAIN
Changes since 1.61: +16 -2 lines
Diff to previous 1.61 (colored)

m_defrag(9) wasnt documented.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 4 19:27:09 2013 UTC (11 years ago) by schwarze
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Replace old-fashioned .Fd by new-fangled .In for #include lines.
Diff from Jan Klemkow <j dot klemkow at wemelug dot de> on tech@.
No objection from jmc@ against this type of change.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Mar 23 18:33:43 2013 UTC (11 years, 2 months ago) by lteo
Branch: MAIN
Changes since 1.59: +9 -9 lines
Diff to previous 1.59 (colored)

Sync checksum flags with mbuf.h by renaming M_{TCP,UDP}V4_CSUM_OUT to
M_{TCP,UDP}_CSUM_OUT.  Also rename m_pkthdr.csum to m_pkthdr.csum_flags.

Remove "/IPv4" from the descriptions of the M_{TCP,UDP}_CSUM_IN_* flags
since they are also used to calculate TCP or UDP checksums over IPv6,
such as on newer bge(4) chips (pointed out by naddy@).

feedback/ok naddy, ok haesbaert jmc

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 3 07:53:22 2013 UTC (11 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.58: +24 -17 lines
Diff to previous 1.58 (colored)

update from Ryan Ozmun;

Revision 1.58 / (download) - annotate - [select for diffs], Sat Nov 17 10:55:21 2012 UTC (11 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

sync m_copydata prototype with reality, ok jsg phessler

Revision 1.57 / (download) - annotate - [select for diffs], Thu Sep 27 16:15:00 2012 UTC (11 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.56: +5 -7 lines
Diff to previous 1.56 (colored)

replace m_zero(9) with M_ZEROIZE; original diff from markus
ok mikeb markus

Revision 1.56 / (download) - annotate - [select for diffs], Fri Dec 2 10:57:16 2011 UTC (12 years, 6 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored)

it's MAXMCLBYTES, not MAXCLBYTES.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 30 10:26:56 2011 UTC (12 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.54: +7 -6 lines
Diff to previous 1.54 (colored)

this diff introduces the MAXMCLBYTES macro to describe the largest
cluster the generic network stack will be able to give you.

it also recognises that external storage on an mbuf may be bigger than
MCLBYTES. its only when m_pullup or m_pulldown need to allocate
another cluster that they now check the len argument, and now they
do it against MAXMCLBYTES.

this is required for me to do pfsync on jumbo frames as the m_pulldown
for the subregions fail beyond MCLBYTES into the packet.

ok deraadt@ mikeb@ henning@ blambert@
manpage changes ok jmc@

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jul 29 12:59:28 2011 UTC (12 years, 10 months ago) by blambert
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.53: +4 -27 lines
Diff to previous 1.53 (colored)

Remove references to a function that no longer exists, reminded by claudio@

ok jmc@, claudio@

Revision 1.53 / (download) - annotate - [select for diffs], Tue Apr 5 11:59:11 2011 UTC (13 years, 2 months ago) by blambert
Branch: MAIN
Changes since 1.52: +8 -4 lines
Diff to previous 1.52 (colored)

Arguments to m_dup_pkthdr() have changed; sync man page with reality.

ok claudio@

Revision 1.52 / (download) - annotate - [select for diffs], Mon Apr 4 20:31:47 2011 UTC (13 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Nd strings do not start uppercase;

Revision 1.51 / (download) - annotate - [select for diffs], Sun Apr 3 12:33:47 2011 UTC (13 years, 2 months ago) by blambert
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

fix typo; found by and ok jmc@

Revision 1.50 / (download) - annotate - [select for diffs], Sun Apr 3 09:49:24 2011 UTC (13 years, 2 months ago) by blambert
Branch: MAIN
Changes since 1.49: +8 -1 lines
Diff to previous 1.49 (colored)

Document m_dup_pkthdr function.

ok claudio@

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jan 30 16:51:38 2011 UTC (13 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.48: +2 -3 lines
Diff to previous 1.48 (colored)

zap unneeded Pp;

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jan 30 15:20:13 2011 UTC (13 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

missing space: out-of-banddata -> out-of-band data

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jul 7 09:16:36 2010 UTC (13 years, 11 months ago) by blambert
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.46: +15 -6 lines
Diff to previous 1.46 (colored)

update manpage to reflect recent changes to m_copyback

nag and ok sthen@

Revision 1.46 / (download) - annotate - [select for diffs], Sat May 29 16:43:54 2010 UTC (14 years ago) by damien
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored)

restore a line that was removed by blambert@ along with MCHTYPE.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jan 10 10:53:33 2010 UTC (14 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.44: +2 -5 lines
Diff to previous 1.44 (colored)

remove references to docs we no longer install;

Revision 1.44 / (download) - annotate - [select for diffs], Sun Aug 9 11:40:58 2009 UTC (14 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

MCLGETI() will now allocate a mbuf header if it is not provided, thus
reducing the amount of splnet/splx dancing required.. especially in the
worst case (of m_cldrop)
ok dlg kettenis damien

Revision 1.43 / (download) - annotate - [select for diffs], Mon Mar 2 23:37:08 2009 UTC (15 years, 3 months ago) by blambert
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.42: +2 -20 lines
Diff to previous 1.42 (colored)

Remove MEXTMALLOC and MCHTYPE from mbuf.9, as they have not existed
for some time.

ok jmc@

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 28 23:08:58 2009 UTC (15 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Correctly document MINCLSIZE which changed some time ago.
OK mbalmer@ a long time ago

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jan 26 11:51:14 2009 UTC (15 years, 4 months ago) by bluhm
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Fix whitespace typo in mbuf man page.

ok grunk@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Dec 14 23:39:05 2008 UTC (15 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.39: +2 -3 lines
Diff to previous 1.39 (colored)

MCLGETI takes an mbuf *, not an mbuf.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Nov 29 15:44:37 2008 UTC (15 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

extra word deleted; spotted by jmc

Revision 1.38 / (download) - annotate - [select for diffs], Sat Nov 29 02:39:30 2008 UTC (15 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.37: +24 -2 lines
Diff to previous 1.37 (colored)

document MCLGETI

Revision 1.37 / (download) - annotate - [select for diffs], Mon Nov 3 22:16:51 2008 UTC (15 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.36: +2 -4 lines
Diff to previous 1.36 (colored)

Forgot this docu bit in the M_ANYCAST6 removal. This is actually from naddy@

Revision 1.36 / (download) - annotate - [select for diffs], Tue Oct 14 18:01:53 2008 UTC (15 years, 7 months ago) by naddy
Branch: MAIN
Changes since 1.35: +10 -10 lines
Diff to previous 1.35 (colored)

Change m_devget()'s outdated and unused "offset" argument:  It is
now the offset into the first mbuf of the target chain before copying
the source data over.  From FreeBSD.

Convert drivers' use of m_devget().  Mostly from thib@.

Update mbuf(9) man page.

ok claudio@, thib@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 18 15:16:30 2008 UTC (15 years, 8 months ago) by naddy
Branch: MAIN
Changes since 1.34: +7 -3 lines
Diff to previous 1.34 (colored)

Introduce the infrastructure required to support hardware VLAN tag
stripping:  Add a field to the mbuf pkthdr to hold the tag and an
mbuf flag that tells if the tag is valid.  Inspired by FreeBSD.

Struct packing suggested by kettenis@.   csum_flags is now 16 bits.
Adapt to this in the drivers.

ok reyk@, henning@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Sep 15 17:16:14 2008 UTC (15 years, 8 months ago) by naddy
Branch: MAIN
Changes since 1.33: +8 -2 lines
Diff to previous 1.33 (colored)

briefly document the M_LINK0 and M_FILDROP flags; ok jmc@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Aug 29 08:13:08 2008 UTC (15 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

MSIZE and MCLBYTES are now defined in sys/param.h; from Jordan Gordeev
ok thib

Revision 1.32 / (download) - annotate - [select for diffs], Sun Apr 13 14:13:14 2008 UTC (16 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

MSIZE is defined in sys/param.h, not machine/param.h;
from Jonathan Thornburg, documentation/5792

Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 30 15:01:56 2008 UTC (16 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

correct arg name; from Matthew Dempsky
ok claudio

Revision 1.30 / (download) - annotate - [select for diffs], Mon Feb 11 07:58:28 2008 UTC (16 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

bump Mdocdate for pages committed in "febuary", necessary because
of a typo in rcs.c;

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 3 17:20:21 2008 UTC (16 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Fix the struct pkthdr definition.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 14 16:16:08 2007 UTC (16 years, 8 months ago) by mk
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

sleep(9) was removed aeons ago according to miod, so remove references
to it.  Because man pages are named after functions (at least they
should be) and sleep(9) doesn't exist anymore, sleep.9 is renamed to
tsleep.9.

Input and reminders from jmc and ratchov.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 10 14:53:25 2007 UTC (16 years, 10 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.26: +11 -1 lines
Diff to previous 1.26 (colored)

sync structs with reality
From: tbert <bret.lambert@gmail.com>

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 31 19:20:00 2007 UTC (17 years ago) by jmc
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

convert to new .Dd format;

Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 12 14:52:13 2007 UTC (17 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.24: +7 -1 lines
Diff to previous 1.24 (colored)

m_prepend() should never be called directly. So tell people to use
M_PREPEND() instead. Whit help by jmc@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 3 06:37:37 2007 UTC (17 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored)

put "CODE REFERENCES" before "SEE ALSO" for consistency

ok jmc@

Revision 1.23 / (download) - annotate - [select for diffs], Thu Oct 12 07:24:31 2006 UTC (17 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.22: +5 -3 lines
Diff to previous 1.22 (colored)

- give smm/18.net a title
- mark up `>'

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 11 22:39:46 2006 UTC (17 years, 7 months ago) by mpf
Branch: MAIN
Changes since 1.21: +11 -11 lines
Diff to previous 1.21 (colored)

Remove unused variable and simplify m_copym0(). Diff from bret.lambert at gmail.com.
Kill another unused variable in m_devget(). Pointed out by mcbride.
Rename all offset variables from off0 to off.
OK markus@, deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Sep 5 18:00:34 2006 UTC (17 years, 9 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

mention that the 'cp' argument to m_copyback is the buffer to be
copied from.

ok jmc@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Aug 28 19:02:46 2006 UTC (17 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

sync MEXTADD prototype with reality.
it takes an extra "size" argument.

ok jmc@, deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 25 23:33:40 2005 UTC (19 years, 1 month ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

csum -> csum_flags

reminded by markus@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 29 00:47:36 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

quote %T and %B to prevent madness;

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 10 05:44:40 2005 UTC (19 years, 5 months ago) by jsg
Branch: MAIN
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored)

m_hdr.mh_flags has been u_short for some time now.
Kill uneeded line while here.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Nov 27 00:59:14 2004 UTC (19 years, 6 months ago) by pvalchev
Branch: MAIN
Changes since 1.15: +10 -10 lines
Diff to previous 1.15 (colored)

proper prototypes for some functions that were missing them; ok deraadt dhartmei

Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 25 21:54:55 2004 UTC (19 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.14: +31 -25 lines
Diff to previous 1.14 (colored)

resolve conflict between M_TUNNEL and M_ANYCAST6, remove M_COMP (it's
only set and never read), update documentation; ok fgsch, deraadt, millert

Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 16 21:23:08 2004 UTC (20 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

list/display fixes, and whitespace;

Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 27 05:01:52 2003 UTC (20 years, 5 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.12: +4 -1 lines
Diff to previous 1.12 (colored)

Mention that m is free'd if m_pulldown fails.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 12 10:25:00 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.11: +16 -12 lines
Diff to previous 1.11 (colored)

sync with <sys/mbuf.h>, as pointed out by Dragos Ruiu;
ok deraadt@ itojun@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 17 05:08:39 2003 UTC (21 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.10: +15 -13 lines
Diff to previous 1.10 (colored)

typos;

md5(9): ok tedu@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 14 19:44:32 2003 UTC (21 years, 2 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.9: +49 -18 lines
Diff to previous 1.9 (colored)

more cleaning: document 'how'

Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 14 19:29:54 2003 UTC (21 years, 2 months ago) by jason
Branch: MAIN
Changes since 1.8: +1 -5 lines
Diff to previous 1.8 (colored)

dead functions

Revision 1.8 / (download) - annotate - [select for diffs], Fri Mar 14 19:27:48 2003 UTC (21 years, 2 months ago) by jason
Branch: MAIN
Changes since 1.7: +46 -31 lines
Diff to previous 1.7 (colored)

This still needs work, but it's alot closer.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 2 03:39:07 2003 UTC (21 years, 4 months ago) by jason
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

:%s/MEXTALLOC/MEXTMALLOC/g; pointed out by angelos

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 14 17:25:19 2002 UTC (21 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Typo.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 12 07:25:35 2002 UTC (22 years ago) by aaron
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

Finish the first sentence (has anyone ever read this man page?).

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:39 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Dec 6 10:08:47 2001 UTC (22 years, 6 months ago) by jjbg
Branch: MAIN
Changes since 1.2: +501 -468 lines
Diff to previous 1.2 (colored)

mbuf(9) man page. Thanks for art@ and mpech@ corrections.

Revision 1.2, Wed Sep 22 09:54:38 1999 UTC (24 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.1: +1 -1 lines
FILE REMOVED

REVERT TO PREVIOUS STATE OF AFFAIR.

If those pages are different from the NetBSD version, maybe there's a
reason ?

Like, possibly, I just read our source code, which just happens to do
things in DIFFERENT ways than NetBSD does ?

As far as the added pages go, they obviously haven't been checked against
actual code as well, hence they're worse than useless, since a large part
of the information is definitely misleading.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 22 03:16:47 1999 UTC (24 years, 8 months ago) by csapuntz
Branch: MAIN



Add/update some man9 pages from NetBSD

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.