NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/48606: ether_input() incorrectly called from several drivers



>Number:         48606
>Category:       kern
>Synopsis:       ether_input() incorrectly called from several drivers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 21 01:45:00 +0000 2014
>Originator:     Lloyd Parkes
>Release:        current
>Organization:
Must Have Coffee
>Environment:
N/A
>Description:
Several network interface drivers call ether_input() to pass a packet that has 
been received up the network stack. This is not the right way to do it, they 
should be calling ifp->if_input(ifp, m) instead. ifp->if_input is normally a 
pointer to ether_input(), but it doesn't have to be.
>How-To-Repeat:
N/A.
>Fix:
Either change the code to call ifp->if_input() or add a call to ifp->if_input() 
that is protected by #if. 



Home | Main Index | Thread Index | Old Index