On Monday 2009-03-23 22:10, Kunsheng Chen wrote: > >Hello everyone, > >I am looking for some functions to convert ip address in string format into= > unsigned int and versa vice. > >Does it have some function like 'inet_addr' inside kernel for that?=A0 Basi= >cally what I want to do is conver iphdr->s_addr into a String type, which w= >ould give me a readable ip address for debugging. printk(KERN_DEBUG "%pI6", &ih->saddr); /* 2.6.29+ */ printk(KERN_DEBUG NIP6_FMT, NIP6(ih->saddr)); /* older */ -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html