Bjoern A. Zeeb 1b48d24533 MFp4 CH=183052 183053 183258:
In protosw we define pr_protocol as short, while on the wire
  it is an uint8_t.  That way we can have "internal" protocols
  like DIVERT, SEND or gaps for modules (PROTO_SPACER).
  Switch ipproto_{un,}register to accept a short protocol number(*)
  and do an upfront check for valid boundries. With this we
  also consistently report EPROTONOSUPPORT for out of bounds
  protocols, as we did for proto == 0.  This allows a caller
  to not error for this case, which is especially important
  if we want to automatically call these from domain handling.

  (*) the functions have been without any in-tree consumer
  since the initial introducation, so this is considered save.

  Implement ip6proto_{un,}register() similarly to their legacy IP
  counter parts to allow modules to hook up dynamically.

Reviewed by:	philip, will
MFC after:	1 week
2010-09-02 17:43:44 +00:00
..
2009-11-19 13:39:07 +00:00
2010-09-02 17:43:44 +00:00
2010-09-02 17:43:44 +00:00
2010-08-19 11:31:03 +00:00
2010-08-19 11:31:03 +00:00
2010-08-20 17:52:49 +00:00
2010-08-19 11:31:03 +00:00
2010-08-19 11:31:03 +00:00
2010-05-09 20:32:00 +00:00