Lines Matching refs:dn
114 struct dn_neigh *dn = container_of(neigh, struct dn_neigh, n); in dn_neigh_construct() local
142 dn_dn2eth(neigh->ha, dn->addr); in dn_neigh_construct()
162 dn->blksize = dev->mtu - 2; in dn_neigh_construct()
343 struct dn_neigh *dn = container_of(neigh, struct dn_neigh, n); in dn_to_neigh_output() local
356 if (dn->flags & DN_NDFLAG_P3) in dn_to_neigh_output()
387 struct dn_neigh *dn; in dn_neigh_router_hello() local
395 dn = container_of(neigh, struct dn_neigh, n); in dn_neigh_router_hello()
409 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_router_hello()
410 dn->priority = msg->priority; in dn_neigh_router_hello()
412 dn->flags &= ~DN_NDFLAG_P3; in dn_neigh_router_hello()
416 dn->flags &=~DN_NDFLAG_R2; in dn_neigh_router_hello()
417 dn->flags |= DN_NDFLAG_R1; in dn_neigh_router_hello()
420 dn->flags |= DN_NDFLAG_R2; in dn_neigh_router_hello()
448 struct dn_neigh *dn; in dn_neigh_endnode_hello() local
455 dn = container_of(neigh, struct dn_neigh, n); in dn_neigh_endnode_hello()
467 dn->flags &= ~(DN_NDFLAG_R1 | DN_NDFLAG_R2); in dn_neigh_endnode_hello()
468 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_endnode_hello()
469 dn->priority = 0; in dn_neigh_endnode_hello()
509 struct dn_neigh *dn; in neigh_elist_cb() local
514 dn = container_of(neigh, struct dn_neigh, n); in neigh_elist_cb()
515 if (!(dn->flags & (DN_NDFLAG_R1|DN_NDFLAG_R2))) in neigh_elist_cb()
519 s->rs = dn_find_slot(s->ptr, s->n, dn->priority); in neigh_elist_cb()
525 dn_dn2eth(s->rs, dn->addr); in neigh_elist_cb()
528 *(s->rs) |= dn->priority; in neigh_elist_cb()
553 struct dn_neigh *dn = container_of(n, struct dn_neigh, n); in dn_neigh_format_entry() local
558 dn_addr2asc(le16_to_cpu(dn->addr), buf), in dn_neigh_format_entry()
559 (dn->flags&DN_NDFLAG_R1) ? "1" : "-", in dn_neigh_format_entry()
560 (dn->flags&DN_NDFLAG_R2) ? "2" : "-", in dn_neigh_format_entry()
561 (dn->flags&DN_NDFLAG_P3) ? "3" : "-", in dn_neigh_format_entry()
562 dn->n.nud_state, in dn_neigh_format_entry()
563 refcount_read(&dn->n.refcnt), in dn_neigh_format_entry()
564 dn->blksize, in dn_neigh_format_entry()
565 (dn->n.dev) ? dn->n.dev->name : "?"); in dn_neigh_format_entry()