Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8917245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:26:21+00:00 2026-06-15T05:26:21+00:00

I am new to kernel module development. I am trying to development a pseudo

  • 0

I am new to kernel module development. I am trying to development a pseudo network driver operates in loopback mode without any actual device. My goal is to use the following setup:

iperf -s -u.........iperf -c 192.168.1.1 -p 5001 -u

======…………..===========

|…if0….|………….|……..if1………|

======…………..===========

 |              |
/|\            \|/
 |              |
  ---------------

I have registered two interface from the driver. Then I modified the UDP packet received from if1 so that it appeared as it was received at if0. But it never reaches to the iperf server application listening on all udp if’s udp port. But whenever I sniffed the packet via wireshark on if0, it seems that the packet is being received at if0. But for some reason it is not going through the network stack.

any clues?
Both the ip checksum & udp checksum have recalculated and verified (using wireshark). I am using netif_rx to indicate packet to the other interface handle (if0 handle).

I have only used 5 function ptr callbacks {open, close, xmit_start, get_stats & config} for network operations. Also checksum is set to UNNECESSARY. IF flag has been set to indicate NO_ARP.

EDIT: IP ADDR OUTPUT

eth1: mtu 1500 qdisc

pfifo_fast state UP qlen 1000 link/ether 00:e0:ff:00:00:e0 brd

ff:ff:ff:ff:ff:ff inet 192.168.1.1/24 brd 192.168.1.255 scope globa eth1 valid_lft

forever preferred_lft forever 4:

eth2: mtu 1500 qdisc pfifo_fast

state UP qlen 1000 link/ether 00:e0:ff:40:00:e0 brd ff:ff:ff:ff:ff:ff

inet 192.168.2.1/24 brd 192.168.2.255 scope global eth2 valid_lft

forever preferred_lft forever

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:26:22+00:00Added an answer on June 15, 2026 at 5:26 am

    Ok I have figured it out.

    I feel stupid not to think about it. The packet was dropped due to the routing issue.

    The received packet at the receiving IF must have the same network as the IF.

    So, if the IF has 192.168.1.1/24, the routing system only accepts packet originated from 192.168.1.X/24.

    I didn’t noticed it until I tried with the single IF loopback.
    Can anyone explain why it has happened?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am new kernel programming.i have been trying to load this driver program for
I'm writing new kernel module and I add implement new IOCTL's. Is there any
I am new to linux kernel programming. I wrote a simple kernel module and
I am a new comer to Linux Kernel Module programming. From the material that
New to Linux programming in general. I am trying to communicate with a kernel
I'm new to linux kernel programming, and for quite a long time I'm trying
i'm trying to make new system calls in kernel 2.6.21 and one of the
I writing a linux kernel module that does some work with /proc... I'm trying
I'm trying to code some basic kernel module - userspace program communication using netlink
I wrote kernel module which do nf_register_hook and use character device mechanism to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.