mycroft
231a906c71
There's just no plausible reason to byte-swap ip_id internally. It's opaque.
1999-01-19 23:39:56 +00:00
thorpej
555784ccd5
Fix byte order and ip_len inconsistencies in ICMP reply code. Also, fix
...
some formatting and HTONS(foo) vs. foo = htons(foo) inconsistencies.
PR #6602 , Darren Reed.
1999-01-11 22:35:06 +00:00
thorpej
12632ebf71
Reverse the copyright-notice-swap. It went against existing practice.
1998-12-19 02:46:12 +00:00
ws
ede30e2813
Fix a buglet when looking up an interface for multicast:
...
Zero out the routing structure before calling the route lookup code
in order to correctly match addresses.
1998-10-26 17:31:01 +00:00
matt
3ad026ac87
vax -> __vax__ (and mips to __mips__ in ultrix_misc.c)
1998-10-20 01:46:27 +00:00
tls
c4730d65cf
Switch order of TNF and UCB copyrights so UCB copyright is first; this seems more appropriate since UCB wrote the original code, after all.
1998-09-30 21:52:24 +00:00
mrg
4a75265273
defopt PFIL_HOOKS.
1998-08-09 08:58:18 +00:00
sommerfe
534520d815
Fix PR5508: ipfil cut-through forwarding causes panic
1998-07-17 00:28:00 +00:00
matt
5b43c678b7
Only transmit fragments if the send queue of interface can actually hold
...
all of the fragments. Use the mtu of route in preference of the MTU of the
interface when doing fragmentation decisions. (ie. Fragment to the path
mtu if it is available).
1998-04-28 15:26:00 +00:00
kml
96954c2a53
Ensure that we take the IP option length into account when we calculate
...
the effective maximum send size for TCP. ip_optlen() and tcp_optlen()
should probably be inlined for efficiency.
1998-03-24 03:10:02 +00:00
mrg
45159fa631
convert pfil(9) in and out lists from <sys/queue.h> LISTs to TAILQs, and
...
change pfil_add_hook to put output filters at the tail of the queue,
while continuing to place input filters at the head of the queue. update
the two users of these functions, and document these changes.
fixes PR#4593.
1998-03-19 15:45:30 +00:00
tls
91de585d5f
Add correct copyright notice for IP address hash change. This code is donated to TNF by the original copyright holder, Panix.
1998-02-15 18:24:23 +00:00
tls
c9934a9084
Change list of interface IP addresses to a hash. Improves performance on hosts with a large number of IP addresses significantly.
1998-02-13 18:21:38 +00:00
kleink
a8bd1c7e84
Fix variable declarations: register -> register int.
1998-02-13 10:23:49 +00:00
scottr
54ea074777
Use option header file for MROUTING
1998-01-12 03:02:48 +00:00
lukem
c80b4400e5
add the following, derived from FreeBSD:
...
* IP_PORTRANGE socket option, which controls how the ephemeral ports
are allocated. it takes the following settings:
IP_PORTRANGE_DEFAULT use anonportmin (49152) -> anonportmax (65535)
IP_PORTRANGE_HIGH as IP_PORTRANGE_DEFAULT (retained for FreeBSD
compat reasons, where these are separate)
IP_PORTRANGE_LOW use 600 -> 1023. only works if uid==0.
* in_pcb flag INP_ANONPORT. set if port was allocated ephmerally
1998-01-07 22:51:22 +00:00
matt
8c42ff649b
Add support for returning maximum supported MTU when ip_output fails with
...
EMSGSIZE.
1997-10-14 00:52:39 +00:00
christos
0659cacda6
Move the mtod calls *after* we've made sure that the packet has passed the
...
filter successfully. Otherwise it can be NULL if the filter blocked it,
and we die. How did this ever work?
1997-04-15 00:41:52 +00:00
mrg
4c8bfe2630
pseudo-device ipfilter brings in PFIL_HOOKS.
1997-02-18 20:49:32 +00:00
thorpej
9df1988ac8
Implement the IP_RECVIF socket option: supply a datagram packet's incoming
...
interface using a sockaddr_dl in a control mbuf.
Implement SO_TIMESTAMP for IP datagrams.
Move packet information option processing into a generic function
so that they work with multicast UDP and raw IP as well as unicast UDP.
Contributed by Bill Fenner <fenner@parc.xerox.com>.
1997-01-11 05:21:07 +00:00
mrg
5e5291f97b
always reassign ip after calling function.
1996-12-20 09:08:16 +00:00
mrg
15eaee8d6f
in pfil_hooks: always reassign ip after calling hook.
1996-12-20 08:39:29 +00:00
veego
b962d9a3eb
Fix a panic from the pfil_hooks.
1996-10-22 11:27:05 +00:00
is
08899f4a1b
Fix a mbuf leak in ip_output().
...
Scenario: If ip_insertoptions() prepends a new mbuf to the chain, the
bad: label's m_freem(m0) still would free only the original mbuf chain
if the transmission failed for, e.g., no route to host; resulting in
one lost mbuf per failed packet. (The original posting included a
demonstration program).
Original report of this bug was by jinmei@isl.rdc.toshiba.co.jp
(JINMEI Tatuya) on comp.bugs.4bsd.
1996-10-11 18:19:08 +00:00
mrg
a5f00f16bc
move the packet filter hooks in to a saner location. while i'm here, rename
...
PACKET_FILTER to PFIL_HOOKS.
1996-09-14 14:40:20 +00:00
mycroft
62a6cce9ca
Add in_nullhost() and in_hosteq() macros, to hide some protocol
...
details. Also, fix a bug in TCP wrt SYN+URG packets.
1996-09-09 14:51:07 +00:00
mrg
ae47956db0
add packet filter interface code. see pfil(9) for more details. you
...
need the PACKET_FILTER option to enable this code. currently, ipfilter
version 3.1.1-beta has been converted to use this new interface.
1996-09-06 05:07:43 +00:00
mrg
32cdb91fa3
two more local addr changes, all done differently now (idea from charles)
1996-02-26 23:16:42 +00:00
christos
14d9cd33af
netinet prototypes
1996-02-13 23:40:59 +00:00
cgd
5b435dbf05
null mbuf pointer could cause system crash; avoid it. From
...
Torsten Duwe <duwe@immd4.informatik.uni-erlangen.de>.
1995-07-01 03:44:55 +00:00
mycroft
6897f39ae9
Various cleanup, including:
...
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.
1995-06-12 00:46:47 +00:00
mycroft
41703012d6
Don't cast things unnecessarily.
1995-06-04 05:58:20 +00:00
mycroft
0a99592372
Clean up many more casts.
1995-06-04 05:06:49 +00:00
mycroft
eb216fd6c2
Avoid byte-swapping IP addresses at run time.
1995-06-01 21:35:34 +00:00
cgd
b4cd363b69
simplify ip_output() out-of-memory condition slightly, and style nits.
1995-05-15 01:24:53 +00:00
cgd
80929f8527
be a bit more careful and explicit with types. (basically a large no-op.)
1995-04-13 06:35:38 +00:00
mycroft
8b77f9cd5f
Remove some explicit references to loif.
1995-04-11 04:30:47 +00:00
cgd
cf92afd66e
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
1994-06-29 06:29:24 +00:00
mycroft
07b4f2ab54
Update to 4.4-Lite networking code, with a few local changes.
1994-05-13 06:02:48 +00:00
hpeyerl
d7038296be
Multicast is no longer optional.
1994-02-02 05:58:50 +00:00
brezak
e568c13be8
Fix arguments to ip_getmoptions.
1994-01-19 21:36:56 +00:00
brezak
17ea2355b4
Fix some prototype detected warnings/errors.
1994-01-18 03:26:53 +00:00
brezak
38253dddb8
Patch for ip-multicast bugs from mccanne@ee.lbl.gov (Steven McCanne)
1994-01-18 02:36:53 +00:00
mycroft
b79490fcca
Should compile now with or without `options MULTICAST'.
1994-01-10 20:14:14 +00:00
mycroft
222ebaf50e
Prototype the rest.
1994-01-09 01:06:02 +00:00
mycroft
4fe12e6e88
Fix some inconsistent spacing; spaces at the end of lines, etc.
1994-01-08 21:21:28 +00:00
cgd
9834dab564
kill COMPAT_OLDSOCKOPT
1994-01-07 22:16:11 +00:00
ws
0a8a197a17
Apparently noone ever tested the COMPAT_OLDSOCKOPT flag...
1994-01-06 23:00:22 +00:00
mycroft
95b048b53a
Canonicalize all #includes.
1993-12-18 00:40:47 +00:00
cgd
39bb0b1bc8
oops; fix that last...
1993-12-06 07:14:45 +00:00