[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 00397) Re: IPv6- [usagi-announce] kernel diffs



Hello Karthik,

The problem is that these symbols are not exported by the kernel or IPv6
module, depending
on how you configured IPv6,  and hence, they couldn't be resolved when you
run either insmod
or depmod of mip6.

If you have built IPv6 as part of the proper kernel, you could simply edit
'kernel/ksyms.c'
file  with the exported unresolved symbols. Also, you need to place a
header file in
include/linux directory.

I haven't created any patch against the kernel for the MIP6 patch yet but
until then, you
could use make the changes as shown below.

Thanks,
Venkat

----------------------------------------------------------------
Venkata R Jagana
IBM Beaverton
jagana@xxxxxxxxxx
Tel: (503) 578 3430 T/L 775-3430
-----------------------------------------------------------------

Make the following changes to kernel/ksyms.c file.

#include <linux/ipv6_exports.h>

/* IPv6 symbols */

EXPORT_SYMBOL(addrconf_del_ifaddr);
EXPORT_SYMBOL(rt6_get_dflt_router);
EXPORT_SYMBOL(icmpv6_statistics);
EXPORT_SYMBOL(mipv6_functions);
EXPORT_SYMBOL(ip6_routing_table);
EXPORT_SYMBOL(in6_dev_finish_destroy);
EXPORT_SYMBOL(ipv6_skip_exthdr);
EXPORT_SYMBOL(ip6_build_xmit);
EXPORT_SYMBOL(addrconf_add_ifaddr);
EXPORT_SYMBOL(mipv6_invalidate_calls);
EXPORT_SYMBOL(nd_tbl);
EXPORT_SYMBOL(ipv6_get_saddr);
EXPORT_SYMBOL(inet6_add_protocol);
EXPORT_SYMBOL(ipv6_get_lladdr);
EXPORT_SYMBOL(ndisc_send_na);
EXPORT_SYMBOL(inet6_del_protocol);
EXPORT_SYMBOL(ipv6_rcv);
EXPORT_SYMBOL(rt6_lookup);
EXPORT_SYMBOL(ndisc_send_rs);
EXPORT_SYMBOL(ip6_route_output);
EXPORT_SYMBOL(fib6_clean_tree);
EXPORT_SYMBOL(ipv6_chk_addr);
EXPORT_SYMBOL(ipv6_dev_mc_dec);
EXPORT_SYMBOL(ipv6_dev_mc_inc);
EXPORT_SYMBOL(inet6_family_ops);


ipv6_exports.h file:

#ifndef _IPV6_EXPORTS_H
#define _IPV6_EXPORTS_H

#include <linux/config.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/net.h>
#include <linux/route.h>
#include <linux/netdevice.h>
#include <linux/in6.h>
#include <linux/init.h>
#include <linux/netlink.h>
#include <linux/if_arp.h>

#ifdef  CONFIG_PROC_FS
#include <linux/proc_fs.h>
#endif

#include <net/snmp.h>
#include <net/ipv6.h>
#include <net/ip6_fib.h>
#include <net/ip6_route.h>
#include <net/ndisc.h>
#include <net/addrconf.h>
#include <net/tcp.h>
#include <linux/rtnetlink.h>

#include <asm/uaccess.h>

#ifdef CONFIG_SYSCTL
#include <linux/sysctl.h>
#endif

#include <net/mipglue.h>

extern int addrconf_del_ifaddr(void *arg);
extern struct rt6_info *rt6_get_dflt_router(struct in6_addr *addr, struct
net_device *dev);
extern struct icmpv6_mib icmpv6_statistics[];
extern struct mipv6_callable_functions mipv6_functions;
extern void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
                   struct in6_addr *daddr, struct in6_addr *solicited_addr,
                   int router, int solicited, int override, int inc_opt);
extern struct net_proto_family inet6_family_ops;

#endif /* _IPV6_EXPORTS_H */





                                                                                                                    
                    Karthik Prabhakar                                                                               
                    <ipv6@xxxxxxxxxxxx       To:     Yuji Sekiya <sekiya@xxxxxxxxxxxxxx>                            
                    p.hp.com>                cc:     usagi-users@xxxxxxxxxxxxxx                                     
                    Sent by:                 Subject:     (usagi-users 00388) Re: IPv6- [usagi-announce] kernel     
                    karthik@xxxxxxxxxx        diffs                                                                 
                    orp.hp.com                                                                                      
                                                                                                                    
                                                                                                                    
                    04/04/01 12:31 AM                                                                               
                    Please respond to                                                                               
                    usagi-users                                                                                     
                                                                                                                    
                                                                                                                    




Sorry, my oversight. Found it under usagi/kernel/usagi/net/

Seems to work fine now (except for the mobile_ip6 module, which
reports a number of unresolved symbols, but that's for a different
day's troubleshooting :)

thanks!
karthik


depmod: *** Unresolved symbols in
/lib/modules/2.4.3/kernel/net/ipv6/mobile_ip6/mobile_ip6.o
depmod:   addrconf_del_ifaddr
depmod:   rt6_get_dflt_router
depmod:   icmpv6_statistics
depmod:   mipv6_functions
depmod:   ip6_routing_table
depmod:   in6_dev_finish_destroy
depmod:   ipv6_skip_exthdr
depmod:   ip6_build_xmit
depmod:   addrconf_add_ifaddr
depmod:   mipv6_invalidate_calls
depmod:   nd_tbl
depmod:   ipv6_get_saddr
depmod:   inet6_add_protocol
depmod:   ipv6_get_lladdr
depmod:   ndisc_send_na
depmod:   inet6_del_protocol
depmod:   ipv6_rcv
depmod:   rt6_lookup
depmod:   ndisc_send_rs
depmod:   ip6_route_output
depmod:   fib6_clean_tree
depmod:   ipv6_chk_addr
depmod:   ipv6_dev_mc_dec
depmod:   ipv6_dev_mc_inc
depmod:   inet6_family_ops



Yuji Sekiya wrote:
>
> At Tue, 03 Apr 2001 17:47:44 -0700,
> Karthik Prabhakar <ipv6@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hello,
>
> Which patch do you get ?
> I have tried yesterday's and today's patches and all of them work fine
for me.
>
>         linux22-2.2.19-usagi-20010404.patch
>         linux24-2.4.3-usagi-20010404.patch
>         linux22-2.2.19-usagi-20010403.patch
>         linux24-2.4.3-usagi-20010403.patch
>
> If you get a patch other than listed, please get again.
>
> Thanks.
>
> -- Yuji Sekiya