~ubuntu-branches/ubuntu/oneiric/bluez/oneiric-201105191013

« back to all changes in this revision

Viewing changes to network/server.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-03-24 10:27:09 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20110324102709-2hfis29dcozwxxo0
Tags: 4.90-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
                return FALSE;
395
395
        }
396
396
 
 
397
        /* Highest known Control command ID
 
398
         * is BNEP_FILTER_MULT_ADDR_RSP = 0x06 */
 
399
        if (req->type == BNEP_CONTROL &&
 
400
                                req->ctrl > BNEP_FILTER_MULT_ADDR_RSP) {
 
401
                uint8_t pkt[3];
 
402
 
 
403
                pkt[0] = BNEP_CONTROL;
 
404
                pkt[1] = BNEP_CMD_NOT_UNDERSTOOD;
 
405
                pkt[2] = req->ctrl;
 
406
 
 
407
                send(sk, pkt, sizeof(pkt), 0);
 
408
 
 
409
                return FALSE;
 
410
        }
 
411
 
397
412
        if (req->type != BNEP_CONTROL || req->ctrl != BNEP_SETUP_CONN_REQ)
398
413
                return FALSE;
399
414