[Click] Problems Creating a Linux-level Element

Koen Pollentier koen.pollentier at intec.ugent.be
Wed May 25 04:34:41 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 


betamaz wrote:

> My problem is that im working based on the linux-level version of
> FastUDPFlows. Therefore, I get compile errors when including
> libraries such as #include <arpa/inet.h> I want to use functions
> like:
>
> int inet_aton(const char *cp, struct in_addr *inp); char
> *inet_ntoa(struct in_addr in); uint32_t htonl(uint32_t hostlong);
>
> I can't find how to use these functions in linux-level? Does click
> have its own version? Is there any other route to go then making an
> element for userlevel?

http://pdos.csail.mit.edu/click/doc/progman.html#IPAddress might be
usefull, I guess.
And when parsing configuration string,
http://pdos.csail.mit.edu/click/doc/progman.html#Parsing%20IP%20Addresses
can be usefull. (Well, actually the whole document is usefull)

K

- --
Koen Pollentier
Department of Information Technology (INTEC)
Ghent University - IMEC
Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium
koen.pollentier at intec.UGent.be
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFClDihpJKzG6QOr34RAvKcAKCTJWjj/0ROe9nDYpUzYWTni3BBPwCgjky7
MtcV5fM4k5yuBJiEO5/EEFY=
=ox8I
-----END PGP SIGNATURE-----



More information about the click mailing list