mycroft
9bfa240a98
Hash unconnected PCBs.
1996-09-15 18:11:06 +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
mrg
4b851a2d9b
remove an unused variable.
1996-09-14 12:35:07 +00:00
mrg
df4a844f44
forward decl. struct mbuf (for now).
1996-09-12 23:11:40 +00:00
explorer
f5a52c4260
Move an #ifdef _KERNEL up above all the packet filter stuff. This
...
could very well break the packet filter stuff, but it will make things
like rcp.c compile, and rcp.c should not need to include sys/mbuf.h
to do so...
1996-09-12 22:56:03 +00:00
mycroft
da2cd7eb82
If we're in SYN-SENT or SYN-RECEIVED state, don't reset the keepalive
...
timer until we transition to ESTABLISHED state. Suggested by TCP/IP
vol 3.
1996-09-10 23:26:05 +00:00
mycroft
9bb1acd303
Rework the token bucket filter to use a list of packets rather than a static
...
array. Also, fix several memory leaks. From Bill Fenner.
1996-09-09 17:14:04 +00:00
mycroft
23437fc3d2
Cosmetic changes, some from Bill Fenner.
1996-09-09 17:09:50 +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
mycroft
f5c7d8bcc1
Save 68 bytes of the packet for ICMP, not 64. From Laine Stump, PR 2296.
1996-09-08 15:49:43 +00:00
mrg
e27343e07d
fix a couple of minor nits after discussions with jason.
1996-09-07 04:55:16 +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
perry
94a217e163
Commit PR 2671, which adds an "IPNOPRIVPORTS" config option that turns
...
off the code that normally only allows root to bind low TCP
ports. Useful on firewalls and such.
1996-09-05 18:10:03 +00:00
thorpej
3ca11aa1ad
Fix some DIAGNOSTIC printf() formats; ntohl() provides a 32-bit quantity,
...
and should be printed with %x, not %lx.
1996-08-14 03:46:44 +00:00
neil
78bddbd393
Prototypes and definitions for ICMP Router Discovery, From FreeBSD.
...
rdisc coming soon! :-)
1996-08-03 15:48:18 +00:00
cgd
9764a289cd
print result of ntohl/htonl as a long. (makes -Wformat work on the
...
Alpha.)
1996-07-10 18:13:35 +00:00
chuck
26cf9de9d5
ported ATM to FreeBSD 2.2-960612-SNAP
1996-07-03 17:17:10 +00:00
chuck
cc499a99d9
change:
...
- change asock to rxhand and adjust all for this [esp atm_input]
1996-06-29 20:07:05 +00:00
chuck
a08c95305d
fixes/new stuff:
...
[1] if user tries to enter in a bogus PVC don't leave it in the routing
table ... remove it
[2] change ioctl arg to include rxso for lower layer
[3] add hooks (inside "NATM" ifdef) for native mode atm sockets so that
they don't clash with IP PVCs. [i am still debugging the native
mode atm socket protosw code]
1996-06-26 04:18:44 +00:00
mycroft
865bfae299
Return ENOPROTOOPT rather than picking pseudo-random error values.
...
Don't allow SIOCGET{VIF,SG}CNT from sockets other than the multicast router.
Restructure rip_ctloutput() like ip_ctloutput(), and fix memory leaks.
1996-06-23 12:12:44 +00:00
chuck
d9c6fd68b8
network support for ATM networks (ATM == Async Transfer Mode, not
...
Automatic Teller Machine).
Currently supports PVCs only (no ATM ARP either).
1996-06-22 01:47:35 +00:00
pk
ecbb3b2eb2
Prototype new rip_*() functions.
1996-05-28 23:27:04 +00:00
mycroft
91ac291d97
Move some code into a separate rip_bind() function.
1996-05-24 19:03:13 +00:00
mycroft
9347e648d8
udp_output() doesn't actually take control data, so don't pretend it does.
1996-05-23 17:05:45 +00:00
mycroft
f399db63a4
Make sure the control mbufs are freed in all cases.
1996-05-23 17:03:27 +00:00
mycroft
60395beed8
Fix a race condition in PRU_DISCONNECT.
...
Rearrange the code to deal with unconnected sockets slightly.
Other minor changes.
1996-05-23 16:22:32 +00:00
mycroft
e930766cdc
Minor changes.
1996-05-23 16:13:19 +00:00
mycroft
aee4be7a7f
Minor changes to make this more like other protocols. Also, fix some return
...
values.
1996-05-23 16:12:15 +00:00
mycroft
a8ba1d063c
A few style changes to match netiso and netns.
1996-05-22 14:42:27 +00:00
mycroft
49d52c9b1c
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
...
PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.
1996-05-22 13:54:55 +00:00
mrg
4e25d1d20b
if the sender set a cksum, check it, regardless if we care to
...
generate and send them ourselves. from rich stevens.
1996-05-20 16:56:20 +00:00
mycroft
e901286aad
When sending an ARP request, use the interface address for the route, rather
...
than the first address assigned. This gives slightly different behaviour in
the presence of aliases. From Bill Fenner, via Pete Bentley.
1996-05-11 12:59:55 +00:00
thorpej
4edabe2501
Changed struct ifnet to have a pointer to the softc of the underlying
...
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 02:40:22 +00:00
jonathan
24a8c21b53
fixes for -Wall -Wmissing-prototypes:
...
include <sys/systm.h> to get a prototyped declaration of printf().
include <netinet/in.h> to get a prototyped declaration of in_cksum().
1996-04-08 19:55:37 +00:00
christos
dd7163922a
Fix db_printf formats
1996-03-30 21:53:19 +00:00
christos
2769793c13
Fix printf format args.
1996-03-16 23:53:58 +00:00
mrg
32cdb91fa3
two more local addr changes, all done differently now (idea from charles)
1996-02-26 23:16:42 +00:00
mrg
86b9b4d6be
if we are connecting *to* an address of any local interface, default the
...
local address of the socket to the same address.
1996-02-26 08:25:47 +00:00
christos
b2cc81b8fe
Fix PR/2095 options MROUTING did not compile.
1996-02-18 18:58:32 +00:00
christos
14d9cd33af
netinet prototypes
1996-02-13 23:40:59 +00:00
mycroft
0a47ede0fe
Ignore FIN if not yet connected.
1996-01-31 05:56:56 +00:00
mycroft
ac01b2f206
Add a comment describing the previous.
1996-01-31 05:42:37 +00:00
mycroft
a4e1bceb84
If we close from FIN_WAIT_2 state, make sure we don't leave the socket
...
around forever if we don't get a final FIN. From Arne Juul, PR 1659.
1996-01-31 05:37:29 +00:00
mycroft
67e78477db
Build a hash table of PCBs. Hash function needs tweaking.
1996-01-31 03:49:23 +00:00
thorpej
535abd80a2
Add a net.inet.ip.directed-broadcast sysctl as suggested by
...
Darren Reed <darrenr@vitruvius.arbld.unimelb.edu.au> in PR #1227 .
This change is slightly different than the one submitted by Darren in
that the DIRECTED_BROADCAST compile-time option will behave like it used
to so that existing configurations utilizing it won't have to change.
1996-01-16 04:17:30 +00:00
thorpej
4b359df8c4
Add net.inet.ip.forwsrcrt: if zero, the system will not forward
...
source-routed packets. Note this value is protected by kernel security
level; it can only be changed if securelevel < 1.
1996-01-15 21:11:46 +00:00
pk
c069674663
Handle PRU_CONTROL (David Maltz; PR#1664).
1995-11-30 16:42:18 +00:00
cgd
dfad729a16
make netinet work on systems where pointers and longs are 64 bits
...
(like the alpha). Biggest problem: IP headers were overlayed with
structure which included pointers, and which therefore didn't overlay
properly on 64-bit machines. Solution: instead of threading pointers
through IP header overlays, add a "queue element" structure to do
the threading, and point it at the ip headers.
1995-11-21 01:07:34 +00:00
thorpej
7884abf9e5
Implement tcp_sysctl(). Add a sysctl option to enable/disable RFC1323
...
extensions to TCP. From John Kohl <jtk@kolvir.blrc.ma.us>.
1995-09-30 07:02:00 +00:00
mycroft
873ed30f83
so_pcb should be a void *.
1995-08-17 02:57:20 +00:00