~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to kernel/vzaphfc/lapd.c

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * lapd.c
 
3
 *
 
4
 * This program is free software and may be modified and
 
5
 * distributed under the terms of the GNU Public License.
 
6
 *
 
7
 */
 
8
 
 
9
#include <linux/kernel.h>
 
10
#include <linux/version.h>
 
11
#include <linux/netdevice.h>
 
12
 
 
13
#include "lapd.h"
 
14
 
 
15
static int lapd_change_mtu(struct net_device *dev, int mtu)
 
16
{
 
17
        return -EINVAL;
 
18
}
 
19
 
 
20
static int lapd_mac_addr(struct net_device *dev, void *addr)
 
21
{
 
22
        return -EINVAL;
 
23
}
 
24
 
 
25
void setup_lapd(struct net_device *netdev)
 
26
{
 
27
 
 
28
        netdev->change_mtu         = lapd_change_mtu;
 
29
        netdev->set_mac_address    = lapd_mac_addr;
 
30
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
 
31
        netdev->hard_header        = NULL;
 
32
        netdev->rebuild_header     = NULL;
 
33
        netdev->hard_header_cache  = NULL;
 
34
        netdev->header_cache_update= NULL;
 
35
#endif
 
36
 
 
37
        netdev->type               = ARPHRD_LAPD;
 
38
        netdev->hard_header_len    = 0;
 
39
        netdev->mtu                = 512;
 
40
        netdev->addr_len           = 0;
 
41
        netdev->tx_queue_len       = 10;
 
42
 
 
43
        memset(netdev->broadcast, 0x00, sizeof(netdev->broadcast));
 
44
 
 
45
        netdev->flags              = IFF_NOARP;
 
46
}
 
47
 
 
48