lkml.org 
[lkml]   [1999]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectstruct device

Hello,

I am trying to port sifi (http://www.ifi.unizh.ch/ikm/SINUS/firewall/) to
Linux 2.2.

One of the things that need porting is the use of obsolete pa_xxxx fields
in struct device :

/* dev_base is taken from <linux/netdevice.h> */

int sf_local(__u32 addr)
{
struct device *pdev;

for(pdev = dev_base; pdev; pdev = pdev->next) {
if(pdev->pa_addr == addr)
return 1;
}
return 0;
}

Ufortunately, i cannot find a clear and consistent example of replacing
pa_addr etc usage by something similar in the Linux kernel.
(perhaps pdev->ip_ptr->ifa_list ?).

--

Christos Ricudis ricudiis@paiko.gr
I am a target. Please bomb me at N40 33.765' E22 55.130' Alt. 69ft


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:1.072 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site