inernal ip addresses representation functions. More...
#include <stdlib.h>#include <stdio.h>#include "ip_addr.h"#include "dprint.h"#include "mem/mem.h"#include "resolve.h"#include "trim.h"
Go to the source code of this file.
Module: SIP-router core
Definition in file ip_addr.c.
| char* get_proto_name | ( | unsigned int | proto | ) |
| proto | - protocol number |
Definition at line 340 of file ip_addr.c.
Referenced by core_sockets_list().

| int mk_net | ( | struct net * | n, | |
| struct ip_addr * | ip, | |||
| struct ip_addr * | mask | |||
| ) |
This function will not print any error messages or allocate memory (as opposed to mk_new_net() above).
| n | - destination net structure | |
| ip | ||
| mask |
Definition at line 124 of file ip_addr.c.
Referenced by mk_net_bitlen(), and mk_net_str().

| int mk_net_bitlen | ( | struct net * | n, | |
| struct ip_addr * | ip, | |||
| unsigned int | bitlen | |||
| ) |
This function will not print any error messages or allocate memory (as opposed to mk_new_net_bitlen() above).
| n | - destination net structure | |
| ip | ||
| bitlen |
Definition at line 152 of file ip_addr.c.
References mk_net().
Referenced by mk_net_str().


| int mk_net_str | ( | struct net * | dst, | |
| str * | s | |||
| ) |
1.7.1