Software :: Networking Skbuff And Qdisc?

Oct 23, 2010

Why can not use skb_queue of skbuff to enqueue and dequeue within qdisc in kernel programming? Also, I cannot find the source code of *enqueue of qdisc in LXR. Anyone understands qdisc and skbuff in kernel well?

View 1 Replies


ADVERTISEMENT

Networking :: NETFILTER And Extraction Of Data From Non Linear Area Of Skbuff

Feb 25, 2011

i am writing a netfilter module for linux 2.6.34.6-47 / 2.6.35. while i could capture the packets on the incoming hook since the same came as a single packet in probably the allocated skbuff area by the stack, i found that packets going out of the machine are getting splitted into linear and non-linear area. skb->data gives the total length of packet as correct, but when i extract skb-> data to print it, it prints only ip and tcp header. Now to treat the data i need to extract it and then push it back on the route.

To clarify if my data is 3 bytes . the total length by passing pointers show as 55 bytes = ( 52 byte of header + 3 byte of data), but i can't access these 3 bytes by using skb->tail - skb->data. how to extract outgoing data for any further action and then put it back on route for further encapsulation by the L2 stack or whatever. will skb_linearize() or skb_linearize_cow() be of any use , if yes how and why?

View 1 Replies View Related

Fedora Networking :: Error:Qdisc "drr" Is Classless?

Nov 8, 2010

when i was try to execute this command in shell# tc class add dev eth0 parent 2:1 classid 1:20 drr quantum 1500 Error: Qdisc "drr" is classless...kindly tell me how to solve this problem?.

View 3 Replies View Related

Networking :: Error: Qdisc "drr" Is Classless

Nov 8, 2010

when i was try to execute this command in shell. tc class add dev eth0 parent 2:1 classid 1:20 drr quantum 1500

Error: Qdisc "drr" is classless..

View 1 Replies View Related

Programming :: Convert Urb To Skbuff?

Nov 30, 2010

I am trying to write a kernel module which is the combination of the usb driver and a network driver, now whenever the data is recieved by the usb driver it will be in struct urb, but the data that is required by the net driver is sk_buff, now how do i convert a urb to sk_buff, i found something similar is being done in the phonet protocol, but i couldnt understand, howexactly this is being done. Can someone explain this code.

