Fix rts_input() which is the only procedure which calls raw_input(). As
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 24 Jun 2007 20:00:00 +0000 (20:00 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 24 Jun 2007 20:00:00 +0000 (20:00 +0000)
commit47db7f9b458e3e3dd9fe2dde958f9dbd85d54318
treefc54437b01c659b71854622525ec3a7de3cb6ae9
parent4d11cea49b9b75d1833453095a1d4efdb5abcbcf
Fix rts_input() which is the only procedure which calls raw_input().  As
with other packet input routines, the mbuf must be demuxed and forwarded
to the correct protocol thread so it can be cpu-localized for processing.

This allow anyone, including interrupt code, to write to the routing
socket.

Reported-by: "Sepherosa Ziehau" <sepherosa@gmail.com>
sys/net/raw_usrreq.c
sys/net/rtsock.c