taglinefilesource code
nr_neigh82include/net/netrom.hstruct nr_neigh *next;
nr_neigh61net/netrom/nr_route.cstatic struct nr_neigh *nr_neigh_list = NULL;
nr_neigh71net/netrom/nr_route.cstruct nr_neigh *nr_neigh;
nr_neigh80net/netrom/nr_route.cfor (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next)
nr_neigh81net/netrom/nr_route.cif (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
nr_neigh84net/netrom/nr_route.cif (quality == 0 && nr_neigh != NULL && nr_node != NULL)
nr_neigh87net/netrom/nr_route.cif (nr_neigh == NULL) {
nr_neigh88net/netrom/nr_route.cif ((nr_neigh = (struct nr_neigh *)kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL)
nr_neigh91net/netrom/nr_route.cmemcpy(&nr_neigh->callsign, ax25, sizeof(ax25_address));
nr_neigh93net/netrom/nr_route.cnr_neigh->digipeat= NULL;
nr_neigh94net/netrom/nr_route.cnr_neigh->dev     = dev;
nr_neigh95net/netrom/nr_route.cnr_neigh->quality = nr_default.quality;
nr_neigh96net/netrom/nr_route.cnr_neigh->locked  = 0;
nr_neigh97net/netrom/nr_route.cnr_neigh->count   = 0;
nr_neigh98net/netrom/nr_route.cnr_neigh->number  = nr_neigh_no++;
nr_neigh101net/netrom/nr_route.cif ((nr_neigh->digipeat = kmalloc(sizeof(*ax25_digi), GFP_KERNEL)) == NULL) {
nr_neigh102net/netrom/nr_route.ckfree_s(nr_neigh, sizeof(*nr_neigh));
nr_neigh105net/netrom/nr_route.cmemcpy(nr_neigh->digipeat, ax25_digi, sizeof(*ax25_digi));
nr_neigh111net/netrom/nr_route.cnr_neigh->next = nr_neigh_list;
nr_neigh112net/netrom/nr_route.cnr_neigh_list  = nr_neigh;
nr_neigh129net/netrom/nr_route.cnr_node->routes[0].neighbour = nr_neigh->number;
nr_neigh139net/netrom/nr_route.cnr_neigh->count++;
nr_neigh145net/netrom/nr_route.cif (nr_node->routes[i].neighbour == nr_neigh->number) {
nr_neigh161net/netrom/nr_route.cnr_node->routes[0].neighbour = nr_neigh->number;
nr_neigh164net/netrom/nr_route.cnr_neigh->count++;
nr_neigh170net/netrom/nr_route.cnr_node->routes[2].neighbour = nr_neigh->number;
nr_neigh172net/netrom/nr_route.cnr_neigh->count++;
nr_neigh216net/netrom/nr_route.cif (nr_node->routes[i].neighbour == nr_neigh->number) {
nr_neigh255net/netrom/nr_route.cstatic void nr_remove_neigh(struct nr_neigh *nr_neigh)
nr_neigh257net/netrom/nr_route.cstruct nr_neigh *s;
nr_neigh263net/netrom/nr_route.cif ((s = nr_neigh_list) == nr_neigh) {
nr_neigh264net/netrom/nr_route.cnr_neigh_list = nr_neigh->next;
nr_neigh266net/netrom/nr_route.cif (nr_neigh->digipeat != NULL)
nr_neigh267net/netrom/nr_route.ckfree_s(nr_neigh->digipeat, sizeof(ax25_digi));
nr_neigh268net/netrom/nr_route.ckfree_s(nr_neigh, sizeof(struct nr_neigh));
nr_neigh273net/netrom/nr_route.cif (s->next == nr_neigh) {
nr_neigh274net/netrom/nr_route.cs->next = nr_neigh->next;
nr_neigh276net/netrom/nr_route.cif (nr_neigh->digipeat != NULL)
nr_neigh277net/netrom/nr_route.ckfree_s(nr_neigh->digipeat, sizeof(ax25_digi));
nr_neigh278net/netrom/nr_route.ckfree_s(nr_neigh, sizeof(struct nr_neigh));
nr_neigh295net/netrom/nr_route.cstruct nr_neigh *nr_neigh;
nr_neigh304net/netrom/nr_route.cfor (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next)
nr_neigh305net/netrom/nr_route.cif (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
nr_neigh308net/netrom/nr_route.cif (nr_neigh == NULL) return -EINVAL;
nr_neigh311net/netrom/nr_route.cif (nr_node->routes[i].neighbour == nr_neigh->number) {
nr_neigh312net/netrom/nr_route.cnr_neigh->count--;
nr_neigh314net/netrom/nr_route.cif (nr_neigh->count == 0 && !nr_neigh->locked)
nr_neigh315net/netrom/nr_route.cnr_remove_neigh(nr_neigh);
nr_neigh344net/netrom/nr_route.cstruct nr_neigh *nr_neigh;
nr_neigh347net/netrom/nr_route.cfor (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) {
nr_neigh348net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) {
nr_neigh349net/netrom/nr_route.cnr_neigh->quality = quality;
nr_neigh350net/netrom/nr_route.cnr_neigh->locked  = 1;
nr_neigh355net/netrom/nr_route.cif ((nr_neigh = (struct nr_neigh *)kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL)
nr_neigh358net/netrom/nr_route.cmemcpy(&nr_neigh->callsign, callsign, sizeof(ax25_address));
nr_neigh360net/netrom/nr_route.cnr_neigh->digipeat= NULL;
nr_neigh361net/netrom/nr_route.cnr_neigh->dev     = dev;
nr_neigh362net/netrom/nr_route.cnr_neigh->quality = quality;
nr_neigh363net/netrom/nr_route.cnr_neigh->locked  = 1;
nr_neigh364net/netrom/nr_route.cnr_neigh->count   = 0;
nr_neigh365net/netrom/nr_route.cnr_neigh->number  = nr_neigh_no++;
nr_neigh370net/netrom/nr_route.cnr_neigh->next = nr_neigh_list;
nr_neigh371net/netrom/nr_route.cnr_neigh_list  = nr_neigh;
nr_neigh384net/netrom/nr_route.cstruct nr_neigh *nr_neigh;
nr_neigh386net/netrom/nr_route.cfor (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next)
nr_neigh387net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
nr_neigh390net/netrom/nr_route.cif (nr_neigh == NULL) return -EINVAL;
nr_neigh392net/netrom/nr_route.cnr_neigh->quality = quality;
nr_neigh393net/netrom/nr_route.cnr_neigh->locked  = 0;
nr_neigh395net/netrom/nr_route.cif (nr_neigh->count == 0)
nr_neigh396net/netrom/nr_route.cnr_remove_neigh(nr_neigh);
nr_neigh408net/netrom/nr_route.cstruct nr_neigh *t, *nr_neigh;
nr_neigh425net/netrom/nr_route.cnr_neigh = nr_neigh_list;
nr_neigh427net/netrom/nr_route.cwhile (nr_neigh != NULL) {
nr_neigh428net/netrom/nr_route.ct        = nr_neigh;
nr_neigh429net/netrom/nr_route.cnr_neigh = nr_neigh->next;
nr_neigh472net/netrom/nr_route.cstruct nr_neigh *s, *nr_neigh = nr_neigh_list;
nr_neigh476net/netrom/nr_route.cwhile (nr_neigh != NULL) {
nr_neigh477net/netrom/nr_route.cs        = nr_neigh;
nr_neigh478net/netrom/nr_route.cnr_neigh = nr_neigh->next;
nr_neigh632net/netrom/nr_route.cstruct nr_neigh *nr_neigh;
nr_neigh635net/netrom/nr_route.cfor (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next)
nr_neigh636net/netrom/nr_route.cif (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev)
nr_neigh639net/netrom/nr_route.cif (nr_neigh == NULL) return;
nr_neigh642net/netrom/nr_route.cif (nr_node->which >= nr_node->count && nr_node->routes[nr_node->which].neighbour == nr_neigh->number)
nr_neigh654net/netrom/nr_route.cstruct nr_neigh *nr_neigh;
nr_neigh689net/netrom/nr_route.cfor (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next)
nr_neigh690net/netrom/nr_route.cif (nr_neigh->number == nr_node->routes[nr_node->which].neighbour)
nr_neigh693net/netrom/nr_route.cif (nr_neigh == NULL)
nr_neigh707net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
nr_neigh765net/netrom/nr_route.cstruct nr_neigh *nr_neigh;
nr_neigh774net/netrom/nr_route.cfor (nr_neigh = nr_neigh_list; nr_neigh != NULL; nr_neigh = nr_neigh->next) {
nr_neigh776net/netrom/nr_route.cnr_neigh->number,
nr_neigh777net/netrom/nr_route.cax2asc(&nr_neigh->callsign),
nr_neigh778net/netrom/nr_route.cnr_neigh->dev ? nr_neigh->dev->name : "???",
nr_neigh779net/netrom/nr_route.cnr_neigh->quality,
nr_neigh780net/netrom/nr_route.cnr_neigh->locked,
nr_neigh781net/netrom/nr_route.cnr_neigh->count);