Networking Forums

Networking Forums > Computer Networking > Linux Networking > dev_add_pack question

Reply
Thread Tools Display Modes

dev_add_pack question

 
 
kernel.lover
Guest
Posts: n/a

 
      01-20-2005, 06:03 AM
Hello,
I want to add my own protocol in kernel network
stack. so i analyze the kernel code and i found that new protocols are
added with dev_add_pack() function. But i am confuse about how to
declare my own protocol in instance of packet_type like one defined
for IP packet
static struct packet_type ip_packet_type =
{
__constant_htons(ETH_P_IP),
NULL, /* All devices */
ip_rcv,
(void*)1,
NULL,
};

How/where to get/write own protocol ID like ETP_P_IP nad what should
be its protocol number? and can i define other fields NULL in my
packet type same as in IP packet type structure?
regards,
cranium.2003
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Handlers registered with dev_add_pack - executed in irq or bh context? wzab Linux Networking 0 04-24-2012 10:41 AM
Skip the PW question: I got that, question now about "Home" Tim Wilson Network Routers 1 12-31-2005 04:01 AM
Switch Question - restate previous question w/no subject SEAN J Windows Networking 2 11-30-2005 02:42 PM
dev_add_pack question kernel.lover Linux Networking 0 01-19-2005 04:04 AM
Dell 2300 TrueMobile router question/ general wireless question Craig Wireless Internet 2 01-11-2004 06:26 PM



1 2 3 4 5 6 7 8 9 10 11