• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • AXIS OpenBT Stack
  • Patches

Patch for compiling as a module with PAN

Status: Inactive
Brought to you by: anderstj, pkj, wesen
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Feature Requests
    • Patches
    • Bugs
    • Support Requests
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#7 Patch for compiling as a module with PAN

open
nobody
None
5
2002-02-11
2002-02-11
Fabrizio Gennari
No

OpenBT stack's PAN profile only compiles when the
stack is built inside the kernel, but when the stack
is compiled as a module, the following errors occur:

bnep.o(.text+0x0): multiple definition of `init_module'
bluetooth.o(.text+0x25a0): first defined here

This patch makes it possible to compile the stack as a
module with PAN profile:
1) bnep_init_module is now called from bluetooth.c,
the macro module_init(bnep_init_module) has been
removed
2) when the module is removed, bluetooth.c calls a new
function named bnep_exit_module

Also two modifications in bnep.c are done:
1) swapped the >= and <= signs in the multicast filter
check (they caused multicast packets to be dropped)
2) if bnep_send_packet cannot subscribe a memory
buffer, the packet is not dropped with dev_kfree_skb,
instead -1 is returned so the queue discipline re-
enqueues the packet. Packet dropping is utterly
destructive for non-acknowledged traffic like UDP. For
TCP, a packet drop does not cause data loss because
TCP has retransmissions, however TCP retransmissions
are better avoided because they cause traffic slowdown

Discussion

  • Fabrizio Gennari

    Fabrizio Gennari - 2002-02-11
     
    bnep-patch.txt
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.