1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/netgraph
Seigo Tanimura 243917fe3b Lock down a socket, milestone 1.
o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
  socket buffer. The mutex in the receive buffer also protects the data
  in struct socket.

o Determine the lock strategy for each members in struct socket.

o Lock down the following members:

  - so_count
  - so_options
  - so_linger
  - so_state

o Remove *_locked() socket APIs.  Make the following socket APIs
  touching the members above now require a locked socket:

 - sodisconnect()
 - soisconnected()
 - soisconnecting()
 - soisdisconnected()
 - soisdisconnecting()
 - sofree()
 - soref()
 - sorele()
 - sorwakeup()
 - sotryfree()
 - sowakeup()
 - sowwakeup()

Reviewed by:	alfred
2002-05-20 05:41:09 +00:00
..
netgraph.h
ng_async.c
ng_async.h
ng_base.c
ng_bpf.c
ng_bpf.h
ng_bridge.c
ng_bridge.h
ng_cisco.c
ng_cisco.h
ng_echo.c
ng_echo.h
ng_eiface.c
ng_eiface.h
ng_etf.c
ng_etf.h
ng_ether.c Don't send packets out an interface unless it is IFF_UP|IFF_RUNNING. 2002-05-09 20:19:00 +00:00
ng_ether.h
ng_frame_relay.c
ng_frame_relay.h
ng_gif_demux.c
ng_gif_demux.h
ng_gif.c
ng_gif.h
ng_hole.c
ng_hole.h
ng_iface.c
ng_iface.h
ng_ip_input.c
ng_ip_input.h
ng_ksocket.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
ng_ksocket.h
ng_lmi.c
ng_lmi.h
ng_message.h
ng_mppc.c
ng_mppc.h
ng_one2many.c
ng_one2many.h
ng_parse.c
ng_parse.h
ng_ppp.c
ng_ppp.h
ng_pppoe.c Add a NGM_PPPOE_SESSIONID message to the ng_pppoe node. 2002-05-14 12:32:41 +00:00
ng_pppoe.h Add a NGM_PPPOE_SESSIONID message to the ng_pppoe node. 2002-05-14 12:32:41 +00:00
ng_pptpgre.c
ng_pptpgre.h
ng_rfc1490.c
ng_rfc1490.h
ng_sample.c
ng_sample.h
ng_socket.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
ng_socket.h
ng_socketvar.h
ng_split.c
ng_split.h
ng_tee.c
ng_tee.h
ng_tty.c
ng_tty.h
ng_UI.c
ng_UI.h
ng_vjc.c
ng_vjc.h
NOTES