All pastes #183375 Raw Edit

Mine

public text v1 · immutable
#183375 ·published 2006-09-26 21:18 UTC
rendered paste body
extern  struct domain npdomain;
static  struct pr_usrreqs nousrreqs;

struct protosw npsw[] = {
{
        .pr_type =              0,
        .pr_domain =            &npdomain,
        .pr_protocol =          NPPROTO_NP,
        .pr_init =              np_init,
        .pr_slowtimo =          np_slowtimo,
        .pr_drain =             np_drain,
        .pr_usrreqs =           &nousrreqs
},
{
        .pr_type =              SOCK_DGRAM,
        .pr_domain =            &npdomain,    /*Line 36*/
        .pr_protocol =          NPPROTO_UDP,
        .pr_flags =             PR_ATOMIC|PR_ADDR,
        .pr_input =             udp_np_input,
        .pr_ctlinput =          udp_np_ctlinput,
        .pr_ctloutput =         np_ctloutput,
        .pr_usrreqs =           &udp_np_usrreqs,
},
};