Lines Matching refs:clients
139 if( clients[i].addr.s_addr == addr.s_addr )
142 if( (time(NULL) - clients[i].age) > 3600 )
146 memcmp(mac, clients[i].mac, 6) == 0 )
150 clients[i].age = time(NULL);
154 memset(&clients[i], 0, sizeof(struct client_cache_s));
160 clients[i].type, i);
559 * This is done because a lot of clients like to send a
569 if( clients[n].addr.s_addr )
571 get_remote_mac(h->clientaddr, clients[n].mac);
572 clients[n].addr = h->clientaddr;
574 h->req_client, inet_ntoa(clients[n].addr),
575 clients[n].mac[0], clients[n].mac[1], clients[n].mac[2],
576 clients[n].mac[3], clients[n].mac[4], clients[n].mac[5], n);
580 else if( (clients[n].type < EStandardDLNA150 && h->req_client == EStandardDLNA150) ||
581 (clients[n].type == ESamsungSeriesB && h->req_client == ESamsungSeriesA) )
585 h->reqflags |= clients[n].flags;
586 h->req_client = clients[n].type;
589 clients[n].type = h->req_client;
590 clients[n].flags = h->reqflags & 0xFFF00000;
591 clients[n].age = time(NULL);
595 h->reqflags |= clients[n].flags;
596 h->req_client = clients[n].type;