drivers/net/usb/cdc-phonet.c
Code:
static void rx_complete(struct urb *req)
{
struct net_device *dev = req->context;
struct usbpn_dev *pnd = netdev_priv(dev);

[Code]....

View 1 Replies View Related

Programming :: Implementing A Classless Qdisc (a Scheduler)?

May 13, 2011

i am running linux kernel 2.6.32-30 and my aim is to do packet aggregation in linux,so i created a qdisc simple one like sch_fifo.c and i wanted to put upon the dequeue function but when i attach my qdisct with tc qdisc add dev wlan0 root aggregate my screen just go black and in var/log/messages it says 31 m of stolen memory.graphic perfomance may suffer. can you somebody pls help me. Below is my dequeue function.

static struct sk_buff *aggregate_dequeue(struct Qdisc *sch)
{
struct sk_buff *skb;
struct packet_buffer *packet_buffer = {0};
packet_buffer->size=0;
skb = __skb_dequeue(&sch->q);

[Code]...

View 1 Replies View Related

Networking :: Networking Is Not Getting Out Of The Dosbox Instance \ Needs To Have Some Config In Place To Link Networking Over To Dosbox?

Jan 31, 2011

I am attempting to setup and old BBSinside of DosBOXI've built one of the DosBOX Megabuilds, with the NE2000 patch.It uses libpcap in order to piggy back on top of the system's NIC. All of the dosbox side appears to be working.My system comes up, gets the MAC address i told it to use, i can load a packet driver in dosbox, all of that seems well and good. The issue, i think, is on the linux side. It's built on a Fedora 14 box. I'm getting the feeling that networking isnt getting out of the dosbox instance. Does it seem possible that fedora needs to have some config in place to link networking over to dosbox?

View 7 Replies View Related

Fedora Networking :: Wired Networking Not Connecting In 12 With Windows Internet Connection Sharing?

Jan 16, 2011

I just want to use Internet Connection Sharing (ICS) to connect to the internet. I have done a massive amount of troubleshooting, but some of it seems to contradict itself, and the only two things that I know for sure are that it used to work, and that my Ethernet cable is not the problem. When I use Terminal utilities like ifup and dhclient it seems that it can not determine IP information, but when I try to put it in manually, the "Apply" button grays out right after I finish typing it in. When I try to connect normally, in KDE or GNOME, the icon acts like it's connecting, then instead of having the connected icon, I receive a notification that "the network has been disconnected", and it goes back to the disconnected icon.

Oh, and by the way, I know that I could probably find a workaround, but I have limited resources, and this used to work. The Linux is a Dell desktop with Fedora 12 and the Windows is a Windows 7 HP laptop.EDIT: I hope that I didn't mess something up, but I accidentally used system-network-config to try putting in the IP address there, and ended up changing it back to the original settings, but the computer is now calling it Auto Ethernet in the taskbar icon, although sudo iwconfig in the terminal still calls it eth0.

View 7 Replies View Related

Ubuntu Networking :: Find Directions On Networking Two Computers Together In Order To Share Files?

Nov 20, 2010

I am having a heck of a time trying to find directions on networking my two computers together in order to share files. I have two machines running Ubuntu 10.10 Desktop & Netbook remix.

They are both connected to my wireless router to connect to the internet.

View 9 Replies View Related

Ubuntu Networking :: Error Appearsubu@ubu-AOD255E:~$ Sudo /etc/init.d/networking Restart?

May 21, 2011

trying to bond two 3G modems but I cant Im really new in this matther so I really This is the error that appears

ubu@ubu-AOD255E:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... Ignoring unknown interface ppp0=ppp0.

[code]....

View 3 Replies View Related

Networking :: Networking Routing \ Use The Terminal To Assign Server Eth0 A Proper IP Address?

Jun 8, 2010

i know exactly what i need to do, im just not familiar enough with command line to do it properly.i have 7 computers.the first 4 are connected to a router via wireless at one end of the house. of the last 3 only 1 will be able to access the router via wireless, so it needs to share it's one wireless connection via ethernet. this computer i'm going to call 'server'server will have two IP'swlan0 192.168.1.6 this connects to the router that has internet access.eth0 i intend to have the following settingsip:192.168.0.1sub: 255.255.0eth0 will connect to a second router, where the cat5 cable goes from the server, into the internet port of the router where i will define the router's static IP:IP: 192.168.0.100sub: 255.255.255.0gateway 192.168.0.1i have then set the router IP for LAN handling as 192.168.27.1 and all ethernet connections will have a 192.168.27.x IP.

so i need to know how to, without a gui application, use the terminal to assign server eth0 a proper IP address, and tell the server to take the connection it has and share it through eth0 to supply internet for the last 2 computers via ethernet.i had it set up in this way with a windows machine being the one that had the wifi access, but i'd rather have it setup for the ubuntu server to do this task. security is imperative for these 3 remaining machines, so just getting 2 more wifi adapters for a connection to the initial router isn't an option.the 2 that connect to server do so through SSH and though server IS connected via wireless it only makes outward connections through

View 1 Replies View Related

Fedora Networking :: Networking - Connect To The Internet Using BSNL Broadband Connection

Mar 6, 2010

I have installed fedora 12 recently. after installation i tried to connect to the internet using BSNL broadband connection. I filled in the details such as IP, Netmask, Gateway and even DNS servers. In the services also I ensured that the network manager services is on. However even though my computer cannot connect to the internet. I then tried the ping test of the modem from the address 192.168.1.1 and found that the ping test is successful. Then i tried the network administrator and there I noticed something unusual.

There are two options in the devices eth0 and eth1 thats ok but the unusual; thing is that the Activate (green button), Deactivate (red button) and even the delete buttons are in the background and I cannot select them. Isthis the problem for the network connectivity.

[Code]....

I then tried the ping test of the modem from the address 192.168.1.1 and found that the ping test is successful. Then i tried the network administrator and there I noticed something unusual. There are two options in the devices eth0 and eth1 thats ok but the unusual; thing is that the Activate (green button), Deactivate (red button) and even the delete buttons are in the background and I cannot select them. Isthis the problem for the network connectivity.

View 3 Replies View Related

Ubuntu Networking :: Cable Modem Networking - Can't Connect To Each Other On The Home Network

Feb 14, 2010

I just got connected to Charter Cable Internet service a few days ago and I'm having a weird problem with my home network. Prior to this my network worked fine. On my network I have a desktop running Ubuntu 9.10/64 and Virtualbox with WinXP installed, an HTPC with Ubuntu 9.10/32 installed and a laptop dual booted with Ubuntu 9.10/32 and WinXP. The desktop and HTPC are hard wired to a wireless router and the laptop is wireless. The cable modem is hard wired to the router. I have samba installed and UFW is disabled. The problem is: with the cable modem turned off or on standby, all machines connect to each other and can transfer files, etc just fine but when I activate the cable modem all of the machines can connect to the Internet but the machines running Ubuntu can't connect to each other on the home network. If I boot the laptop into Windows, it can connect to the Linux machines just fine but if I boot it into Linux, it won't connect to the Linux machines but it can connect to the Internet and as far as the desktop, Ubuntu won't connect to the network but Windows running in the Virtualbox with bridged networking can connect to all of the machines.

View 2 Replies View Related

Ubuntu Networking :: Crosswire Or Ethernet - Make A Server Box My Entrypoint To My Networking

Mar 1, 2010

Im trying to make an ubuntu server box my entrypoint to my networking. Meaning itll function as a server, a firewall, and a gateway. so i already installed dhcp3 and a dns server.

I have 2 ethernet cards in it. So now i wonder, should i the second card into a router's modem/wan port and make the router a switch? or should i plug it into one of the routers lan ports?

View 3 Replies View Related

Ubuntu Networking :: 9.10 Updates Yesterday/Today Cause Packet Loss On Networking

Apr 9, 2010

I have 3 Dell Precision M4400 machines. After getting updates yesterday or today, I get random network dropouts like crazy, on wired or wireless. On one machine I was able to turn off ipv6 in grub and reboot, and it works now. However on the other 2 machines, still have the same problems. All 3 are running 9.10 64 bit. Is there a way I can back out the updates so the network works again? Anyone else see this behavior after updates today?

View 2 Replies View Related

Ubuntu Networking :: Networking In 10.04 - In Network Manager There Is Not Way To Select My Modem In The First Step

May 3, 2010

I'm try to create a mobile broadband connection using my Huawei E 1550 medem. but in Network manager there is not way to select my modem in the first step ( device selection step ) the drop down menu is locked. what to do ? how to configure my modem with ubuntu ?

View 1 Replies View Related

Ubuntu :: When Click On Networking Icon In System Tray - Says Networking Disabled

Jul 13, 2010

I do have internet cause I am using it on W7. The only thing that I have done different is I left the pc on over night so I guess it went to suspend for the first time. Then I powered off. After turning the pc back on and logging in I have no internet. Not even with the Ethernet plugged directly in. There is supposed to be a little blue light on when it sees the wireless and that is off. When I click on the networking icon in the system tray it says networking disabled. It shows no wireless. When I plug directly in I still get nothing. I'm using 10.04

View 2 Replies View Related

Ubuntu Networking :: Drivers For Belkin Double N And Wireless Networking USB Adapter?

Aug 3, 2010

Ok, so I am needing some drivers and I've been googling like hell to find em, however, I can never seem to find any. My adapter model is F6D6050v1.

PS: when I try sudo ndisgtk it comes up with command not found.

View 1 Replies View Related

Ubuntu Networking :: Wired Networking Not Working At Work - Fine At Home ?

Aug 24, 2010

I just started having a problem with my 10.04 laptop a few days ago, maybe Thursday, last week. When the computer is plugged into my home network (standard 192.168.1.1 sort of IPs) it works fine, but when I try to connect to my work network (130.15.90.XX) I am unable to pick up an IP. The router in my office is working fine, all the windows boxes can connect.

I've also noticed that when the computer is plugged in at work the notification icon for the networking indicates it is looking for a wireless connection (rather than the normal up/down arrows), even if wireless is deactivated

I can set a static IP in /etc/network/interfaces and everything works, so it seems to be a DHCP problem?

View 1 Replies View Related

Ubuntu Networking :: Wireless Networking On Packard Bell Easynote Tn36

Nov 7, 2010

I'm using a Packard Bell Easynote Tn36 laptop, and I'm having trouble with Ubuntu 10.10 and the wireless network card, (probably because of lack of driver). I.e. it is disabled.

How can I enable it?

I input this code:

And here is the output:

View 9 Replies View Related

Ubuntu Networking :: Network Manager Applet Enable Networking Unchecked

Apr 2, 2011

Whenever I start up my laptop i do not get a wireless connection automatically. I have to rightclick network manager applet and select enable networking. After that everything works fine untill i shutdown and restart my laptop. I would like a way to change this so that my wifi connection is working whithout having to click something first..

OS:Xubuntu 10.04 LTS!
hardware: dell inspiron 6000
nm applet: 0.8.?

View 6 Replies View Related

Ubuntu Networking :: Dual Ethernet Networking - Lose Internet Connectivity?

Apr 18, 2011

I have a server with two ethernet ports. I configured eth0 to be static, set at 10.1.10.148. I plugged in another router into the other ethernet port in order to configure that router. I configured eth1 to use dhcp. Using /etc/network/interfaces rather than gnome network manager. When I did this, I lost internet connectivity (internet routes through eth0 of course)

- Why did I lose internet connectivity?

In order to recover internet activity, I had to disconnect the new router on eth1 of course, and do sudo ifdown eth1. That wasn't enough however. After rebooting numerous times and pulling out my hair, I finally tried configuring eth0 as dhcp, rather than static, and this fixed the problem.

- Why didn't sudo ifdown eth1 solve the problem? What information was saved between reboots that somehow remembered that I plugged in the new router? Because my thinking was if /etc/network/interfaces was identical, and the network topology was identical, after a reboot everything should be restored, but it wasn't.

View 7 Replies View Related

Ubuntu Networking :: 11.04 Networking - No Ping Response - Edit .conf File?

Apr 27, 2011

I can connect to the internet and browse. I'm wired and using DHCP on a Windows network. Updating Ubuntu or downloading programs takes hours for 52MB of updates. Why? I read some articles that mention Network Manager needs to be enabled at the .conf file. Can I edit this using GUI or command line only?

View 9 Replies View Related

Ubuntu Networking :: Networking Widget Fails To Enable Wireless Card / Fix It?

Apr 30, 2011

I just upgraded to natty last night, and everything is working fine except for the network manager. I can enable and configure the wireless card via bash, but the network manager widget will not manage the wireless card.

When I first boot up, the "Enable wireless" check box is greyed out. After I enable the card via the terminal, the "Enable wireless" check box becomes ungreyed, but every time I click it, it instantly unchecks itself. I feel like Currly from the Three Stoogies. Check, uncheck, Check, uncheck.. "Slaps face repeatedly."

View 2 Replies View Related

Ubuntu Networking :: Wireless Networking On Packard Bell Easynote Tn36 - 11.04

May 1, 2011

I have Packard Bell easynote tn36 and I used to use ubuntu 10.10 and then when I upgrad it to ubuntu 11.04 the wireless doesn't work (disable) and I can't press the botton of Enable wireless.

View 9 Replies View Related

Networking :: Configure The Wireless (broadcom) On Laptop - Arch Networking Completely Gone

May 15, 2011

I until yesterday when trying to configure the wireless (broadcom) on my laptop could browse the internet and install packages normally. but now none of the connections are working

[Code]....

View 2 Replies View Related

Ubuntu Networking :: Unable To Connect To A Small Number Of Random Websites: Otherwise Networking Is Fine

Dec 29, 2010

I was having no problems (that I knew of) browsing the web since installing Ubuntu 10.10 a week or so ago. I was previously trialling Win7 as my customers will likely be using that in the future. Then I wanted to go to internode.on.net. Got the following: Quote: Firefox can't establish a connection to the server at internode.on.net. or Quote: Oops! Google Chrome could not connect to internode.on.net

As it was just after Christmas I thought it must be down, for upgrades or maintenance etc. I later tried to go to Freebsd.org; same error. I've been having a small number of other websites give the same error. I thought nothing of this until I tried it on my wife's macpro. I could log onto all the websites I wanted to and none gave any indication of having been down. Both boxes are on the same adsl connection. I still can't access internode or freebsd on 10.10 yet have been able to access every website on OSX. Now, I was only looking at them for info but am worried I won't be able to access something important. (so far everything I 'need' is working)

ping just drops out. edit: weirdest thing! I just retried and now can not emulate the problem for internode. freebsd still won't show. that is less than five minutes between problems and resolution! I hadn't even posted! But I still would like to have an idea of what is going on. Here is the ping error for freebsd: Quote:

[Code]...

View 9 Replies View Related

Networking :: Feasible / Desirable To Setup A Network Of Virtual Machines To Use As An Environment To Learn Networking?

Nov 18, 2010

I've been learning linux for a while now with half an eye on making a career out of it in future. One sizeable gap in my knowledge at the moment is networking. Is it feasible/desirable to set up a network of virtual machines to use as an environment to learn networking? My budget is non-existent so I was hoping to be able to get a basic understanding of the principles from installing a few desktops, a virtual gateway etc on VMware workstation on my laptop, and doing a lot of reading online.

Is this feasible, or will I just end up learning about virtual networks instead of real ones? Also how much power would be required, because my 3GB RAM lappy has just gone bang and all I have now is a (new) 1GB RAM lappy.

View 10 Replies View Related

CentOS 5 Networking :: Install The Latest Kmod-r8168 Rpm - It Failed To Enable The Networking Support

Dec 30, 2010

I had the elrepo kmod-r8168 driver running smooth for a while on my development box.
Yesterday, I did a clean install on it and when I tried to install the latest kmod-r8168 rpm, it failed to enable the networking support:

# yum --enablerepo=elrepo install kmod-r8168

The install performed all proper steps to disable the 8169 driver, I double checked to be sure.This is not a connectivity issue. If I remove the kmod-r8168 rpm, reboot the server and run the ifconfig eth0 up to activate the interface, everything works as expected. I use the latest kernel (2.6.18-194.26.1.el5 x86_64).

First, I performed a clean install, activated the eth0 and did a yum update, then installed the kmod-r8168 with yum. Then, I reinstalled the OS again, activated the eth0 and installed the kmod-r8168 on a 5.5 CD based kernel, same fail results. The only hiccup is: every time I start the box, I have to activate the eth0 interface (with default CentOS 8169 driver):

# ifconfig eth0 192.168.1.3
# ping -c 3 192.168.1.1 (no packets lost)
# ifconfig eth0 up

Once I do this, I have network connectivity.

View 3 Replies View Related

Ubuntu Networking :: Samba And Windows Networking - Read / Write Access To All Folders Contents From Both Machines

Mar 9, 2011

Ive managed to install samba, I've shared a folder. I can access from a Windows 7 machine via \ubuntupublic. I can put files in the folder form the ubuntu machine and edit them on the windows box. I can put files in the folder/share from the Windows box but then I cannot edit them on the Ubuntu machine (they are read only and have a "Lock" over them). I can fix this by going to the properties of the file/folder in Windows and manually assigning "Everybody" full control (then the lock disappears and all is well.) I want read/write access to all the folders contents from both machines all the time (security is NOT a concern I WANT the permissions wide open) what am I doing wrong?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved