linux/net/can/bcm.c
<<
>>
Prefs
   1/*
   2 * bcm.c - Broadcast Manager to filter/send (cyclic) CAN content
   3 *
   4 * Copyright (c) 2002-2007 Volkswagen Group Electronic Research
   5 * All rights reserved.
   6 *
   7 * Redistribution and use in source and binary forms, with or without
   8 * modification, are permitted provided that the following conditions
   9 * are met:
  10 * 1. Redistributions of source code must retain the above copyright
  11 *    notice, this list of conditions and the following disclaimer.
  12 * 2. Redistributions in binary form must reproduce the above copyright
  13 *    notice, this list of conditions and the following disclaimer in the
  14 *    documentation and/or other materials provided with the distribution.
  15 * 3. Neither the name of Volkswagen nor the names of its contributors
  16 *    may be used to endorse or promote products derived from this software
  17 *    without specific prior written permission.
  18 *
  19 * Alternatively, provided that this notice is retained in full, this
  20 * software may be distributed under the terms of the GNU General
  21 * Public License ("GPL") version 2, in which case the provisions of the
  22 * GPL apply INSTEAD OF those given above.
  23 *
  24 * The provided data structures and external interfaces from this code
  25 * are not restricted to be used by modules with a GPL compatible license.
  26 *
  27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  28 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  29 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  30 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  31 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  32 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  33 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  34 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  35 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  36 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  37 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  38 * DAMAGE.
  39 *
  40 */
  41
  42#include <linux/module.h>
  43#include <linux/init.h>
  44#include <linux/interrupt.h>
  45#include <linux/hrtimer.h>
  46#include <linux/list.h>
  47#include <linux/proc_fs.h>
  48#include <linux/seq_file.h>
  49#include <linux/uio.h>
  50#include <linux/net.h>
  51#include <linux/netdevice.h>
  52#include <linux/socket.h>
  53#include <linux/if_arp.h>
  54#include <linux/skbuff.h>
  55#include <linux/can.h>
  56#include <linux/can/core.h>
  57#include <linux/can/bcm.h>
  58#include <linux/slab.h>
  59#include <net/sock.h>
  60#include <net/net_namespace.h>
  61
  62/*
  63 * To send multiple CAN frame content within TX_SETUP or to filter
  64 * CAN messages with multiplex index within RX_SETUP, the number of
  65 * different filters is limited to 256 due to the one byte index value.
  66 */
  67#define MAX_NFRAMES 256
  68
  69/* use of last_frames[index].can_dlc */
  70#define RX_RECV    0x40 /* received data for this element */
  71#define RX_THR     0x80 /* element not been sent due to throttle feature */
  72#define BCM_CAN_DLC_MASK 0x0F /* clean private flags in can_dlc by masking */
  73
  74/* get best masking value for can_rx_register() for a given single can_id */
  75#define REGMASK(id) ((id & CAN_EFF_FLAG) ? \
  76                     (CAN_EFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG) : \
  77                     (CAN_SFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG))
  78
  79#define CAN_BCM_VERSION CAN_VERSION
  80static __initdata const char banner[] = KERN_INFO
  81        "can: broadcast manager protocol (rev " CAN_BCM_VERSION " t)\n";
  82
  83MODULE_DESCRIPTION("PF_CAN broadcast manager protocol");
  84MODULE_LICENSE("Dual BSD/GPL");
  85MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>");
  86MODULE_ALIAS("can-proto-2");
  87
  88/* easy access to can_frame payload */
  89static inline u64 GET_U64(const struct can_frame *cp)
  90{
  91        return *(u64 *)cp->data;
  92}
  93
  94struct bcm_op {
  95        struct list_head list;
  96        int ifindex;
  97        canid_t can_id;
  98        u32 flags;
  99        unsigned long frames_abs, frames_filtered;
 100        struct timeval ival1, ival2;
 101        struct hrtimer timer, thrtimer;
 102        struct tasklet_struct tsklet, thrtsklet;
 103        ktime_t rx_stamp, kt_ival1, kt_ival2, kt_lastmsg;
 104        int rx_ifindex;
 105        u32 count;
 106        u32 nframes;
 107        u32 currframe;
 108        struct can_frame *frames;
 109        struct can_frame *last_frames;
 110        struct can_frame sframe;
 111        struct can_frame last_sframe;
 112        struct sock *sk;
 113        struct net_device *rx_reg_dev;
 114};
 115
 116static struct proc_dir_entry *proc_dir;
 117
 118struct bcm_sock {
 119        struct sock sk;
 120        int bound;
 121        int ifindex;
 122        struct notifier_block notifier;
 123        struct list_head rx_ops;
 124        struct list_head tx_ops;
 125        unsigned long dropped_usr_msgs;
 126        struct proc_dir_entry *bcm_proc_read;
 127        char procname [32]; /* inode number in decimal with \0 */
 128};
 129
 130static inline struct bcm_sock *bcm_sk(const struct sock *sk)
 131{
 132        return (struct bcm_sock *)sk;
 133}
 134
 135#define CFSIZ sizeof(struct can_frame)
 136#define OPSIZ sizeof(struct bcm_op)
 137#define MHSIZ sizeof(struct bcm_msg_head)
 138
 139/*
 140 * procfs functions
 141 */
 142static char *bcm_proc_getifname(char *result, int ifindex)
 143{
 144        struct net_device *dev;
 145
 146        if (!ifindex)
 147                return "any";
 148
 149        rcu_read_lock();
 150        dev = dev_get_by_index_rcu(&init_net, ifindex);
 151        if (dev)
 152                strcpy(result, dev->name);
 153        else
 154                strcpy(result, "???");
 155        rcu_read_unlock();
 156
 157        return result;
 158}
 159
 160static int bcm_proc_show(struct seq_file *m, void *v)
 161{
 162        char ifname[IFNAMSIZ];
 163        struct sock *sk = (struct sock *)m->private;
 164        struct bcm_sock *bo = bcm_sk(sk);
 165        struct bcm_op *op;
 166
 167        seq_printf(m, ">>> socket %pK", sk->sk_socket);
 168        seq_printf(m, " / sk %pK", sk);
 169        seq_printf(m, " / bo %pK", bo);
 170        seq_printf(m, " / dropped %lu", bo->dropped_usr_msgs);
 171        seq_printf(m, " / bound %s", bcm_proc_getifname(ifname, bo->ifindex));
 172        seq_printf(m, " <<<\n");
 173
 174        list_for_each_entry(op, &bo->rx_ops, list) {
 175
 176                unsigned long reduction;
 177
 178                /* print only active entries & prevent division by zero */
 179                if (!op->frames_abs)
 180                        continue;
 181
 182                seq_printf(m, "rx_op: %03X %-5s ",
 183                                op->can_id, bcm_proc_getifname(ifname, op->ifindex));
 184                seq_printf(m, "[%u]%c ", op->nframes,
 185                                (op->flags & RX_CHECK_DLC)?'d':' ');
 186                if (op->kt_ival1.tv64)
 187                        seq_printf(m, "timeo=%lld ",
 188                                        (long long)
 189                                        ktime_to_us(op->kt_ival1));
 190
 191                if (op->kt_ival2.tv64)
 192                        seq_printf(m, "thr=%lld ",
 193                                        (long long)
 194                                        ktime_to_us(op->kt_ival2));
 195
 196                seq_printf(m, "# recv %ld (%ld) => reduction: ",
 197                                op->frames_filtered, op->frames_abs);
 198
 199                reduction = 100 - (op->frames_filtered * 100) / op->frames_abs;
 200
 201                seq_printf(m, "%s%ld%%\n",
 202                                (reduction == 100)?"near ":"", reduction);
 203        }
 204
 205        list_for_each_entry(op, &bo->tx_ops, list) {
 206
 207                seq_printf(m, "tx_op: %03X %s [%u] ",
 208                                op->can_id,
 209                                bcm_proc_getifname(ifname, op->ifindex),
 210                                op->nframes);
 211
 212                if (op->kt_ival1.tv64)
 213                        seq_printf(m, "t1=%lld ",
 214                                        (long long) ktime_to_us(op->kt_ival1));
 215
 216                if (op->kt_ival2.tv64)
 217                        seq_printf(m, "t2=%lld ",
 218                                        (long long) ktime_to_us(op->kt_ival2));
 219
 220                seq_printf(m, "# sent %ld\n", op->frames_abs);
 221        }
 222        seq_putc(m, '\n');
 223        return 0;
 224}
 225
 226static int bcm_proc_open(struct inode *inode, struct file *file)
 227{
 228        return single_open(file, bcm_proc_show, PDE(inode)->data);
 229}
 230
 231static const struct file_operations bcm_proc_fops = {
 232        .owner          = THIS_MODULE,
 233        .open           = bcm_proc_open,
 234        .read           = seq_read,
 235        .llseek         = seq_lseek,
 236        .release        = single_release,
 237};
 238
 239/*
 240 * bcm_can_tx - send the (next) CAN frame to the appropriate CAN interface
 241 *              of the given bcm tx op
 242 */
 243static void bcm_can_tx(struct bcm_op *op)
 244{
 245        struct sk_buff *skb;
 246        struct net_device *dev;
 247        struct can_frame *cf = &op->frames[op->currframe];
 248
 249        /* no target device? => exit */
 250        if (!op->ifindex)
 251                return;
 252
 253        dev = dev_get_by_index(&init_net, op->ifindex);
 254        if (!dev) {
 255                /* RFC: should this bcm_op remove itself here? */
 256                return;
 257        }
 258
 259        skb = alloc_skb(CFSIZ, gfp_any());
 260        if (!skb)
 261                goto out;
 262
 263        memcpy(skb_put(skb, CFSIZ), cf, CFSIZ);
 264
 265        /* send with loopback */
 266        skb->dev = dev;
 267        skb->sk = op->sk;
 268        can_send(skb, 1);
 269
 270        /* update statistics */
 271        op->currframe++;
 272        op->frames_abs++;
 273
 274        /* reached last frame? */
 275        if (op->currframe >= op->nframes)
 276                op->currframe = 0;
 277 out:
 278        dev_put(dev);
 279}
 280
 281/*
 282 * bcm_send_to_user - send a BCM message to the userspace
 283 *                    (consisting of bcm_msg_head + x CAN frames)
 284 */
 285static void bcm_send_to_user(struct bcm_op *op, struct bcm_msg_head *head,
 286                             struct can_frame *frames, int has_timestamp)
 287{
 288        struct sk_buff *skb;
 289        struct can_frame *firstframe;
 290        struct sockaddr_can *addr;
 291        struct sock *sk = op->sk;
 292        unsigned int datalen = head->nframes * CFSIZ;
 293        int err;
 294
 295        skb = alloc_skb(sizeof(*head) + datalen, gfp_any());
 296        if (!skb)
 297                return;
 298
 299        memcpy(skb_put(skb, sizeof(*head)), head, sizeof(*head));
 300
 301        if (head->nframes) {
 302                /* can_frames starting here */
 303                firstframe = (struct can_frame *)skb_tail_pointer(skb);
 304
 305                memcpy(skb_put(skb, datalen), frames, datalen);
 306
 307                /*
 308                 * the BCM uses the can_dlc-element of the can_frame
 309                 * structure for internal purposes. This is only
 310                 * relevant for updates that are generated by the
 311                 * BCM, where nframes is 1
 312                 */
 313                if (head->nframes == 1)
 314                        firstframe->can_dlc &= BCM_CAN_DLC_MASK;
 315        }
 316
 317        if (has_timestamp) {
 318                /* restore rx timestamp */
 319                skb->tstamp = op->rx_stamp;
 320        }
 321
 322        /*
 323         *  Put the datagram to the queue so that bcm_recvmsg() can
 324         *  get it from there.  We need to pass the interface index to
 325         *  bcm_recvmsg().  We pass a whole struct sockaddr_can in skb->cb
 326         *  containing the interface index.
 327         */
 328
 329        BUILD_BUG_ON(sizeof(skb->cb) < sizeof(struct sockaddr_can));
 330        addr = (struct sockaddr_can *)skb->cb;
 331        memset(addr, 0, sizeof(*addr));
 332        addr->can_family  = AF_CAN;
 333        addr->can_ifindex = op->rx_ifindex;
 334
 335        err = sock_queue_rcv_skb(sk, skb);
 336        if (err < 0) {
 337                struct bcm_sock *bo = bcm_sk(sk);
 338
 339                kfree_skb(skb);
 340                /* don't care about overflows in this statistic */
 341                bo->dropped_usr_msgs++;
 342        }
 343}
 344
 345static void bcm_tx_start_timer(struct bcm_op *op)
 346{
 347        if (op->kt_ival1.tv64 && op->count)
 348                hrtimer_start(&op->timer,
 349                              ktime_add(ktime_get(), op->kt_ival1),
 350                              HRTIMER_MODE_ABS);
 351        else if (op->kt_ival2.tv64)
 352                hrtimer_start(&op->timer,
 353                              ktime_add(ktime_get(), op->kt_ival2),
 354                              HRTIMER_MODE_ABS);
 355}
 356
 357static void bcm_tx_timeout_tsklet(unsigned long data)
 358{
 359        struct bcm_op *op = (struct bcm_op *)data;
 360        struct bcm_msg_head msg_head;
 361
 362        if (op->kt_ival1.tv64 && (op->count > 0)) {
 363
 364                op->count--;
 365                if (!op->count && (op->flags & TX_COUNTEVT)) {
 366
 367                        /* create notification to user */
 368                        msg_head.opcode  = TX_EXPIRED;
 369                        msg_head.flags   = op->flags;
 370                        msg_head.count   = op->count;
 371                        msg_head.ival1   = op->ival1;
 372                        msg_head.ival2   = op->ival2;
 373                        msg_head.can_id  = op->can_id;
 374                        msg_head.nframes = 0;
 375
 376                        bcm_send_to_user(op, &msg_head, NULL, 0);
 377                }
 378                bcm_can_tx(op);
 379
 380        } else if (op->kt_ival2.tv64)
 381                bcm_can_tx(op);
 382
 383        bcm_tx_start_timer(op);
 384}
 385
 386/*
 387 * bcm_tx_timeout_handler - performs cyclic CAN frame transmissions
 388 */
 389static enum hrtimer_restart bcm_tx_timeout_handler(struct hrtimer *hrtimer)
 390{
 391        struct bcm_op *op = container_of(hrtimer, struct bcm_op, timer);
 392
 393        tasklet_schedule(&op->tsklet);
 394
 395        return HRTIMER_NORESTART;
 396}
 397
 398/*
 399 * bcm_rx_changed - create a RX_CHANGED notification due to changed content
 400 */
 401static void bcm_rx_changed(struct bcm_op *op, struct can_frame *data)
 402{
 403        struct bcm_msg_head head;
 404
 405        /* update statistics */
 406        op->frames_filtered++;
 407
 408        /* prevent statistics overflow */
 409        if (op->frames_filtered > ULONG_MAX/100)
 410                op->frames_filtered = op->frames_abs = 0;
 411
 412        /* this element is not throttled anymore */
 413        data->can_dlc &= (BCM_CAN_DLC_MASK|RX_RECV);
 414
 415        head.opcode  = RX_CHANGED;
 416        head.flags   = op->flags;
 417        head.count   = op->count;
 418        head.ival1   = op->ival1;
 419        head.ival2   = op->ival2;
 420        head.can_id  = op->can_id;
 421        head.nframes = 1;
 422
 423        bcm_send_to_user(op, &head, data, 1);
 424}
 425
 426/*
 427 * bcm_rx_update_and_send - process a detected relevant receive content change
 428 *                          1. update the last received data
 429 *                          2. send a notification to the user (if possible)
 430 */
 431static void bcm_rx_update_and_send(struct bcm_op *op,
 432                                   struct can_frame *lastdata,
 433                                   const struct can_frame *rxdata)
 434{
 435        memcpy(lastdata, rxdata, CFSIZ);
 436
 437        /* mark as used and throttled by default */
 438        lastdata->can_dlc |= (RX_RECV|RX_THR);
 439
 440        /* throtteling mode inactive ? */
 441        if (!op->kt_ival2.tv64) {
 442                /* send RX_CHANGED to the user immediately */
 443                bcm_rx_changed(op, lastdata);
 444                return;
 445        }
 446
 447        /* with active throttling timer we are just done here */
 448        if (hrtimer_active(&op->thrtimer))
 449                return;
 450
 451        /* first receiption with enabled throttling mode */
 452        if (!op->kt_lastmsg.tv64)
 453                goto rx_changed_settime;
 454
 455        /* got a second frame inside a potential throttle period? */
 456        if (ktime_us_delta(ktime_get(), op->kt_lastmsg) <
 457            ktime_to_us(op->kt_ival2)) {
 458                /* do not send the saved data - only start throttle timer */
 459                hrtimer_start(&op->thrtimer,
 460                              ktime_add(op->kt_lastmsg, op->kt_ival2),
 461                              HRTIMER_MODE_ABS);
 462                return;
 463        }
 464
 465        /* the gap was that big, that throttling was not needed here */
 466rx_changed_settime:
 467        bcm_rx_changed(op, lastdata);
 468        op->kt_lastmsg = ktime_get();
 469}
 470
 471/*
 472 * bcm_rx_cmp_to_index - (bit)compares the currently received data to formerly
 473 *                       received data stored in op->last_frames[]
 474 */
 475static void bcm_rx_cmp_to_index(struct bcm_op *op, unsigned int index,
 476                                const struct can_frame *rxdata)
 477{
 478        /*
 479         * no one uses the MSBs of can_dlc for comparation,
 480         * so we use it here to detect the first time of reception
 481         */
 482
 483        if (!(op->last_frames[index].can_dlc & RX_RECV)) {
 484                /* received data for the first time => send update to user */
 485                bcm_rx_update_and_send(op, &op->last_frames[index], rxdata);
 486                return;
 487        }
 488
 489        /* do a real check in can_frame data section */
 490
 491        if ((GET_U64(&op->frames[index]) & GET_U64(rxdata)) !=
 492            (GET_U64(&op->frames[index]) & GET_U64(&op->last_frames[index]))) {
 493                bcm_rx_update_and_send(op, &op->last_frames[index], rxdata);
 494                return;
 495        }
 496
 497        if (op->flags & RX_CHECK_DLC) {
 498                /* do a real check in can_frame dlc */
 499                if (rxdata->can_dlc != (op->last_frames[index].can_dlc &
 500                                        BCM_CAN_DLC_MASK)) {
 501                        bcm_rx_update_and_send(op, &op->last_frames[index],
 502                                               rxdata);
 503                        return;
 504                }
 505        }
 506}
 507
 508/*
 509 * bcm_rx_starttimer - enable timeout monitoring for CAN frame receiption
 510 */
 511static void bcm_rx_starttimer(struct bcm_op *op)
 512{
 513        if (op->flags & RX_NO_AUTOTIMER)
 514                return;
 515
 516        if (op->kt_ival1.tv64)
 517                hrtimer_start(&op->timer, op->kt_ival1, HRTIMER_MODE_REL);
 518}
 519
 520static void bcm_rx_timeout_tsklet(unsigned long data)
 521{
 522        struct bcm_op *op = (struct bcm_op *)data;
 523        struct bcm_msg_head msg_head;
 524
 525        /* create notification to user */
 526        msg_head.opcode  = RX_TIMEOUT;
 527        msg_head.flags   = op->flags;
 528        msg_head.count   = op->count;
 529        msg_head.ival1   = op->ival1;
 530        msg_head.ival2   = op->ival2;
 531        msg_head.can_id  = op->can_id;
 532        msg_head.nframes = 0;
 533
 534        bcm_send_to_user(op, &msg_head, NULL, 0);
 535}
 536
 537/*
 538 * bcm_rx_timeout_handler - when the (cyclic) CAN frame receiption timed out
 539 */
 540static enum hrtimer_restart bcm_rx_timeout_handler(struct hrtimer *hrtimer)
 541{
 542        struct bcm_op *op = container_of(hrtimer, struct bcm_op, timer);
 543
 544        /* schedule before NET_RX_SOFTIRQ */
 545        tasklet_hi_schedule(&op->tsklet);
 546
 547        /* no restart of the timer is done here! */
 548
 549        /* if user wants to be informed, when cyclic CAN-Messages come back */
 550        if ((op->flags & RX_ANNOUNCE_RESUME) && op->last_frames) {
 551                /* clear received can_frames to indicate 'nothing received' */
 552                memset(op->last_frames, 0, op->nframes * CFSIZ);
 553        }
 554
 555        return HRTIMER_NORESTART;
 556}
 557
 558/*
 559 * bcm_rx_do_flush - helper for bcm_rx_thr_flush
 560 */
 561static inline int bcm_rx_do_flush(struct bcm_op *op, int update,
 562                                  unsigned int index)
 563{
 564        if ((op->last_frames) && (op->last_frames[index].can_dlc & RX_THR)) {
 565                if (update)
 566                        bcm_rx_changed(op, &op->last_frames[index]);
 567                return 1;
 568        }
 569        return 0;
 570}
 571
 572/*
 573 * bcm_rx_thr_flush - Check for throttled data and send it to the userspace
 574 *
 575 * update == 0 : just check if throttled data is available  (any irq context)
 576 * update == 1 : check and send throttled data to userspace (soft_irq context)
 577 */
 578static int bcm_rx_thr_flush(struct bcm_op *op, int update)
 579{
 580        int updated = 0;
 581
 582        if (op->nframes > 1) {
 583                unsigned int i;
 584
 585                /* for MUX filter we start at index 1 */
 586                for (i = 1; i < op->nframes; i++)
 587                        updated += bcm_rx_do_flush(op, update, i);
 588
 589        } else {
 590                /* for RX_FILTER_ID and simple filter */
 591                updated += bcm_rx_do_flush(op, update, 0);
 592        }
 593
 594        return updated;
 595}
 596
 597static void bcm_rx_thr_tsklet(unsigned long data)
 598{
 599        struct bcm_op *op = (struct bcm_op *)data;
 600
 601        /* push the changed data to the userspace */
 602        bcm_rx_thr_flush(op, 1);
 603}
 604
 605/*
 606 * bcm_rx_thr_handler - the time for blocked content updates is over now:
 607 *                      Check for throttled data and send it to the userspace
 608 */
 609static enum hrtimer_restart bcm_rx_thr_handler(struct hrtimer *hrtimer)
 610{
 611        struct bcm_op *op = container_of(hrtimer, struct bcm_op, thrtimer);
 612
 613        tasklet_schedule(&op->thrtsklet);
 614
 615        if (bcm_rx_thr_flush(op, 0)) {
 616                hrtimer_forward(hrtimer, ktime_get(), op->kt_ival2);
 617                return HRTIMER_RESTART;
 618        } else {
 619                /* rearm throttle handling */
 620                op->kt_lastmsg = ktime_set(0, 0);
 621                return HRTIMER_NORESTART;
 622        }
 623}
 624
 625/*
 626 * bcm_rx_handler - handle a CAN frame receiption
 627 */
 628static void bcm_rx_handler(struct sk_buff *skb, void *data)
 629{
 630        struct bcm_op *op = (struct bcm_op *)data;
 631        const struct can_frame *rxframe = (struct can_frame *)skb->data;
 632        unsigned int i;
 633
 634        /* disable timeout */
 635        hrtimer_cancel(&op->timer);
 636
 637        if (op->can_id != rxframe->can_id)
 638                return;
 639
 640        /* save rx timestamp */
 641        op->rx_stamp = skb->tstamp;
 642        /* save originator for recvfrom() */
 643        op->rx_ifindex = skb->dev->ifindex;
 644        /* update statistics */
 645        op->frames_abs++;
 646
 647        if (op->flags & RX_RTR_FRAME) {
 648                /* send reply for RTR-request (placed in op->frames[0]) */
 649                bcm_can_tx(op);
 650                return;
 651        }
 652
 653        if (op->flags & RX_FILTER_ID) {
 654                /* the easiest case */
 655                bcm_rx_update_and_send(op, &op->last_frames[0], rxframe);
 656                goto rx_starttimer;
 657        }
 658
 659        if (op->nframes == 1) {
 660                /* simple compare with index 0 */
 661                bcm_rx_cmp_to_index(op, 0, rxframe);
 662                goto rx_starttimer;
 663        }
 664
 665        if (op->nframes > 1) {
 666                /*
 667                 * multiplex compare
 668                 *
 669                 * find the first multiplex mask that fits.
 670                 * Remark: The MUX-mask is stored in index 0
 671                 */
 672
 673                for (i = 1; i < op->nframes; i++) {
 674                        if ((GET_U64(&op->frames[0]) & GET_U64(rxframe)) ==
 675                            (GET_U64(&op->frames[0]) &
 676                             GET_U64(&op->frames[i]))) {
 677                                bcm_rx_cmp_to_index(op, i, rxframe);
 678                                break;
 679                        }
 680                }
 681        }
 682
 683rx_starttimer:
 684        bcm_rx_starttimer(op);
 685}
 686
 687/*
 688 * helpers for bcm_op handling: find & delete bcm [rx|tx] op elements
 689 */
 690static struct bcm_op *bcm_find_op(struct list_head *ops, canid_t can_id,
 691                                  int ifindex)
 692{
 693        struct bcm_op *op;
 694
 695        list_for_each_entry(op, ops, list) {
 696                if ((op->can_id == can_id) && (op->ifindex == ifindex))
 697                        return op;
 698        }
 699
 700        return NULL;
 701}
 702
 703static void bcm_remove_op(struct bcm_op *op)
 704{
 705        hrtimer_cancel(&op->timer);
 706        hrtimer_cancel(&op->thrtimer);
 707
 708        if (op->tsklet.func)
 709                tasklet_kill(&op->tsklet);
 710
 711        if (op->thrtsklet.func)
 712                tasklet_kill(&op->thrtsklet);
 713
 714        if ((op->frames) && (op->frames != &op->sframe))
 715                kfree(op->frames);
 716
 717        if ((op->last_frames) && (op->last_frames != &op->last_sframe))
 718                kfree(op->last_frames);
 719
 720        kfree(op);
 721}
 722
 723static void bcm_rx_unreg(struct net_device *dev, struct bcm_op *op)
 724{
 725        if (op->rx_reg_dev == dev) {
 726                can_rx_unregister(dev, op->can_id, REGMASK(op->can_id),
 727                                  bcm_rx_handler, op);
 728
 729                /* mark as removed subscription */
 730                op->rx_reg_dev = NULL;
 731        } else
 732                printk(KERN_ERR "can-bcm: bcm_rx_unreg: registered device "
 733                       "mismatch %p %p\n", op->rx_reg_dev, dev);
 734}
 735
 736/*
 737 * bcm_delete_rx_op - find and remove a rx op (returns number of removed ops)
 738 */
 739static int bcm_delete_rx_op(struct list_head *ops, canid_t can_id, int ifindex)
 740{
 741        struct bcm_op *op, *n;
 742
 743        list_for_each_entry_safe(op, n, ops, list) {
 744                if ((op->can_id == can_id) && (op->ifindex == ifindex)) {
 745
 746                        /*
 747                         * Don't care if we're bound or not (due to netdev
 748                         * problems) can_rx_unregister() is always a save
 749                         * thing to do here.
 750                         */
 751                        if (op->ifindex) {
 752                                /*
 753                                 * Only remove subscriptions that had not
 754                                 * been removed due to NETDEV_UNREGISTER
 755                                 * in bcm_notifier()
 756                                 */
 757                                if (op->rx_reg_dev) {
 758                                        struct net_device *dev;
 759
 760                                        dev = dev_get_by_index(&init_net,
 761                                                               op->ifindex);
 762                                        if (dev) {
 763                                                bcm_rx_unreg(dev, op);
 764                                                dev_put(dev);
 765                                        }
 766                                }
 767                        } else
 768                                can_rx_unregister(NULL, op->can_id,
 769                                                  REGMASK(op->can_id),
 770                                                  bcm_rx_handler, op);
 771
 772                        list_del(&op->list);
 773                        bcm_remove_op(op);
 774                        return 1; /* done */
 775                }
 776        }
 777
 778        return 0; /* not found */
 779}
 780
 781/*
 782 * bcm_delete_tx_op - find and remove a tx op (returns number of removed ops)
 783 */
 784static int bcm_delete_tx_op(struct list_head *ops, canid_t can_id, int ifindex)
 785{
 786        struct bcm_op *op, *n;
 787
 788        list_for_each_entry_safe(op, n, ops, list) {
 789                if ((op->can_id == can_id) && (op->ifindex == ifindex)) {
 790                        list_del(&op->list);
 791                        bcm_remove_op(op);
 792                        return 1; /* done */
 793                }
 794        }
 795
 796        return 0; /* not found */
 797}
 798
 799/*
 800 * bcm_read_op - read out a bcm_op and send it to the user (for bcm_sendmsg)
 801 */
 802static int bcm_read_op(struct list_head *ops, struct bcm_msg_head *msg_head,
 803                       int ifindex)
 804{
 805        struct bcm_op *op = bcm_find_op(ops, msg_head->can_id, ifindex);
 806
 807        if (!op)
 808                return -EINVAL;
 809
 810        /* put current values into msg_head */
 811        msg_head->flags   = op->flags;
 812        msg_head->count   = op->count;
 813        msg_head->ival1   = op->ival1;
 814        msg_head->ival2   = op->ival2;
 815        msg_head->nframes = op->nframes;
 816
 817        bcm_send_to_user(op, msg_head, op->frames, 0);
 818
 819        return MHSIZ;
 820}
 821
 822/*
 823 * bcm_tx_setup - create or update a bcm tx op (for bcm_sendmsg)
 824 */
 825static int bcm_tx_setup(struct bcm_msg_head *msg_head, struct msghdr *msg,
 826                        int ifindex, struct sock *sk)
 827{
 828        struct bcm_sock *bo = bcm_sk(sk);
 829        struct bcm_op *op;
 830        unsigned int i;
 831        int err;
 832
 833        /* we need a real device to send frames */
 834        if (!ifindex)
 835                return -ENODEV;
 836
 837        /* check nframes boundaries - we need at least one can_frame */
 838        if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES)
 839                return -EINVAL;
 840
 841        /* check the given can_id */
 842        op = bcm_find_op(&bo->tx_ops, msg_head->can_id, ifindex);
 843
 844        if (op) {
 845                /* update existing BCM operation */
 846
 847                /*
 848                 * Do we need more space for the can_frames than currently
 849                 * allocated? -> This is a _really_ unusual use-case and
 850                 * therefore (complexity / locking) it is not supported.
 851                 */
 852                if (msg_head->nframes > op->nframes)
 853                        return -E2BIG;
 854
 855                /* update can_frames content */
 856                for (i = 0; i < msg_head->nframes; i++) {
 857                        err = memcpy_fromiovec((u8 *)&op->frames[i],
 858                                               msg->msg_iov, CFSIZ);
 859
 860                        if (op->frames[i].can_dlc > 8)
 861                                err = -EINVAL;
 862
 863                        if (err < 0)
 864                                return err;
 865
 866                        if (msg_head->flags & TX_CP_CAN_ID) {
 867                                /* copy can_id into frame */
 868                                op->frames[i].can_id = msg_head->can_id;
 869                        }
 870                }
 871
 872        } else {
 873                /* insert new BCM operation for the given can_id */
 874
 875                op = kzalloc(OPSIZ, GFP_KERNEL);
 876                if (!op)
 877                        return -ENOMEM;
 878
 879                op->can_id    = msg_head->can_id;
 880
 881                /* create array for can_frames and copy the data */
 882                if (msg_head->nframes > 1) {
 883                        op->frames = kmalloc(msg_head->nframes * CFSIZ,
 884                                             GFP_KERNEL);
 885                        if (!op->frames) {
 886                                kfree(op);
 887                                return -ENOMEM;
 888                        }
 889                } else
 890                        op->frames = &op->sframe;
 891
 892                for (i = 0; i < msg_head->nframes; i++) {
 893                        err = memcpy_fromiovec((u8 *)&op->frames[i],
 894                                               msg->msg_iov, CFSIZ);
 895
 896                        if (op->frames[i].can_dlc > 8)
 897                                err = -EINVAL;
 898
 899                        if (err < 0) {
 900                                if (op->frames != &op->sframe)
 901                                        kfree(op->frames);
 902                                kfree(op);
 903                                return err;
 904                        }
 905
 906                        if (msg_head->flags & TX_CP_CAN_ID) {
 907                                /* copy can_id into frame */
 908                                op->frames[i].can_id = msg_head->can_id;
 909                        }
 910                }
 911
 912                /* tx_ops never compare with previous received messages */
 913                op->last_frames = NULL;
 914
 915                /* bcm_can_tx / bcm_tx_timeout_handler needs this */
 916                op->sk = sk;
 917                op->ifindex = ifindex;
 918
 919                /* initialize uninitialized (kzalloc) structure */
 920                hrtimer_init(&op->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
 921                op->timer.function = bcm_tx_timeout_handler;
 922
 923                /* initialize tasklet for tx countevent notification */
 924                tasklet_init(&op->tsklet, bcm_tx_timeout_tsklet,
 925                             (unsigned long) op);
 926
 927                /* currently unused in tx_ops */
 928                hrtimer_init(&op->thrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
 929
 930                /* add this bcm_op to the list of the tx_ops */
 931                list_add(&op->list, &bo->tx_ops);
 932
 933        } /* if ((op = bcm_find_op(&bo->tx_ops, msg_head->can_id, ifindex))) */
 934
 935        if (op->nframes != msg_head->nframes) {
 936                op->nframes   = msg_head->nframes;
 937                /* start multiple frame transmission with index 0 */
 938                op->currframe = 0;
 939        }
 940
 941        /* check flags */
 942
 943        op->flags = msg_head->flags;
 944
 945        if (op->flags & TX_RESET_MULTI_IDX) {
 946                /* start multiple frame transmission with index 0 */
 947                op->currframe = 0;
 948        }
 949
 950        if (op->flags & SETTIMER) {
 951                /* set timer values */
 952                op->count = msg_head->count;
 953                op->ival1 = msg_head->ival1;
 954                op->ival2 = msg_head->ival2;
 955                op->kt_ival1 = timeval_to_ktime(sg_head" class="sref">msg_head->ival1;

 859                fo href="+code=op" class="sref">op->iv_ival1" a> = timeval_to_ktime(sg_head" class="sref">msg_head->iv class="sref">ival2;

 8595/a>
 859                  pan class="comment">/* donisabland< activeimer vaduto sezeroalues *?/
 8595/a>                if ((op->kt_ival1 =a href="+code=futv" class="lief">timv   mp;& (op->iv_ival1" a> =a href="+code=futv" class="lief">timv   869                        if href="+code=hrtimer_inn/bc" class="sref">litimer_inn/bc" a>(&op->timer, 
 869           869
 869           (op->flags & SETTARIMER" a>) {
 869                   href="+code=hrtimer_inn/bc" class="sref">litimer_inn/bc" a>(&op->timer, 
 8696/a>                /* bcspec:end frn_frames  whentart mg BCmer va
 869                   href="+code=op" class="sref">op->flags &a|TX_REANNOUNCEa>;
 869           8696/a>
 869           (op->flags & TX_REANNOUNCEa>;
{
 879                }
 href="+code=bcm_txn_tx /class="sref">bcm_txn_tx /a>(sg_head" class="s" class="sref">op);
 8797/a>                op->count;
 8797/a>                           href="+code=op" class="sref">op->count;
-- 879           879
 8797/a>        if (op->flags & SETTARIMER" a>) {a href="net/can/bcm.c#L879" id="L869" class="line" name="L879"> 879                if href="+code=bcm_tx_setrt m_mer" class="sref">tim_tx_setrt m_mer" a>(sg_head" class="s" class="sref">op);
 8797/a>
 8797/a>          turn msg_head->nframes * CFSIZ,
 +a href="+code=MHSIZ" class="sref">MHSIZ;
 879   889
 8898/a>  
 8898/a>/* bcm_reasetup - create or update a bcm txrop (for bcm_sendmsg)
 8898/a> * b/span>
 889  atic int bcm_txrsetup(struct bcm_msg_head *msg_head, struct msghdr *msg,
 889                        if  ifindex, struct sock *sk)
 889   889          ruct bcm_sock *bo = bcm_sk(sk);
 8898/a>        struct bcm_op *op;
 889            tidoxrseregist" a>;
 899          t err;
 0;
 899
 899           ((op href="+code=erg_head" class="sref">msg_head->flags & TXRX_FILTERD" a>;
{
|| (!a href="+code=msg_head" class="sref">msg_head->nframes *) */ 899                  pan class="comment">/* bcme robust against wrong uges  ... b/span>
 899                   href="+code=erg_head" class="sref">msg_head->flags &a|TXRX_FILTERD" a>;
 8999/a>                /* bcigne (ctrailg BCgarbes  b/span>
 899                   href="+code=erg_head" class="sref">msg_head->nframes * 0;
 8999/a>           899
 899          pan class="comment">/* tx_he first elent">ontenainsx_he mux-mask =t; 8)X_NFRAMES
10" a>        if (msg_head->nframes > MAX_NFRAMES)
 +a1 href="net/can/bcm.c#L8510"1id="L9010" class="line" name="L8910" c>10"/a>                EINVAL;
10"/a>
10"/a>           (msg_head->flags & TXRX_RTR_AMES;
{
mp;& (a href="net/can/bcm.c#L8610"4id="L9010" class="line" name="L8910" c>10"/a>              ap href="+code=erg_head" class="sref">msg_head->nframes != 10"/a>               (!a href="+code=msg_head" class="sref">msg_head->can_id = mp; E2N_IDRTR_ALA a> *) *10"/a>                  turn -EINVAL;
10"/a>
10"8a>          pan class="comment">/* txeck the given can_id */
10"/a>          phref="+code=op" class="sref">op;
 bcm_find_op(&bo->txrops, msg_head->can_id, ifindex);
10" a>        if (op-&*/10"/a>                /* sedate existing BCM operation */
10"/a>
10"/a>                  pan class="comment">/* bspan>
10"4a> *                 Do we need more space for the can_frames than currently
10"5a> *                 Dolocated? -> This is a _really_ unusual use-case and
10"6a> *                 Doerefore (complexity / locking) it is not supported.
10"7a> *                 D/span>
10"/a>                   (msg_head->nframes > op->nframes)
10"/a>                        }
turn -E2BIG;
10" a>
10"/a>                msg_head->nframes) {
10"/a>                           an class="comment">/* update can_frames content */
10"/a>                        err = memcpy_fromiovec((u8 *)&a href="+code=op" class="sref">op->frames[<10"/a>                                               msg->msg_iov, 10"/a>                             (u                msg_head->nframes * CFSIZ,

10"/a>                        if (err < 0)
10"/a>                                return -< href="+code=msr" class="sref">err &10"/a>
10"/a>                        }
pan class="comment">/* txelear lt_frames
10" a>                        bcmcps" a>(sg_head" class="s" class="sref">op);gt;last_frames =, 0msg_head->nframes * CFSIZ,

10"/a>                10"/a>
10"/a>                op->nframes * 0; href="+code=msg_head" class="sref">msg_head->nframes *10"/a>
10"/a>                /* bcOnlynd< date cagt; Thdoot sucly_an_frrseregist" (*/
10"/a>                   href="+code=erdoxrseregist" class="sref">tidoxrseregist" a>;
 0;
10"/a>
10"/a>        }
10"/a>                /* initrt new BCM operation for the given can_id */
10" a>                op-& kzalloc(OPSIZ, GFP_KERNEL);
10"/a>                op)
10"/a>                          turn -ENOMEM;
10"3a>
10"/a>                op->can_id =  = msg_head->can_id;
10"/a>                op->nframes   = msg_head->nframes;
10"/a>
10"/a>                   (msg_head->nframes > 1) {
10"/a>                          pan class="comment">/* create array for can_frames and copy the data */
10"/a>                        }
phref="+code=op" class="sref">op->frames[< kmalloc(msg_head->nframes * CFSIZ,
10" a>                             (u                 href="+code=GFP_KERNEL" class="sref">GFP_KERNEL);
10"/a>                           (!op->frames) {
10"/a>                                kfree(op);
10"/a>                                return ENOMEM;
10"/a>                        }
10"/a>
10"/a>                        ifpan class="comment">/* create arrndnitiarray for caceived men_frames an
10"/a>                          _head" class="s" class="sref">op);gt;last_frames = kzalloc(msg_head->nframes * CFSIZ,
10"/a>                                GFP_KERNEL);
10"/a>                        if (op->last_frames ={
10" a>                                kfree(op);gt;frames);
10"/a>                                   href="+code=kfree" class="sref">kfree(op);
10"/a>                                ENOMEM;
10"/a>                          10"/a>
10"/a>                10"/a>                        ifphref="+code=op" class="sref">op->frames[< op->sframe;
10"/a>                          _head" class="s" class="sref">op);gt;last_frames = op->sfst_frrame" a>;
10"/a>                  10"/a>
10" a>                msg_head->nframes) {
10"/a>                           href="+code=err" class="sref">err = memcpy_fromiovec((u8 *)&a href="+code=op" class="sref">op->frames[<msg->msg_iov, 10"/a>                                msg_head->nframes * CFSIZ,

10"/a>                           (err < 0) {
10"/a>                                   (op->frames != &op->sframe)
10"/a>                             (u            href="+code=kfree" class="sref">kfree(op);gt;frames);
10"/a>                        if         (op->last_frames =  &op->sfst_frrame" a>;
10"/a>                                re         href="+code=kfree" class="sref">kfree(op);gt;last_frames ={10"/a>                                kfree(op);
10"/a>                        ifffffffffturn -< href="+code=msr" class="sref">err &10" a>                          10"/a>                10"/a>
10"/a>                  pan class="comment">/* bcm_can_tx / bcm_tx_timeout_handler needs this */
10"/a>                op->sk = sk;
10"/a>                op->ifindex = ifindex;
10"/a>
10"/a>                /* stitialize uninitialized (kzalloc) structure */
10"/a>                hrtimer_init(&op->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
10"/a>                op->timer, a href="+code=function" class="sref">function = bcm_txrtimeout_handler" a>;
10" a>
10"/a>                /* seitialize tasklet for txrx meout_hotification */
10"/a>                tasklet_init(&op->tsklet, bcm_txrtimeout_tsklet" a>, 10"/a>                               nsigned long) op);
10"/a>
10"/a>                hrtimer_init(&op->thrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
10"/a>                   href="+code=op" class="sref">op->thrtimer, a href="+code=function" class="sref">function = bcm_txrtimhrandler" a>;
10"/a>
10"/a>                  pan class="comment">/* doitialize tasklet for txrx mhrottle ndlerg BC
10"/a>                tasklet_init(&op->tsktimlet" a>, bcm_txrtimhraklet" a>, 110 a>                               nsigned long) op);
110/a>
110/a>                /* add this bcm_op to the list of the txrops */
110/a>                  phref="+code=frst_add" class="sref">list_add(&op->list, &bo->txrops, 
110/a>
11"/a>                /* adcly_an_frrseregist" (*/
11"/a>                   href="+code=txdoxrseregist" class="sref">tidoxrseregist" a>;
 0;111"/a>
110/a>        }
/* if ((op = bcm_find_op(&bo->txrops, msg_head->can_id, ifindex))) */
110/a>
11" a>        ifpan class="comment">/* check flags */
11"/a>           href="+code=op" class="sref">op);gt;flags = msg_head->flags;
11"/a>
11"/a>           (op->flags & TXRX_RTR_AMES;
{
111/a>
111/a>                /* adnoCmer vsoit RTR-me=T/
111/a>                   href="+code=txtimer_inn/bc" class="sref">litimer_inn/bc" a>(&op->thrtimer, 
111/a>                litimer_inn/bc" a>(&op->timer, 
111/a>
11"/a>                  pan class="comment">/* bspan>
11" a>
 *                 Donctny feare */it RX(!)_SETUP onlynr txRTR-me=T:span>
112/a>                   Dopy thn_id */in thames  BUTith it_hoRTR-ags
112/a>/*                 Doprevt */aoncll-lo-&gloopback-te of... ;-]span>
112/a> *                 D/span>
11"/a>                   (op->flags & TX_RECP_N_ID" a>;
{
||a href="net/can/bcm.c#L8611"5id="L9011" class="line" name="L9211" c>11"/a>                      a href="+code=op" class="sref">op);gt;frames);[0]a href="+code=fun_id" class="sref">can_id = =op->can_id =*11"/a>                        if href="+code=op" class="sref">op);gt;frames);[0]a href="+code=fun_id" class="sref">can_id = =a href="+code=op" class="sref">op->can_id = mp; E2N_IDRTR_ALA a> *112/a>
112/a>        }
11"/a>                   (op->flags & SETEIMER" a>) {
113 a>
11"/a>                /* bcsetCmer values  D/span>
113/a>                           href="+code=op" class="sref">op->ival1;
msg_head->ival1;
11"/a>                op->iv class="sref">ival2;
 msg_head->iv class="sref">ival2;
113/a>                           href="+code=op" class="sref">op->kt_ival1 = timer(&a href="+code=msg_head" class="sref">msg_head->ival1;
11"/a>                op->iv_ival1" a> = timer(&a href="+code=msg_head" class="sref">msg_head->iv class="sref">ival2;

113/a>
113/a>                          _an class="comment">/* bcdisablarrn activeCmer vads   thzeroalues ? D/span>
113/a>                           (op->kt_ival1 =a href="+code=futv" class="lief">timv"/a>
<11"/a>                litimer_inn/bc" a>(&op->timer, 
114 a>
11"/a>                /* bspan>
114/a>/*                         * In anthn_scan_fc" he txmhrottle mer
114/a> *                         * pont *ily_  bckin morsgand coresetCmhrottle ndlerg Bspan>
1144a> *                         */span>
11"/a>                op->ms_ivss=tg" a> = bckmer _s" a>(&a0, 0
114/a>                        if href="+code=optimer_inn/bc" class="sref">litimer_inn/bc" a>(&op->thrtimer, 
11"/a>                        if href="+code=opm_txrtimhraflushclass="sref">bcm_txrtimhraflushsp(op);, 1
11"/a>                  114/a>
11" a>                   (op->flags & SETTARIMER" a>) {
mp;& (  href="+code=op" class="sref">op->kt_ival1 =a href="+code=futv" class="lief">timv"/a>
<11"/a>                           href="+code=optimer_instar class="sref">hrtimer_instar a>(&op->timer, op->kt_ival1 =11"/a>                                HRTIMER_MODE_REL);
11"/a>          115/a>
115/a>           an class="comment">/* adnowe nen/b regist" or can_fridsifine neadd moaew BCm_op to*/span>
11"/a>           (tidoxrseregist" a>;
{
11"/a>                   (ifindex);

11"/a>                          ruct tit/c_devic a>   * href="+code=opde class="sref">msde a>;
115/a>
11" a>                           href="+code=opde class="sref">msde a>;
 ifde _g/c_by_dex" a>(&bcit, ifindex);
11"/a>                           (msde a>;


11"/a>                                err = can_idrseregist" a>;
a href="+code=opde class="sref">msde a>;
op->can_id =11"/a>                                                      caREGMASKsp(op);gt;can_id =*116/a>                                               bcm_txrtindler" a>;
op-&11"/a>                "m.c"span>
<
116/a>
11"/a>                          a     op);gt;msrsereg_de a>;
 msde a>;
11"/a>                          a     bcde _pu a>;
a href="+code=opde class="sref">msde a>;

116/a>                117 a>
11"/a>                  11"/a>                           href="+code=opr" class="sref">err = can_idrseregist" a>;
a href="+code=opNUL class="sref">HRNUL a>;
op->can_id =11"/a>                                                 href="+code=opREGMASKclass="sref">caREGMASKsp(op);gt;can_id =*11"/a>                                                 href="+code=opm_txrtindler" class="sref">bcm_txrtindler" a>;
op-&"m.c"span>
<
11"/a>                  lass="sref">6s="sref">frames);
10"/a>                        if         (11"/a>
"m.c&q"sref">msde a>;010" class="line" name=hwnM7oken class=removen/bcef="net/can/bcm.c#L951"57id="L9011" );gt;<1 href="+code=frst_frames"1class1"sref">last_frames ={kt_ival1 =10" class="line" name="L8710" >;

10"/acm.c#L8411"5id="L901emovemsg_head->                                       10" class="line" name="L8710" cm.c#L9211ine" name="L8810" c>10" a1     1                    10"/a>                <110"/a>          
10"/a>   cm.c#L901081id="L9010"id="L9010" class="line" name="L8710" c>10"/a>                           (err < 0) {
MHr < 0) {
10"/a>                <1sk;
10"/a>  ex" class="sref">ifindex<1a>;
<18_frames an
10"7a>msg_head<*op-&send - send a set/le CANll-lo-&t_add
tim1r, class="sref">msg_head<*f="net/can/bcm.c#L951"57id="L9011" function" 1lass="sref">function 1  11" c>115/a>
msde a>;


115/a>
10"/a>   11" c>115/a>
10"/a>                <1>ts1let, 115/a>
11" a>                           href="+code=opde"L9010" cl1ss="line" name="L8910" c>10"/a>110"/a>                <1" class="s1ef">hrtimer_init(&1op1>19511" c>11"/a>           (last_frame1+code=func1ion" class="sref">functio1 19         (msde a>;


last_frame1+9210"8id=1sklet for txrx mhrottle n1lerg 19sref">last_framest/can/bcm.c#L901064id="L90DEVe a>;


10"/a>                <1">;

11>,ne" name="L8611+cbode=ktindex" clasb8810e=fln_id" class="sinit<_+cbode=ktindex" clinit<_+cb"/a>                ss="sP_KERNEL" class="sref">GFf="+code=op" class="sref">op->last_2"L9011" cl2ss="line" name="L8911" c>210/a>201" c>11"/a>                    2d this bcm2op to the list of the txr2ps */201        (last_frame21103id="L9211" class="line" name="L8211" c2110/a>                t/can/bcm.c#L901064id="L9010" class="line" name="L8610" c>10"/a>
list, &a20="sref">can_id =  = 
,ne" name="L8611>op->frames[<msid="L9011" clas+cb     msid="L9011" clas+cbode=ktindex" clasb8810d="L9010" class="lrr < 0) {
                                msg_hear" class="sref">err < 0) {
11"/a>      2     2      href="+c href="+code=op" class="sref">op->fra29011" clas2="line" name="L8911" c>112/a>
<2 href="net/can/bcm.c#L7811"8id="L9011href=_+cbode=ktindex" clhref=_+cbf">msid="L9011" clas+cbode=ktindex" clasb8810t/can/bcm.c#L9010"4id="L90102s711" clas2=klet for txrx mhrottle n2_head20sref">last_framest/can/bcm.c#L8411"5id= class="line" name="L8810" c>10"/a>                <210"/a>                <2<9 href="n2t"+code=tsktimlet" class=2411"12d="L9011" class="line" name="L9121" c>11"/a2           href="+code=op2 clas2="sref">op) href="+code=bcindex" class="sref">ifindex);
11"/a>                           (msde a>;


msg_head->err = msid="L9011" clas+cbode=ktindex" clasb8810t/can/bcm.c#L9010"4id="L90102e=TXRX_RTR2AMESTXRX_RT2_AMES21ass="sref">can_idt/can/bcm.c#L901064id="L90DEVe a>;


10"/a>                <2noCmer vso2t RTR-me=T/
10"/a>                <2="line" na2e="L9111" c>111/a>       2     21_frames an
thrtimerifindex);
                           href="+code=opd2/a>->, 
op<->ifindex = 
, 
op->->msid="L9011" clas+cbode=ktindex" clasb8810d=1);" class="sref">op->last_frame2" a>
 *        2     21sktimlet" a>,ne" name="L8611117 a>
11"/a>                    2841122id="29011" class="line" name="29211"221        (                    28op-&g2 class="line" name="L92112 c>112210/a>                t/can/bcm.c#L8411"5id= class="line" name="L8810" c>10"/a>                <21"/a>     2             (can_id =  = ;
{t/can/bcm.c#L8411"5id=err < 0) {
MHr < 0) {
10"/a>                <2ef="+code=2un_id" class="sref">can_i2 2 =10"/a>                <2 href="+co2e=fun_id" class="sref">ca2_idmsr211"9id="L9211" class="line" name="L9211" c22head" class="sref">msg_headmer
op->2a hre22, class="sref">msg_head<*=pmsgands (opref"s) lassadd
SET2IMER"2a>) {
 class="sref">msg_head<*f="net/can/bcm.c#L951"57id="L9011"2t">/* bcse2Cmer values  D/span>
 11" c>115/a>
115/a>
;
113/a>     2     2               href="+code=op11" c>115/a>
                    2ef="+code=2sg_head" class="sref">msg2head<2a>->en_frrseregist" class="sref2ef="+code=2sg_head" class="sref">msg2head<2a>->115/a>
op" c>10"/a>                <2 timer115/a>
msid="L9011" clas+code=ktindex" class="sa" c>10"/a>                <2 f="+code=2code=msmer l1<_to_kmer cl2ss="s2ef">timermsde a>;


10"/a>                             (   lass=s="sref">lis*f="net/can/bcm.c#L951"57id="L9011"2thref="+co2ablarrn activeCmer vads  2thzer236">timer115/a>
10"/a>                <2 1"9id="L92"8id="L9011" class="line"2name=2L9311" c>113/ain2acm.c#L8411"5id=r                (r  ss="              (ival1;
12class="sre2">op->->                    2t">/* bspa2>
;


10"/a>                <211" c>114/2>/*2     24span>
ival1;
;
{
MHr < 0) {
MHr < 0) {
err < 0) {
"m.c&qt/can/bcm.c#L901064id="LINVA>op->8710" c>10"/a>                <21f="+code=2f="+code=mskmer _s" class2"sref24_frames an
opthr);gt;   lass=s="sref">lis*f="net/can/bcm.c#L951"57id="L9011"2ef">op2;, 1
                   (11" a>       href9id="L9011" clasef">msde a>;


2p->2ETTAR2MER" a>) {
mp;& ( 11" c>115/a>
114/2gt;timer, 115/a>
10"/a>                <2/can/bcm.c2L9211"3id="L9011" class="2ine" 25 */
215/a>25ass="sref">can_id"net/can/bcm.c#L901                   frames);[0]2/b regist"2or can_fridsifine neadd m2aew B25corucing">"m.c"spant/can/bcm.c#L901064id="LINVA>op->8710" c>10"/a>                <2cm.c#L941126id="L9011" class="line" 2ame="25_frames an
11"/a>  2     25href="net/can/bcm.c#L"net/can/bcm.c#L901addnode=ktindex" cliddlss="          href="+code=opfamily_head->->;
11"/a>        2     2           ruct 10"/a>                <2c115 id="L2a href="net/can/bcm.c#L9/2159id25" class="line" name="L9211" c>12 class="sr2f">msde a>;
    laassasendto 0;1bcitmsde a>;


msde a>;


msd8710" c>10"/a>                <2"line" nam2="L8611" c>11"/a>        2     26span>
;
a href="+code=2pde c2ass="sref">msde a>;
tit/c_devic a>   * href="+code=opde class="sref2p" class="2ref">op);gt;can_id11" c>115/a>
11" a>                           href="+code=opd2a href="+c2de=bc" class="sref">opop2m.c#L8411"2id="L9011" class="line" n2me="L2611" c>116/a>
ifindex);
11"/a>                           (msde a>;


op);gt;"m.chref9id="L9011" clas>err = msde a>;
;


10"/a>                <2a>;

12bcm.c#L921271id="L9011" class="line"2name=2L8711" c>11"/a>               e=opr" class="sref">err = 117 a>
2rr;


10"/a>                <2seregist" 2>;
a href="+code=opNUL cl2ss="s2ef">HRNUL a>;
                <2="sref">op2/a>);gt;can_id =  = op-&"m.c"span       href="+ccin     117 a>
                <2=de=op" cl2>11"/a>
10"/a>                <2=line" nam2 href="+code=frst_frames"2class271"/a>                   (;

op2 cm.c#L9212ine" name="L8810" c>10" a2     27="L9011" class="line" name="L912op) href="+code=br                (r  ss="e=flames" class="sref">frames[<msL94117 id="L9011u8<11"/a>     id="L9010" class="line" name="L8710"/a>                                msg_hear" class="sref">MHr < 0) {
117 a>
117 a>
                t/can/bcm.c#L8411"5id=r                (r  ss="  c>117 a>
op2="L9010" class="line" nam2="L8828="sref">can_id =  = sk;
,ne" name="L8611   *rsoccode=ktindex" cl   *rsoccf">msid="L9011" clas+code=ktindex" class="sa" c>10"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_frames an
timer                   (;

tim28s="line" name * postar class="sreTXames  0" class="line"TXames  ="li:                   (function 2 , 11"/a>     id="L9010" class="line" name="L8710"/a>                                msde a>;


10"/a>                <2itialize t2sklet for txrx meout_hoti2icati29a href="net/can/bcm.cbr="k" c>10"/a>                <2i1083id="L2="L9010" class="line" nam2="L8929span>
ts2let, 20"/a>29;bo11"/a>     id="L9010" class="line" name="L8710"/a>                                msde a>;


10"/a>                <2icode=bc" 2ef">hrtimer_init(&2"m.c&qbr="k" c>10"/a>                <2ic>10"/a> 2="+code=thrtimer" class="2ref">29_frames an
functio2 29         (last_frameshreffor txrx mhrotta hrdeleter>-&sg_head->-&sgame="L8611" c>11"/a>     9/bcm.c#L8711"5id="L9011" class="line" name>-&sg           (-&sg 8710"/a>                "L9010" class="line" name="L8710nstar class="srecopREGMASKclass="sref">caREGMASKe=opde class="sref">msde a>;


;

10"/acm.c#L8411"5id=r                (r  ss="e=flames" class="sMHr < 0) {
10"/a>                <2>, can_id3"L9011" cl3ss="line" name="L8911" c>310/a>30 class="sref">bcit, op->8710" c>10"/a>                <3d this bcm3op to the list of the txr5ps */30ass="sa" c>10"/a>    5e=br                (r  href="+code=opde class="sref2p" clef="+class="line" name="L8611" c>11"/a> bcit215/a>25ass=3f">can_id<3a> =  = ,ne3 name="L8611>op-><3 href30   <2ic>10"/a> 2="+co-&sgame="L8611" cr11"/a>     9/bcm.c#L8711"5id="r9011" class="line" name>-&sg           (-&sg 8710"/a>              r "L9010" class="liner name="L8710nstar class="srecopREGMASKclass="sref">caREGMASKe=opde class="sref">msde a>;


;

ifindex);
10"/a>                <2>310/a>30 class7et/can/b3mhreffor txrx mhrotta3= cla3s="line" name="L8810" =fcm.c#L901064id="LINVA>op->8710" c>10"/a>                <3d this bcm3op to the list of the txr5ps */30ass="s8et/can/b3m710" c>10"/acm.c#L8411"539 hre30            (r  ss="esref2p" clef="+class="line" name="9et/can/b3mhrefrseregist" class="sr32    3      href="+code=op2 clas2="sre3">op) 3ref="+code=bcindex" class3"sref3>ifindex);LETE="li:              REAs);[0]a href="+REAsfor txrx mhrottle n2lerg 29sref3    (err3= 10" a2     27="L93>, msid="L9011" reopref"0" class="line"opref"   * href="+code=opde class="sref2L9210"8id=2L9010" cindex = can_3dt/can/bcm.c#L901064i3="L903EVe a>;


1"                               " class="line" name>-&sg           (-&sg 8710"/a>                "L9010" class="line" name="L871"L8710"/a>                                msdL9011" class2ode=op" cl2ss="sref">op);gt;10"/a>                <23"line31   <2ic>10"/a> 2="+code=thrtimer" class="2ref">29_fra3es an
th3timer10" a2     27="L93>8et/can/b3"L9011" clas>op-><3 href31            (r  ss="e">msid="L9011" reopref"0" class="line"opref"   * href="+code=opde class="sref2L9210"8id=2L9010" cindex = 1"                               " class="line" name>-&sg           (-&sg 8710"/a>              r "L9010" class="liner name="L871"L8710"/a>                                msdL9011" class2ode=op" cl2ss="sref">op);gt;    3               2841122id=32901132   <2i1083id="L2="L9010" class="line" nam2="L8929span3    (ts2let);[0]a href="+asNsfor txrx mhrottle n2lerg 29sref3f">can_id<3a> =  = 10" a2     27="L93D" a>;
{t/3an/bcm.c#L8411"5id=err10"/a> 2="+coerr < 0) {
MHr < 0) {
10"/a>                <2ef="+code=2un_id" class="line" name="28910"29s="l3e c>10"/a>3               <2 href="+3o2e=f32x" class="sref">ifindex);
1c>10"/a>                <3d this bcm3op to the list of the txr5ps */30ass="rsereg_de 3lass="sref">msr211"9id="L3211" 32ktindex" clhref=_+cbfe" name="L8911" c>310/a>30 clas class="sr3f">msg_headmer
11"/ahref=" nahdlass="line" name nahdllass="sref">msde a>;


10"/a>                <2icode=bc" 2ef">hrtimer_init(&2msg_head<*=pmsg_head<*f="net/can/b3m.c#L32     href="+code=op2 clas2="sre3staticlin23cm.c#L8411"5id="L90send n3_head33   <2i1083id=51"57idtxrx mhrottle n2lerg 29sref3         h3ef="+code=op11" c>115/a>
3a hre3=" nahdlass="line" nam
1c>10"/a>                <3d this bcm3op to the list of the txr5ps */30ass="en_frrsere3ist" class="sref2ef="+cod3=2sg_33ktindex" clhref=_+cbfsref2p" clef="+class="line" name=;115/a>
115/a>
msde 3>;


3a href="net/ca
 le ="+code0"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra3mer115/a>
113/ain3acm.c#L8411"5id=r        3     3 (r  ss="     c>117 a>
op2="L9010" class="line" nam2="L8828="sr3ss="line" 3ame="L9211" c>12class="sr32">op3/a>-&gdsifine neadd moaew BCm_op 3mclass="sr3f9id="L9011" clas9/bcm.c#38711"33     href="+code=op2 clas2="sre3ine" name=3L8810t/can/bcm.c#L901064i3="L903CONNe net/can/2="+code=op2 class="sref">op->2a hre223
msgands (opref"s) lassnot"sac9212inmes11"2e>n/bcm.ct;op->2a hre223
n_frrsere3t;/* bcse2Cmer values  D/span>
 11" c>115/anot"saass="sref">6s="sref">not"saas0"/a>011" class="line" name=ot"saas_blode=ktindex" class=ot"saas_bloder  ss    href="+code=nocc             n(socc  unsign="slongclass="sref">msde a>;


;



opthr);3t;11" a>                           href="+code=opd2a href="+c2de=bc" clac>1>011" class="line" name="L8611" c>11" a>                            href="+code=oata>;


msid="L9011" clas+ccontahrer_oe=ktindex" clasbcontahrer_oe0"/a>               nocc             n(socc  a hrid="L901ss="lne" nb11n/bcm.c#L8711"5id="L901bcm.c#L78a>               not"saass="sref">6s="srnot"saas0"/a="sref">ifindex<2a>;
<28_fra3>       hr3f9id="L9011" clasef">msde3a>;

3-&sg           (-&sg 8710"/a>              <2 t3tny feare 3/it RX(!)_SETUP onlynr tx3TR-li3iaound 1" cla&a hrid="L901ss="lne" nb11n                       " clt3>) {
mp;&a3p; ( 11" c>115/a>
 11" c>1not"sy_enoopd2a href="+c2de=not"sy_enoopd       0 l1<_to_kmer cl2ss="s2ef">t3>115/a3
ts2let
11" a>            eq0"/a>               8711">msde a>;


m0"/a>               8712a href="+c2de=bc" cla)71"L8710"/a>          "sref">msde a>;


can_3d"net/can/bcm.c#L901 3     3           117 a>
t3>er
thr);3m.c#L"net/can/bcm.c#L901a3dnode3ktindex" cliddlss="   c>117 a>
t3>         3a hreuot;spant/can/bcm.c#39010635e=threr" class="sre2">tim28s="l3ss="line" 3ame="L9211" c>12 class="s32f">m35a href="net/cle="L8710nstar class="sreo>;


b3itm3de a>36ifindex);LETE="li:           NETDEV_UNREGISTER10"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra3ref">msde 3>;
215/a>25ass=3 class="sr3f">can_id11" c>115/a>3functio1 19    3de=op" cla3s="sref">op2m.c#L841132id="36>op->-c/bcm1"2_each_=oprA0"/a>               cm.c#L901076id="L9010" clss="line" name>-&sg           (-&sg 8710"/a>              r "L9010" class="liner name="L8710nstar class="s"L8710" >;

functio1 19    3ds anifindex);"+code=frames" clasline" name="L8911" c>10" class="line" name= href="+co10" class="liner nef="+co           href="+code=opd2/a>->functio1 19    3def">thr);3ng">"m.chref9id="L9031" cl3s>err =                8712a href="+c2de=bc" claa href="net/can/bcm.c#L901076id="L9010" ="sref">ifindex<2a>;
<28_fra3r         3ef="net/can/bcm.c#L9/t/ca3/bcm.36e=threr" class="sre2">tim28s="l3ss="line" 3ame="L9211" c>12bcm.c#L923271id36            (r  ss="e"p;op>opour"net/can/bcm.cn" class="sref">functio1 19    3dny feare 3             e=opr" class3"sref3>err =                     2t">/* bspa2>
10"/a>                             (   lass=s=       href="+code=opd2/a>->   lass=s=lass="line" name=2L8810281"/a3f="net/can3bcm.c#L891102id="Lcan    3  hre3="+ccin                         2t">/* bspa2>
t3href="+cod3=men_et/can/bcm.c#L9/t/ca3/bcm.3#L901064id="L90DEVe a>;


10"/a>                             (   lass=s=   0 l1<_to_kmer cl2ss="s2ef">t3hef">msde 3href="+code=be c>10"/a>  3     3       <2="sref">op2/a>);gt; 11" c>1not"sy_enoopd2a href="+c2de=not"sy_enoopd       1 l1<_to_kmer cl2ss="s2ef">t3hclass="sr3a> =  = "3m.c"span       href=3+ccin37011" class="line" n2me="L2611" 3ref="ializ3 taske c>10"/a>          3     32=de=op" cl2>11"/a>
 le ="+code0"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra3ine" name 3>10"/a>                <23line"37ass="line" name="L9211" c22head3          3        (;

-&sg_head->-&sgamnot"sy_enoopd2a href="+c2de=not"sy_enoopd    lass="line" name=2L8810281"/a3fs="line" 3         ( 2ex" class10"/a>              <2_  <21"/a>     2   <2_  msid="L9011" clas+c        <2seregist" 2>;
a href="+code=opNUL cl2ss="s2ef">H311" class=3line" name="L912last_fra"sa"fla=               a"sa"fla=0"/a>                <26c>10"/a> 2ex" classa href="net/can/bSOCK_DEAs);[0]a hrefSOCK_DEAscan/ss="line" name="28910"29s="l3">op) 3ref="+code=br            3   (r38"+ccin     10"/a> 2ex" class10"/a>              <2_  <"2_repor=ktindex" clasb881_  <"2_repor=0"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra3    (can_id<3a> =  = sk3/a>;
,ne3 name="L8611   *rsoccode=3tinde3" cl   *rsoccfLETE="li:           NETDEV_DOWlass="sref2.c#L9NETDEV_DOWlfor txrx mhrottle n2lerg 29sref3es an
11"/a>
-&sgameead->                    2t">/* bspa2>
10"/a>                             (   lass=s=       href="+code=opd2/a>->   lass=s=lass="line" name=2L8810281"/a3mererr = 10"/a> 2ex" class10"/a>              <2_  <21"/a>     2   <2_  msid="L9011" clas+c  ETDOWlass="sref2.c#L9  ETDOWlref="+code=opNUL cl2ss="s2ef">H3          3        (;

last_fra"sa"fla=               a"sa"fla=0"/a>                <26c>10"/a> 2ex" classa href="net/can/bSOCK_DEAs);[0]a hrefSOCK_DEAscan/ss="line" name="28910"29s="l3"s="line" 3postar class="sreTXames  3" cla38            (r  ss="e=flames"/bcm.c#L94117 id="L9011 <26c>10"/a> 2ex" class10"/a>              <2_  <"2_repor=ktindex" clasb881_  <"2_repor=0"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra3 1" class=3 href="+code=bcm_txrr    3     3     (r  ss="e=flames"dsifine neadd moaew BCm_op 3f="net/can3bcm.cbr="k" c>10"/a>     3     3    <2i1083id=dsifine neadd moaew BCm_op 3f   (ts2let, 117 a>
t3ref="+code3bo" class="sref">bo,ne3m.c&qbr="k" c>10"/a>     3     39011" class="line" n2me="L2611" 3es an
op->2a hre223    (SET2IMER"2a>) {3>last_fram3shreffor txrx mhrotta3hrdel39ref="net/can/2="+code=op2 ccn" class="sref">functio1 19    3ne" name="38710" c>10"/acm.c#L8411"53d=r  3      t; 11" c>115/aef="                   ef="0"/a>line" name="L8611+code=ktindex" class="s->, <3 hrefrseregist" class="sr3f">ca3_id3"Lss="line" name=2L8810281"/a4s="sref">b4it, msid="L9011" clas+code=ktindex" class="sa" c>10"/a>                <2 f="+code=2code=msmer l1<_to_kmer cl2ss="s2ef">t4sa" c>10"/4>    5e=br               4(r  h40e=tsklet" class="sr2f">ts2let41"/a> 4cit-&sgameead->                    2t">/* bspa2>
t4f">can_id<4a> =  = 10"/a>                             (   lass=s=            0 l1<_to_kmer cl2ss="s2ef">t4f4>can_id<4a.c&qbr="k" c>10"/a>     4 href40   <2ic>10"/a   href="+code=10" c>10"/a>                             (t4href="+c h4ef="+code=op" class="sref4>op->              " css/,     index" class="sa" css/,     href="neid="L9011" clas+cNUL   <3d this bcm3NUL name l1<_to_kmer cl2ss="s2ef">t4"net/can/b4m.c#L7811"8id="L9011href=4+cbod40ass="line" name="L9211" c22head4s7et/can/b4mhreffor txrx mhrotta4= cla4s="line" name=="L9011" clas+cINIT_LIST_HEAs);[0]a hrefINIT_LIST_HEAs0"/a>ss="line" name>-&sg           (-&sg 8710"/a>                "L9010" class="line" name="L8r l1<_to_kmer cl2ss="s2ef">t4s8et/can/b4m710" c>10"/acm.c#L8411"549 hre40            (="L9011" clas+cINIT_LIST_HEAs);[0]a hrefINIT_LIST_HEAs0"/a>ss="line" name>-&sg           (-&sg 8710"/a>              r "L9010" class="liner name="L8r l1<_to_kmer cl2ss="s2ef">t4s9et/can/b4mhrefrseregist" class="sr42    4      href="+code=op2 clas2="sre4">op) 4ref="+code=bcindex" class4"sref4>ifindex);rames" class="sref">last_frt not"saascn" class="sref">functio1 19    4    (err4= -&sg           (-&sg 8710"/a>              not"saass="sref">6s="srnot"saas0"/aref="+code=opde "ot"saas_ccmls="sref">6s="srnot"saas_ccmlf">msid="L9011" clas+code=not"saass="sref">6s="sref">not"saas0"/a l1<_to_kmer cl2ss="s2ef">t4>, 215/a>25ass=4sref">can_4dt/can/bcm.c#L901064i4="L90413"line"RXames   href="+code=registas_>n/bcm.=not"saass="sref">6s="srregistas_>n/bcm.=not"saas0"/a>ss="line" name>-&sg           (-&sg 8710"/a>              not"saass="sref">6s="srnot"saas0"/a="sref">ifindex<2a>;
<28_fra4ine" name 4>10"/a>                <24"line41011" class="line" n2me="L2611" 4es an
117 a0 l1<_to_kmer cl2ss="s2ef">t4timertim28s="l4>8et/can/b4"L9011" clas>op-><4 href41ss BCM >msgands (opref"s) llass="sref">op->2a hre224s9et/can/b4 name="L8611/* bcse2Cmect;op->2a hre22411"/a>    4               2841122id=42901142ONNe net/can/2="+code=op2 ccn" class="sref">functio1 19    4    ( 11" c>115/a> le ="                     le ="0"/a>line" name="L8611+code=ktide=ktindex" claoccss="cm_txrtindler" a>;
msg2head<2a>-&g4f">can_id<4a> =  = op" c>10"/a>                <2 t4D" a>;
{t/4an/bcm.c#L8411"5id=err10"/asoccss="line" name="L8611n/bcm.c#L8711"5id="L901bcm.c#L781098id="L9010ode=op" class="sr9010odf">m l1<_to_kmer cl2ss="s2ef">t4Ds anm l1<_to_kmer cl2ss="s2ef">t4Dimermsr211"9id="L4211" 42ass="line" name="L9211" c22head4 class="sr4f">msg_headmer
MHtindex" claoccss="      id="L9011" clas+cNUL   <3d this bcm3NUL names="line" name="28910"29s="l4 8et/can/b4f">msg_head<*=pt4 class="sr4f">msg_head<*f="net/can/b4m.c#L42     href="+code=op2 clas2="sre4staticlin24cm.c#L8411"5id="L90send n4_head43ss="e=flames" class="sref">fop" class="sr9010odf">msid="L9011" clas+code=ktindex" class="sa" c>10"/a>                <2 f="+code=2code=msmer l1<_to_kmer cl2ss="s2ef">t4         h4ef="+code=op11" c>115/a>
4a hre43e=tsklet" class="sr2f">ts2letfunctio1 19    4;115/a>
115/a>
6s="srunef=istas_>n/bcm.=not"saas0"/a>ss="line" name>-&sg           (-&sg 8710"/a>              not"saass="sref">6s="srnot"saas0"/a="sref">ifindex<2a>;
<28_fra4mermsde 4>;


43+code=timtimer" cla2s="sr2f">th4mer115/a>
              clas+code=ktindex" class="sa" c>10"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra4 c>113/ain4acm.c#L8411"5id=r        4     43e=threr" class="sre2">tim28s="l4ss="line" 4ame="L9211" c>12class="sr42">op43            (="L9011" clas+cc/bcm1"2_each_=oprA_saf"               c/bcm1"2_each_=oprA_saf"0"/a>               10" cm.c#L9211ine" name,s   href="+code=nexe=ktindex" claocnexef">mclss="line" name>-&sg           (-&sg 8710"/a>                "L9010" class="line" name="L8710nstar class="s"L8710" >;

functio1 19    4mclass="sr4f9id="L9011" clas9/bcm.c#48711"43    (r  ss="e=flames" class="sa hr>-      ;gt;                        ;gt;   0"/a>               10" cm.c#L9211ine" name="sref">ifindex<2a>;
<28_fra4ine" name=4L8810t/can/bcm.c#L901064i4="L904CONNe sref">ifindex<2a>;
<28_fra4i        h4et/can/bcm.c#L92cm.c#L941423id=44f="+code=opdeine" name>-&sg c/bcm1"2_each_=oprA_saf"               c/bcm1"2_each_=oprA_saf"0"/a>               10" cm.c#L9211ine" name,s   href="+code=nexe=ktindex" claocnexef">mclss="line" name>-&sg           (-&sg 8710"/a>              r "L9010" class="liner name="L8710nstar class="s"L8710" >;

msgands (opref"s) llass="sref">op->2a hre224op->2a hre224opalwayopa sat;op->2a hre224
opfunctio1 19    4ref">thr);4t;err = 10" class="line" name=aa href="+coefault1" a>   lass=s=lass="line" name=2L8810281"/a4          4        (msgands (opref"s) llass="sref">op->2a hre224msde4a>;

44ss BCM >msgands (opref"s) le" name="L8810" =fcm.c#Lc* Onlyass;gt;op->2a hre224/* bcse2Cm" name="L8810" =fcm.c#Lc* beenass;gt;d dueme1+NETDEV_UNREGISTERfo="sref">op->2a hre224>) {
mp;&a4p; ( 11" c>115/a>
not"saas()ss="sref">op->2a hre224>115/a4
msgands (opref"s) la" name="L8810" =fcm.c#Lc*" class="sref">functio1 19    4span>
op2/a>);gt;10" class="line" name= href="+co10" class="liner nef="+co    lass="line" name=2L8810281"/a4sref">can_4d"net/can/bcm.c#L901 4     4           11" a>                           href="+code=opd2a href="+c2de=bc" class="sref">op
ifindex);;;;;;;;;   href="+code=opd2a href="+c2de=bc" cla" class="line" name="L8611" c>11"/a>                           (msde a>;


10" class="line" name=aa href="+coefault1" a>   lass=s=lss="sref">opthr);4m.c#L"net/can/bcm.c#L901a4dnode4ktindex" cliddlss="   f">op2/a>);gt;->               8712a href="+c2de=bc" claa href="net/can/bcm.c#L901076id="L9010" ="sref">ifindex<2a>;
<28_fra4ss="line" 4ame="L9211" c>12 class="s42f">m45            (r  ss="e=flames"/bcm.c#L;;;;;;;;   href="+code=opdlass="line" name="L8711" c>117 a>
 = b4itm4de a>46"+ccin     can_idrs42egis46" nahdlass="line" nam}fe" name="L8911" c>310/a>30 cla4ref">msde 4>;
op2/a>);gt; 11" c>1hre_ "lunef=istasn2 .c#L8411"2  hre_ "lunef=istas>117 a>
10" class="line" name=c">msde a>;


310/a>30 cla4rref">can_4f">can_id11" c>115/a>4               10" cm.c#L9211ine" name" class="line" name=c">msde a>;


310/a>30 cla4rerop2m.c#L841142id="46>op->                    "lmes claa href="net/can/bcm.c#L901076id="L9010" ="sref">ifindex<2a>;
<28_fra4ds anth4def">thr);4ng">"m.chref9id="L9041" cl4s>err = -      ;gt;                        ;gt;   0"/a>               10" cm.c#L9211ine" name="sref">ifindex<2a>;
<28_fra4r         4ef="net/can/bcm.c#L9/t/ca4/bcm.46L901064id="L9dsifine neadd moaew BCm_op 4ss="line" 4ame="L9211" c>12bcm.c#L924271id46     sifine neadd moaew BCm_op 4sny feare 4             e=opr" class4"sref4>err = functio1 19    4f="net/can4bcm.c#L891102id="Lcan    4  hre4="+ccin                    ss/, di>+ccin              href="+code=10" c>10"/a>                             (< " css/,     index" class="sa" css/,     hrefc"sref">functio1 19    4href="+cod4=men_et/can/bcm.c#L9/t/ca4/bcm.4#L901064id="L90DEVe a>   href="+code=re;gt; ss/, =oprAFe=fr_head-re;gt; ss/, =oprA0"/a>               10" c>10"/a>                             (ifindex<2a>;
<28_fra4hef">msde 4href="+code=be c>10"/a>  4     47ne" name="L9511" c>215/a>25ass=4hclass="sr4a> =  = functio1 19    4fer->                    2t">/* bspa2>
10"/a>          4     42=de=op" cl2>11"/a>
                    2t">/* bspa2>
t4ine" name 4>10"/a>                <24line"47>err = - 0" c>10"/a>                             (   lass=s=   0 l1<_to_kmer cl2ss="s2ef">t4          4        (;

 = op" _orpmes0"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra4">op) 4ref="+code=br            4   (r48ss="e=flames" class="sref">fe=op" class="sref">op" c>10"/a>                <2 t4    (ts2let-&sgam> le ="+code=ktindex" class> le ="+code0"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra4f">can_id<4a> =  = sk483"line"RXames   href="+code=op" _ass="line" name="Lop" _ass0"/a>                <26c>10"/a> 2ex" class="sref">ifindex<2a>;
<28_fra4fer
117 a0 l1<_to_kmer cl2ss="s2ef">t4mertim28s="l4"s="line" 4postar class="sreTXames  4" cla48     t; 11" c>115/aconnec"                   connec"0"/a>line" name="L8611+code=ktide=ktindex" claoccss="cm_txrtindler" a>;
     2   <="Ladd;
     2   uadd 11" c>1les" class="sref">lescan/bame="L8911" c>310/a>30 cla4 1" class=4 href="+code=bcm_txrr    4     4     (r  ss="e=flames"      11" c>1fla=010" class="linefla=0hrefc"sref">functio1 19    4f="net/can4bcm.cbr="k" c>10"/a>     4     4    <2ss="line" name=2L8810281"/a4f   (op" add<_cesm_txrtindler" a>;
     2   add1>011" class="line" namee="Ladd<_ces" class="sref">op" add<_cesm_txrt    href="+code=uadd<21"/a>     2   uaddt4>, op" c>10"/a>                <2 t4ref="+code4bo" class="sref">bo;


msid="L9011" clas+code=ktindex" class="sa" c>10"/a>                <2 f="+code=2code=msmer l1<_to_kmer cl2ss="s2ef">t4fet" a>,ne4m.c&qbr="k" c>10"/a>     4     49011" class="line" n2me="L2611" 4es an
lescan/ < ;
     2   add                <3d this bcm3op to the list of the txr5ps */30ass=4>last_fram4shreffor txrx mhrotta4hrdel49e=threr" class="sre2">tim28s="l4ne" name="48710" c>10"/acm.c#L8411"54d=r  498>->                    2t">/* bspa2>
tim28s="l4n1" class=4 hrefrseregist" class="sr4f">ca49    (r  ss="e=flames"c>117 ac>10"/a>          SCONlass="sref2.c#L9  SCONlthe list of the txr5ps */30ass=5s="sref">b5it, ifindex<2a>;
<28_fra5sa" c>10"/5>    5e=br               5(r  h50f="+code=opdeip;opcss="c *" class="sref">functio1 19    5"L8611" c>51"/a> 5cit     2   addmsa href="+coefault1" ac">msa hrefref=cass="line" name=2L8810281"/a5f">can_id<5a> =  = 11" a>                           href="+code=opd2a href="+c2de=bc" class="sref">op10"/a>     5 href50011" class="line" n2me="L2611" 5href="+c h5ef="+code=op" class="sref5>op11"/a>
11"/a>                           (msde a>;


     2   addmsa href="+coefault1" ac">msa hrefref=css="sref">oplast_fropd2/a>->functio1 19    5s7et/can/b5mhreffor txrx mhrotta5= cla50L901064id="L90DEVe a>;


117 ac>10"/a>                <2seregist" 2>;
a href="+code=opNUL cl2ss="s2ef">H5s8et/can/b5m710" c>10"/acm.c#L8411"559 hre50     sifine neadd moaew BCm_op 5s9et/can/b5mhrefrseregist" class="sr52    50err = ->op) 5ref="+code=bcindex" class5"sref51"+ccin     117 a>
err5=                 <2seregist" 2>;
a href="+code=opNUL cl2ss="s2ef">H5>, op2/adsifine neadd moaew BCm_op 5sref">can_5dt/can/bcm.c#L901064i5="L9051a>;
10"/a>                <25"line51>op->10"/a>                             (   lass=s=   rdeleter>-&sgamm.c#L95116 id="lypcref="!cm.c#L781098id="LARPaa href="+coefault1" a>   lass=s="+code=opNUL cl2ss="s2ef">H5>ref="+c h5>
11"/a>
117 a>
op-><5 href51            (r  ss="e"p;   las   0 ('any' ="Lfunctio1 19    5s9et/can/b5 name="L861110"/a>                             (   lass=s=   0 l1<_to_kmer cl2ss="s2ef">t511"/a>    5               2841122id=52901152   <2i1083id=dsifine neadd moaew BCm_op 5    (ts2let-&sgameead->                    2t">/* bspa2>
t5f">can_id<5a> =  = ;
{t/5an/bcm.c#L8411"5id=err               ss/, di>+cci=ass="line" name=2L8810281"/a5Ds anifind"p;functio1 19    5Dimermsr211"9id="L5211" 52ktindex" clhref=_+cbf                pr"ene=ktindex" clasb pr"ene0"/a>               10" c>10"/a>                             ("%lu" class=a>                p" _i   0" c>10"/a>      p" _i   00"/a>                <2 f="+code=2code=msmer             if 2     2 (msg_headmer
ldeleter>-&sgameead->              " css/,     index" class="sa" css/,     href=  rdeleter>-&sgamss/, cref2e_oata>;


               10" c>10"/a>                             (310/a>30 cla5 8et/can/b5f">msg_head<*=p               ss/, di>+ccibame="L8911" c>310/a>30 cla5 9et/can/b5f">msg_head<*f="net/can/b5m.c#L52err = -&sg  " css/, fL9010" class="line " css/, fL90can/bcm.c#L951"62id=" <2 f="+code=2code=msmer l1<_to_kmer cl2ss="s2ef">t5staticlin25cm.c#L8411"5id="L90send n5_head53   <2i1083id=dsifine neadd moaew BCm_op 5         h5ef="+code=op11" c>115/a>
5a hre53e=tsklet" class="sr2f">ts2let117 a0 l1<_to_kmer cl2ss="s2ef">t5;115/a>
msde 5>;


53+codet; 11" c>115/a> cvreo>;


line" name="L8611+codekiococc             kioco         href="+code=iococc             ioco      a hrid="L901ss="lne" ne="Lde=ktindex" claoccss="cm_txrtindler" a>;
115/a>
op2/a hrid="L901ss="lne" nreohd<21"/a>     2   reohd;
;


 11" c>1fla=010" class="linefla=0hrefc"sref">functio1 19    5 c>113/ain5acm.c#L8411"5id=r        5     53e=thrss="line" name=2L8810281"/a5ss="line" 5ame="L9211" c>12class="sr52">op53            (line" name="L8611+code=ktindex" class="s->op" c>10"/a>                <2 t5mclass="sr5f9id="L9011" clas9/bcm.c#58711"53aound 1" cla&a hrid="L901ss="lne" nsk_bufe=ktindex" clasb k_bufe>t5ine" name=5L8810t/can/bcm.c#L901064i5="L9054dname=ode=ktisend na"/a> 11" c>1  <"2cc               <"2s=s=   0 l1<_to_kmer cl2ss="s2ef">t5i        h5et/can/bcm.c#L92cm.c#L941523id=54f="+code=opdesend na"/a> 11" c>1nobl=op" class="sref">nobl=opsmer l1<_to_kmer cl2ss="s2ef">t5in_frrsere5t; 11" c>1  t5i;
10"/a   href="+code=nobl=op" class="sref">nobl=opsmer   d na"/a> 11" c>1fla=010" class="linefla=0href          href="+code=MSG_DONTWAIT10" class="lineMSG_DONTWAITsmer l1<_to_kmer cl2ss="s2ef">t5ier
opt5iimer              ktocc             ktosmer        href="+codekba> cv_oatagramcc             ktoa> cv_oatagram0"/a>                <2 f="+code=2code=msmeb="L901ss="lne" nfla=010" class="linefla=0href,s   href="+code=nobl=op" class="sref">nobl=opsmerclss="line" name>-&sg   <"2cc               <"2s=s=r l1<_to_kmer cl2ss="s2ef">t5          5        (last_fratocc             ktosmerc"sref">functio1 19    5msde5a>;

54            (r  ss="ec>117 aine" name>-&sg   <"2cc               <"2s=s= l1<_to_kmer cl2ss="s2ef">t5 class="sr5/it RX(!)_SETUP onlynr tx5TR-li54     href="+code=op2 clas2="sre5>) {
mp;&a5p; ( 11" c>115/a>
                les" class="sref">lescan/ < "L901ss="lne" neize=ktindex" claoccizem_txc"sref">functio1 19    5>115/a5
                les" class="sref">lescan/ l1<_to_kmer cl2ss="s2ef">t5span>
215/a>25ass=5sref">can_5d"net/can/bcm.c#L901 5     553"line"RXames   href="+code=                 e a>;


                et/_iov>;


                oata>;


t5ser
ifind     href="+codekbafree_oatagramcc             ktoafree_oatagram0"/a>                <2 f="+code=2code=msmeb="L901ss="lne" natocc             ktosmerc l1<_to_kmer cl2ss="s2ef">t5simer-&sg   t5s         5a hreuot;spant/can/bcm.c#59010655L901064id="L9dsifine neadd moaew BCm_op 5ss="line" 5ame="L9211" c>12 class="s52f">m55     sifine neadd moaew BCm_op 5tny feare 5/it RX(!)_SETUP onlynr tx5TR-l"55err =                e a>;


t5s="sref">b5itm5de a>56ONNe sref">ifindex<2a>;
<28_fra5s;


                et/_#L9/               et/_#L9/+cci=ass="line" name=2L8810281"/a5ref">msde 5>;
op2/ade=frames" clase a>;


                et/_#L9/les" class="sref">et/_#L9/lessmer   op" add<_cesm_txc l1<_to_kmer cl2ss="s2ef">t5sref">can_5f">can_id11" c>115/a>5;


               e a>;


                et/_#L9/               et/_#L9/+ccibcm.c#L951"62id="                 cocc             co      de=frames" clase a>;


                et/_#L9/les" class="sref">et/_#L9/lessmerc l1<_to_kmer cl2ss="s2ef">t5serop2m.c#L841152id="56>op->th5def">thr);5ng">"m.chref9id="L9051" cl56 class="line">              ktoafree_oatagramcc             ktoafree_oatagram0"/a>                <2 f="+code=2code=msmeb="L901ss="lne" natocc             ktosmerc l1<_to_kmer cl2ss="s2ef">t5r         5ef="net/can/bcm.c#L9/t/ca5/bcm.56e=threr" class="sre2">tim28s="l5ss="line" 5ame="L9211" c>12bcm.c#L925271id56            (c>117 aine" name>-&sg eize=ktindex" claoccizem_tx l1<_to_kmer cl2ss="s2ef">t5rny feare 5             e=opr" class5"sref5>errifindex<2a>;
<28_fra5href="+cod5=men_et/can/bcm.c#L9/t/ca5/bcm.57e=tskt;;


msde 5href="+code=be c>10"/a>  5     57      <2="sreref="+code=opde family>;


 le ="                 le ="0"/a<2="sre       href="+codb5/a> le ="                     le ="0"/a class="line" n2me="L2611" 5her10"/a>          5     52=de=op" cl2>1ref="+code=opde connec"               connec"0"/a<2="sre       href="+codb5/aconnec"                   connec"0"/a class="line" n2me="L2611" 5hef">thr);5>10"/a>                <25line"57>err = err        href="+code=op_no_css="cpai>               css=_no_css="cpai>0"/a class="line" n2me="L2611" 5h         5        (;

 = 6s="srpomlref=                 href="+codoatagram_pomls="sref">6s="sroatagram_poml0"/a class="line" n2me="L2611" 5">op) 5ref="+code=br            5   (r58ss="e=flames"ref="+code=opde ioctls="sref">6s="srioctlref=                href="+codc">msoctls="sref">6s="src">msoctlmsmeb=ine">p;msoctl() from af_ces.c *" class="sref">functio1 19    5    (lan/es     <2="sre       href="+codcss=_no_can/es" class="sref">css=_no_can/es0"/a class="line" n2me="L2611" 5"ef">msde 5     t/can/bcm.c#L8411"5i5=r   58      <2="sreref="+code=opde shutdows" class="sref">chutdows     <2="s       href="+code=op_no_chutdows" class="sref">c=op_no_chutdows0"/a class="line" n2me="L2611" 5"class="sr5a> =  = sk58="net/can/bcmref="+code=opde setc=opop"               cetc=opop"err        href="+code=op_no_cetc=opop"               c=op_no_cetc=opop"0"/a class="line" n2me="L2611" 5"er        href="+code=op_no_getc=opop"               e=op_no_getc=opop"0"/a class="line" n2me="L2611" 5"s an
1ref="+code=opde sende a>;


;


thr);5tchet/can/bcm.c#L901   "L5010" 58>err =  cvreo>;


 cvreo>;


;

t5f="net/can5bcm.cbr="k" c>10"/a>     5     59ONNe sref">ifindex<2a>;
<28_fra5f   (;


, " cl_BCM" class=as="line" name=2L8810281"/a5>class="sr5bo" class="sref">bo               owsa>     <2="s       href="+codTHIS_MODULE               THIS_MODULE0"/a class="line" n2me="L2611" 5fet" a>,ne5m.c&qbr="k" c>10"/a>     5     594+ccin     310/a>30 cla5es an
1ref="+code=opde ef="s="sref">6s="srif="0"/a<2="sre       href="+codb5/aef="s="sref">6s="srb5/aef="0"/a class="line" n2me="L2611" 5fef">thr);5postar class="sreTXaDELET50" cl59tinde} l1<_to_kmer cl2ss="s2ef">t5f         5shreffor txrx mhrotta5hrdel59e=threr" class="sre2">tim28s="l5ne" name="58710" c>10"/acm.c#L8411"55d=r  59     t;mproto10" class="linec">mprotom_txr"L901ss="lne" nb   c">mproto10" class="lineb   c">mprotom_txr=ass="line" name=2L8810281"/a5>ny feare 5 hrefrseregist" class="sr5f">ca59err = b6it, 6s="srprotocol+ccin    ef="+code=opde  cl_BCMs="sref">6s="sr cl_BCM0"/a class="line" n2me="L2611" 6s1"sref">b6it/can/bcm.c#L92>-&sg  " c  s>;


b6iostar class="sreRXames  6cit6s="srprotRPHRD2="sre  ss="line" name>-&sg  " css/to10" class="lineb   protom_tx class="line" n2me="L2611" 6s3"sref">b6io" class="sref">bot6f4>can_id<6a.c&qbr="k" c>10"/a>     6 href60011" class="line" n2me="L2611" 6href="+c h6ef="+code=op" class="sref6>op 11" c>1_aef="s="sref">6s="sr_aef="0"/ar"L901ss="lne" nb   moduleaef="s="sref">6s="srb5/amoduleaef="0"/a>voidc"sref">functio1 19    6f6ef="+c h6eostar class="sreTXaDELET6+cbod60>errhreffor txrx mhrotta6= cla60L901064id="L9send na"/a> 11" c>1  t6s8et/can/b6m710" c>10"/acm.c#L8411"569 hre60     sifine neadd moaew BCm_op 6s9et/can/b6mhrefrseregist" class="sr62    60err =                bansa>               bansa>smerc l1<_to_kmer cl2ss="s2ef">t6">op) 6ref="+code=bcindex" class6"sref61ONNe sref">ifindex<2a>;
<28_fra6    (err6= -&sg   mproto_ef=istasn2 .c#L8411"2  hre_proto_ef=istas0"/a>ss="line" name>-&sg  " cc">mproto10" class="lineb   c">mprotom_txc l1<_to_kmer cl2ss="s2ef">t6"2"sref">b6"+code=bcm_txrtimeouhref=6+cbod61      <2="sre"+code=frames" clas  can_6dt/can/bcm.c#L901064i6="L9061="net/can/bcm.c#L9511     href="+codpr"enm.c#L8711"5id="Lpr"enm0"/a>               KERN_ERR.c#L8711"5id="LKERN_ERR0"/ar"p;"2L8: ef=istra212i of ef" protocol failed\n" class=c l1<_to_kmer cl2ss="s2ef">t6"4>can_id<6>10"/a>                <26"line61>op->117 aine" name>-&sg   t6>ref="+c h6>
1dsifine neadd moaew BCm_op 6 6ef="+c h6"L9011" clas+cbode=ktinde6" cla61ass="line" name="L9211" c22head6 7et/can/b6"L9011" clas+cbode=ktinde6" cla61L901064id="L9>p;functio1 19    6"8et/can/b6"L9011" clas>op-><6 href61            (="L9011" clas+css/, di>               ss/, di>+ccin  rdeleter>-&sgamss/, mkdi>               ss/, mkdi>0"/a> p;"2L8-ef"" class=a>               "sref">msde a>;


msde a>;


mm_txc l1<_to_kmer cl2ss="s2ef">t6"9et/can/b6 name="L8611117 a0 l1<_to_kmer cl2ss="s2ef">t611"/a>    6               2841122id=62901162   <2dsifine neadd moaew BCm_op 6    (ts2let 11" c>1_aex="s="sref">6s="sr_aex="0"/ar"L901ss="lne" nb   moduleaex="s="sref">6s="srb   moduleaex="0"/a>voidc"sref">functio1 19    6f">can_id<6a> =  = ;
{t/6an/bcm.c#L8411"5id=err10"/a   href="+code=hre_proto_unef=istasn2 .c#L8411"2  hre_proto_unef=istas0"/a>ss="line" name>-&sg  " cc">mproto10" class="lineb   c">mprotom_txc l1<_to_kmer cl2ss="s2ef">t6Ds anth6Dimermsr211"9id="L6211" 62ktindex" clhr"+code=frames" classs/, di>               ss/, di>+cci==timtimer" cla2s="sr2f">th6D7et/can/b6f">msg_headmer
ldeleter>-&sgamprocf">m   ;gt;sde a>;


m   ;gt;0"/a>ss="line" name>-&sg "sref">msde a>;


"2L8-ef"" class=c l1<_to_kmer cl2ss="s2ef">t6D8et/can/b6f">msg_head<*=pmsg_head<*f="net/can/b6m.c#L62     href="+code=op2 clas2="sre6staticlin26cm.c#L8411"5id="L90send n6_head63   <2ef="+code=opde moduleaef="s="sref">6s="srmoduleaef="0"/a>"L901ss="lne" nb   moduleaef="s="sref">6s="srb5/amoduleaef="0"/ac l1<_to_kmer cl2ss="s2ef">t6         h6ef="+code=op11" c>115/a>
6a hre63e=tskef="+code=opde moduleaex="s="sref">6s="srmoduleaex="0"/a>"L901ss="lne" nb   moduleaex="s="sref">6s="srb   moduleaex="0"/ac l1<_to_kmer cl2ss="s2ef">t6          6ist" class="sref2ef="+cod6=2sg_63ktind


The original LXR softwar57by the 1<_to_kmehttp://sourceforge.r clprojects/lxsn>LXR codeuf="ycan/bcf">opexperie=opal vers12i by 1<_to_kmemailto:lxs@"srux.no">lxs@"srux.nocan/r
lxs."srux.no kindly hostad by 1<_to_kmehttp://www.redpill-"srpro.no">Redpill Lsrpro AScan/bcprovider of Lsruxrconsultingma/ca"pera212i"