Lines Matching refs:dn
128 struct dn_neigh *dn = (struct dn_neigh *)neigh; in dn_neigh_construct() local
154 if (dn->flags & DN_NDFLAG_P3) in dn_neigh_construct()
163 dn_dn2eth(neigh->ha, dn->addr); in dn_neigh_construct()
183 dn->blksize = dev->mtu - 2; in dn_neigh_construct()
374 struct dn_neigh *dn; in dn_neigh_router_hello() local
382 dn = (struct dn_neigh *)neigh; in dn_neigh_router_hello()
396 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_router_hello()
397 dn->priority = msg->priority; in dn_neigh_router_hello()
399 dn->flags &= ~DN_NDFLAG_P3; in dn_neigh_router_hello()
403 dn->flags &=~DN_NDFLAG_R2; in dn_neigh_router_hello()
404 dn->flags |= DN_NDFLAG_R1; in dn_neigh_router_hello()
407 dn->flags |= DN_NDFLAG_R2; in dn_neigh_router_hello()
435 struct dn_neigh *dn; in dn_neigh_endnode_hello() local
442 dn = (struct dn_neigh *)neigh; in dn_neigh_endnode_hello()
454 dn->flags &= ~(DN_NDFLAG_R1 | DN_NDFLAG_R2); in dn_neigh_endnode_hello()
455 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_endnode_hello()
456 dn->priority = 0; in dn_neigh_endnode_hello()
496 struct dn_neigh *dn; in neigh_elist_cb() local
501 dn = (struct dn_neigh *) neigh; in neigh_elist_cb()
502 if (!(dn->flags & (DN_NDFLAG_R1|DN_NDFLAG_R2))) in neigh_elist_cb()
506 s->rs = dn_find_slot(s->ptr, s->n, dn->priority); in neigh_elist_cb()
512 dn_dn2eth(s->rs, dn->addr); in neigh_elist_cb()
515 *(s->rs) |= dn->priority; in neigh_elist_cb()
540 struct dn_neigh *dn = (struct dn_neigh *) n; in dn_neigh_format_entry() local
545 dn_addr2asc(le16_to_cpu(dn->addr), buf), in dn_neigh_format_entry()
546 (dn->flags&DN_NDFLAG_R1) ? "1" : "-", in dn_neigh_format_entry()
547 (dn->flags&DN_NDFLAG_R2) ? "2" : "-", in dn_neigh_format_entry()
548 (dn->flags&DN_NDFLAG_P3) ? "3" : "-", in dn_neigh_format_entry()
549 dn->n.nud_state, in dn_neigh_format_entry()
550 atomic_read(&dn->n.refcnt), in dn_neigh_format_entry()
551 dn->blksize, in dn_neigh_format_entry()
552 (dn->n.dev) ? dn->n.dev->name : "?"); in dn_neigh_format_entry()