Searched refs:dn (Results 1 – 4 of 4) sorted by relevance
132 struct dn_neigh *dn = (struct dn_neigh *)neigh; in dn_neigh_construct() local158 if (dn->flags & DN_NDFLAG_P3) in dn_neigh_construct()167 dn_dn2eth(neigh->ha, dn->addr); in dn_neigh_construct()187 dn->blksize = dev->mtu - 2; in dn_neigh_construct()375 struct dn_neigh *dn; in dn_neigh_router_hello() local383 dn = (struct dn_neigh *)neigh; in dn_neigh_router_hello()397 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_router_hello()398 dn->priority = msg->priority; in dn_neigh_router_hello()400 dn->flags &= ~DN_NDFLAG_P3; in dn_neigh_router_hello()404 dn->flags &=~DN_NDFLAG_R2; in dn_neigh_router_hello()[all …]
894 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_endnode_hello() local895 dn_dn2eth(msg->neighbor, dn->addr); in dn_send_endnode_hello()914 static int dn_am_i_a_router(struct dn_neigh *dn, struct dn_dev *dn_db, struct dn_ifaddr *ifa) in dn_am_i_a_router() argument925 if (dn->priority < dn_db->parms.priority) in dn_am_i_a_router()929 if (dn->priority != dn_db->parms.priority) in dn_am_i_a_router()932 if (le16_to_cpu(dn->addr) < le16_to_cpu(ifa->ifa_local)) in dn_am_i_a_router()942 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_router_hello() local1000 if (dn_am_i_a_router(dn, dn_db, ifa)) { in dn_send_router_hello()
229 struct dn_dev *dn = dst->neighbour ? in dn_dst_update_pmtu() local232 if (dn && dn->use_long == 0) in dn_dst_update_pmtu()579 struct dn_dev *dn = (struct dn_dev *)dev->dn_ptr; in dn_route_rcv() local585 if (dn == NULL) in dn_route_rcv()647 if (dn->parms.state != DN_DEV_S_RU) in dn_route_rcv()664 if (dn->parms.state != DN_DEV_S_RU) in dn_route_rcv()
2212 static void dn_printable_object(struct sockaddr_dn *dn, unsigned char *buf) in dn_printable_object() argument2216 switch (le16_to_cpu(dn->sdn_objnamel)) { in dn_printable_object()2218 sprintf(buf, "%d", dn->sdn_objnum); in dn_printable_object()2221 for (i = 0; i < le16_to_cpu(dn->sdn_objnamel); i++) { in dn_printable_object()2222 buf[i] = dn->sdn_objname[i]; in dn_printable_object()