static int l3down(layer3_t *l3, u_int prim, int dinfo, struct sk_buff *skb) { int err = -EINVAL; if (!skb) err = if_link(&l3->inst.down, prim, dinfo, 0, NULL, 0); else err = if_newhead(&l3->inst.down, prim, dinfo, skb); return(err); }
int mISDN_l3up(l3_process_t *l3p, u_int prim, struct sk_buff *skb) { layer3_t *l3; int err = -EINVAL; if (!l3p) return(-EINVAL); l3 = l3p->l3; if (!skb) err = if_link(&l3->inst.up, prim, l3p->id, 0, NULL, 0); else err = if_newhead(&l3->inst.up, prim, l3p->id, skb); return(err); }
static int l2up(layer2_t *l2, u_int prim, int dinfo, msg_t *msg) { return(if_newhead(l2->nst, l2->nst->l2_l3, prim, dinfo, msg)); }