OpenBSD CVS

CVS log for src/usr.sbin/ripd/packet.c


[BACK] Up to [local] / src / usr.sbin / ripd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 19 16:02:22 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.16: +8 -6 lines
Diff to previous 1.16 (colored)

Like ospfd allocate the recv buffer with malloc() on first call.
This code assumes some alignment of the buffer which may not be
the case with bss memory.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 19 10:30:00 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Forgot one IBUF_READ_SIZE to READ_BUF_SIZE change.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 19 10:28:07 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Do not use IBUF_READ_SIZE for the packet read buffer size. Instead
define READ_BUF_SIZE like the other daemons.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 19 10:02:22 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Like in ospfd make the pkt_ptr a local static buffer.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 23 14:53:16 2016 UTC (7 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.12: +12 -10 lines
Diff to previous 1.12 (colored)

Support p2p links where endpoints aren't in the same subnet.

Diff from Piotr Durlej, similar diff from chris@, ok mpi@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 25 03:23:49 2014 UTC (9 years, 7 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

Remove unnecessary netinet/in_systm.h include.

ok millert@

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

Rename some imsg bits to make namespace collisions less likely buf to
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.

ok henning gilles claudio jacekm deraadt

Revision 1.10 / (download) - annotate - [select for diffs], Mon Mar 24 16:11:05 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

msg_controllen has to be CMSG_SPACE so that the kernel can account for
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len).  This
works now that kernel fd passing has been fixed to accept a bit of
sloppiness because of this ABI repair.
lots of discussion with kettenis

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 15 16:24:58 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Repair more msg_controllen dealing with structures or arrays of
descriptors; ok hshoexer, also looked at by kettenis and henning

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 13 01:49:53 2008 UTC (16 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +7 -4 lines
Diff to previous 1.7 (colored)

Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due to
an extensive discussion with otto, kettenis, millert, and hshoexer

Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 24 20:52:50 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Make the packet buffer u_int8_t * everywhere. This is binary data and not
a string.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 27 20:19:04 2007 UTC (17 years, 2 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Remove unused parameter in nbr_new

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 23 21:10:10 2007 UTC (17 years, 4 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

add timeout for failed nbr structures

OK claudio@ henning@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 31 23:43:11 2006 UTC (17 years, 7 months ago) by michele
Branch: MAIN
Changes since 1.3: +4 -9 lines
Diff to previous 1.3 (colored)

create a temporary neighbor instead of a permanent one when a request is received

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 24 16:37:48 2006 UTC (17 years, 7 months ago) by david
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

spelling and typo fixes

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 19 12:29:58 2006 UTC (17 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Correct function name in log_debug() messages

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 16:11:58 2006 UTC (17 years, 7 months ago) by norby
Branch: MAIN

Welcome ripd
started by Michele Marchetto some time ago by using the imsg/three process framework
of ospfd. He implemented most of the daemon with a little help and guidance from
Claudio and I.

Currently the daemon is more or less complete, with the exception of key lifetime
and rollover.

Not yet connected to the builds.
OK claudio@

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.