Install drcom with Ubuntu later than 8.04 source code

Source: Internet
Author: User
Notes for installing drcom from Ubuntu source code later than version 8.04. I have already installed drcom. To make it easier to remember, copy other users to install drcom from the source code, make reports an error. Both 9.10 and 10.04 have this problem. /Tmp/drcom. c: Infunction 'build _ ack_skb':/tmp/drcom. c: 686: error: 'sk SK _ buff'

Notes for installing drcom from Ubuntu source code later than version 8.04. I have already installed drcom. To make it easier to remember, copy other users to install drcom from the source code, make reports an error. Both 9.10 and 10.04 have this problem.

/Tmp/drcom. c: In function 'build _ ack_skb ':
/Tmp/drcom. c: 686: error: 'struct sk_buff 'has no member named 'dst'
/Tmp/drcom. c: In function 'build _ auth_skb ':
/Tmp/drcom. c: 723: error: 'struct sk_buff 'has no member named 'dst'
Make [3]: *** [/tmp/drcom. o] Error 1
Make [2]: *** [_ module _/tmp/drcom] Error 2
Make [2]: Leaving directory '/usr/src/linux-headers-2.6.32-14-generic'
Make [1]: *** [default] Error 2
Make [1]: Leaving directory '/tmp/drcom'
Compile drcom kernel module failed!

Solution:

Edit/kmod/drcom. c

Search for _ ip_select_ident (iph, skb-> dst, 0 );
Change to _ ip_select_ident (iph, skb_dst (skb), 0 );

Tip: There are two changes to be made. We recommend that you install the dkms package, sudo apt-get install dkms, so you do not need to manually compile drcom after each kernel update.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.