sip-router
4 years agoMakefile.defs: version set to 5.0.0-dev3
Daniel-Constantin Mierla [Wed, 20 Apr 2016 10:04:46 +0000 (12:04 +0200)]
Makefile.defs: version set to 5.0.0-dev3

4 years agoMakefile.defs: detect kfreebsd OS and set its default compile flags
Daniel-Constantin Mierla [Wed, 20 Apr 2016 10:02:09 +0000 (12:02 +0200)]
Makefile.defs: detect kfreebsd OS and set its default compile flags

- combine the options of Linux with FreeBSD to use kqueue if available
- reported by Victor Seva, GH #576

4 years agocore: remove ending parenthesis in ifdef condition
Daniel-Constantin Mierla [Wed, 20 Apr 2016 09:59:25 +0000 (11:59 +0200)]
core: remove ending parenthesis in ifdef condition

warning: ISO C99 requires whitespace after the macro name
sched_yield.h:34:20: warning: extra tokens at end of #ifndef directive
 #ifndef sched_yield()

- reported by Victore Seva, GH #576

4 years agoerlang: fix parsing function params
Seudin Kasumovic [Wed, 20 Apr 2016 09:36:40 +0000 (11:36 +0200)]
erlang: fix parsing function params

- remove double parsing function params
- free memory used in parsing params

4 years agoerlang: fix memory leak in debug macro
Seudin Kasumovic [Wed, 20 Apr 2016 09:10:39 +0000 (11:10 +0200)]
erlang: fix memory leak in debug macro

- free temporary used encoding buffer

4 years agoerlang: fix uninitialized member variable
Seudin Kasumovic [Mon, 18 Apr 2016 09:30:23 +0000 (11:30 +0200)]
erlang: fix uninitialized member variable

- avoid conditional jump on uninitialized value

4 years agodialog Update README, add section IDs for parameters and functions, fix a few typos
Olle E. Johansson [Tue, 19 Apr 2016 20:18:35 +0000 (22:18 +0200)]
dialog Update README, add section IDs for parameters and functions, fix a few typos

4 years agodialog Update README with explanation of in-dialog request behaviour
Olle E. Johansson [Tue, 19 Apr 2016 19:24:31 +0000 (21:24 +0200)]
dialog Update README with explanation of in-dialog request behaviour

4 years agocore: kemi - implemented embedded sub-module hdr
Daniel-Constantin Mierla [Tue, 19 Apr 2016 19:12:16 +0000 (21:12 +0200)]
core: kemi - implemented embedded sub-module hdr

4 years agoapp_python: exported special sub-module KSR.pv
Daniel-Constantin Mierla [Tue, 19 Apr 2016 17:44:05 +0000 (19:44 +0200)]
app_python: exported special sub-module KSR.pv

- pv.get() can return int or string, not following the pattern
  from kemi generic function interface

4 years agoapp_lua: exported special sub-module KSR.pv
Daniel-Constantin Mierla [Tue, 19 Apr 2016 17:41:29 +0000 (19:41 +0200)]
app_lua: exported special sub-module KSR.pv

- pv.get() can return int or string, not following the pattern from kemi
  generic function interface

4 years agoapp_python: avoid aquiring python eval lock for nested route blocks
Daniel-Constantin Mierla [Tue, 19 Apr 2016 12:59:52 +0000 (14:59 +0200)]
app_python: avoid aquiring python eval lock for nested route blocks

4 years agoapp_python: proper implementation of reading the parameters
Daniel-Constantin Mierla [Tue, 19 Apr 2016 12:35:03 +0000 (14:35 +0200)]
app_python: proper implementation of reading the parameters

- parameters passed from python can be only read all at once

4 years agopython: use rewrite_uri() instead of core action for updating r-uri
Daniel-Constantin Mierla [Tue, 19 Apr 2016 12:34:10 +0000 (14:34 +0200)]
python: use rewrite_uri() instead of core action for updating r-uri

4 years agoapp_python: implementation of kemi interpreter for python
Daniel-Constantin Mierla [Tue, 19 Apr 2016 11:10:34 +0000 (13:10 +0200)]
app_python: implementation of kemi interpreter for python

4 years agodialog Document shortest ka_interval
Olle E. Johansson [Tue, 19 Apr 2016 12:11:33 +0000 (14:11 +0200)]
dialog Document shortest ka_interval

4 years agohtable: refreshed the readme file
Daniel-Constantin Mierla [Tue, 19 Apr 2016 08:41:02 +0000 (10:41 +0200)]
htable: refreshed the readme file

4 years agohtable: coherent indentation and whitespacing
Daniel-Constantin Mierla [Tue, 19 Apr 2016 08:40:20 +0000 (10:40 +0200)]
htable: coherent indentation and whitespacing

4 years agohtable: updated the list of exported variables
Daniel-Constantin Mierla [Tue, 19 Apr 2016 08:39:55 +0000 (10:39 +0200)]
htable: updated the list of exported variables

4 years agoapp_python: added script to generate the files for static exports table
Daniel-Constantin Mierla [Tue, 19 Apr 2016 07:20:03 +0000 (09:20 +0200)]
app_python: added script to generate the files for static exports table

4 years agoapp_python: added the file to store the static exports table
Daniel-Constantin Mierla [Tue, 19 Apr 2016 07:18:31 +0000 (09:18 +0200)]
app_python: added the file to store the static exports table

- kamailio functions will be associated with entries from exports table,
  being looked up by index

4 years agoapp_python: rework to use a static exports table
Daniel-Constantin Mierla [Tue, 19 Apr 2016 07:17:06 +0000 (09:17 +0200)]
app_python: rework to use a static exports table

- not possible to set the object index function

4 years agocore: kemi - renamed reminiscent lua functions
Daniel-Constantin Mierla [Mon, 18 Apr 2016 22:32:28 +0000 (00:32 +0200)]
core: kemi - renamed reminiscent lua functions

4 years agoMerge pull request #573 from adubovikov/master
Alexandr Dubovikov [Mon, 18 Apr 2016 16:33:12 +0000 (18:33 +0200)]
Merge pull request #573 from adubovikov/master

modules/sipcapture: removed wrong character

4 years agomodules/sipcapture: removed wrong character 573/head
Alexandr Dubovikov [Mon, 18 Apr 2016 16:30:33 +0000 (18:30 +0200)]
modules/sipcapture: removed wrong character

4 years agoapp_python: the initial foundation to use Python for kemi config interpreter
Daniel-Constantin Mierla [Mon, 18 Apr 2016 15:23:11 +0000 (17:23 +0200)]
app_python: the initial foundation to use Python for kemi config interpreter

- to allow writing kamailio routing logic in Python

4 years agocore: condition to stop looking up exported functions by name
Daniel-Constantin Mierla [Mon, 18 Apr 2016 15:22:31 +0000 (17:22 +0200)]
core: condition to stop looking up exported functions by name

4 years agoapp_python: declaration of global vars moved in c files
Daniel-Constantin Mierla [Mon, 18 Apr 2016 13:24:34 +0000 (15:24 +0200)]
app_python: declaration of global vars moved in c files

- declared as extern in h files
- prefixed the names to avoid eventual conflicts when using common words
  for var names

4 years agoapp_python: register the module as a kemi config interpreter
Daniel-Constantin Mierla [Mon, 18 Apr 2016 13:05:22 +0000 (15:05 +0200)]
app_python: register the module as a kemi config interpreter

4 years agoapp_python: function to allow optional execution of python method
Daniel-Constantin Mierla [Mon, 18 Apr 2016 12:55:02 +0000 (14:55 +0200)]
app_python: function to allow optional execution of python method

4 years agoMerge pull request #572 from adubovikov/master
Alexandr Dubovikov [Mon, 18 Apr 2016 15:19:27 +0000 (17:19 +0200)]
Merge pull request #572 from adubovikov/master

modules/sipcapture fixed rtpinfo report for SNOM

4 years agomodules/sipcapture fixed rtpinfo report for SNOM 572/head
Alexandr Dubovikov [Mon, 18 Apr 2016 15:18:57 +0000 (17:18 +0200)]
modules/sipcapture fixed rtpinfo report for SNOM

4 years agoMerge pull request #571 from adubovikov/master
Alexandr Dubovikov [Mon, 18 Apr 2016 12:50:06 +0000 (14:50 +0200)]
Merge pull request #571 from adubovikov/master

module/sipcapture fixed type for rtpagent report

4 years agofixed type for rtpagent report 571/head
Alexandr Dubovikov [Mon, 18 Apr 2016 12:49:14 +0000 (14:49 +0200)]
fixed type for rtpagent report

4 years agoapp_python: updated include of app_python_mod.h
Daniel-Constantin Mierla [Mon, 18 Apr 2016 12:16:50 +0000 (14:16 +0200)]
app_python: updated include of app_python_mod.h

4 years agoapp_python: renamed main files to match module name
Daniel-Constantin Mierla [Mon, 18 Apr 2016 12:13:03 +0000 (14:13 +0200)]
app_python: renamed main files to match module name

4 years agohttp_client Add note about DNS in todo list
Olle E. Johansson [Mon, 18 Apr 2016 12:06:23 +0000 (14:06 +0200)]
http_client Add note about DNS in todo list

4 years agohttp_client Clarify DNS resolver use for CURL
Olle E. Johansson [Mon, 18 Apr 2016 11:43:15 +0000 (13:43 +0200)]
http_client Clarify DNS resolver use for CURL

4 years agoapp_python: fix of buf memory allocation size for chars
Daniel-Constantin Mierla [Mon, 18 Apr 2016 10:52:25 +0000 (12:52 +0200)]
app_python: fix of buf memory allocation size for chars

4 years agoapp_python: coherent indetation and whitespacing
Daniel-Constantin Mierla [Mon, 18 Apr 2016 10:35:36 +0000 (12:35 +0200)]
app_python: coherent indetation and whitespacing

4 years agoregistrar Fix typo in README
Olle E. Johansson [Fri, 15 Apr 2016 20:50:42 +0000 (22:50 +0200)]
registrar Fix typo in README

4 years agopua_xmpp Remove svn IDs and history
Olle E. Johansson [Fri, 15 Apr 2016 19:39:31 +0000 (21:39 +0200)]
pua_xmpp Remove svn IDs and history

4 years agoMerge pull request #568 from linuxmaniac/vseva/fix_516
Victor Seva [Fri, 15 Apr 2016 07:25:28 +0000 (09:25 +0200)]
Merge pull request #568 from linuxmaniac/vseva/fix_516

app_perl: Fix "use UNIVERSAL" is a fatal error since perl 5.22

4 years agoapp_perl: Fix "use UNIVERSAL" is a fatal error since perl 5.22 568/head
Victor Seva [Fri, 15 Apr 2016 07:09:08 +0000 (09:09 +0200)]
app_perl: Fix "use UNIVERSAL" is a fatal error since perl 5.22

* Author: Julián Moreno Patiño <julian@debian.org>
* Fix #516
* from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821039

4 years agoMakefile.defs: version set to 5.0.0-dev2
Daniel-Constantin Mierla [Fri, 15 Apr 2016 07:01:39 +0000 (09:01 +0200)]
Makefile.defs: version set to 5.0.0-dev2

4 years agocore: execute onsend_route callback via kemi
Daniel-Constantin Mierla [Fri, 15 Apr 2016 07:00:53 +0000 (09:00 +0200)]
core: execute onsend_route callback via kemi

4 years agocore: set actions context for running kemi reply_route callback
Daniel-Constantin Mierla [Thu, 14 Apr 2016 19:23:52 +0000 (21:23 +0200)]
core: set actions context for running kemi reply_route callback

4 years agotm: lookup if kemi engine is set for onreply_route callback
Daniel-Constantin Mierla [Thu, 14 Apr 2016 19:23:15 +0000 (21:23 +0200)]
tm: lookup if kemi engine is set for onreply_route callback

4 years agoapp_lua: backup and restore the sip msg structure in lua env
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:45:44 +0000 (18:45 +0200)]
app_lua: backup and restore the sip msg structure in lua env

- nested execution of callbacks can happen (e.g., branch route callback
  executed inside the request_route callback)

4 years agocore: kemi - callbacks cache index stored in shared memory
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:38:05 +0000 (18:38 +0200)]
core: kemi - callbacks cache index stored in shared memory

- reloads can change the values

4 years agotm: init actions context for kemi execution
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:16:32 +0000 (18:16 +0200)]
tm: init actions context for kemi execution

- needed to catch drop in onreply/branch route callbacks

4 years agoapp_lua: safety checks for mandatory lua env attributes
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:16:02 +0000 (18:16 +0200)]
app_lua: safety checks for mandatory lua env attributes

4 years agocore: kemi - log message for drop action
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:12:08 +0000 (18:12 +0200)]
core: kemi - log message for drop action

4 years agosl: use same function names as for cfg in kemi exports
Daniel-Constantin Mierla [Thu, 14 Apr 2016 15:15:47 +0000 (17:15 +0200)]
sl: use same function names as for cfg in kemi exports

4 years agotm: implemented the execution of branch failure route callback via kemi
Daniel-Constantin Mierla [Thu, 14 Apr 2016 13:13:57 +0000 (15:13 +0200)]
tm: implemented the execution of branch failure route callback via kemi

4 years agotm: implemented the execution of onreply_route callback via kemi
Daniel-Constantin Mierla [Thu, 14 Apr 2016 12:53:27 +0000 (14:53 +0200)]
tm: implemented the execution of onreply_route callback via kemi

4 years agocore: kemi - implementation of a drop() alternative
Daniel-Constantin Mierla [Wed, 13 Apr 2016 22:06:05 +0000 (00:06 +0200)]
core: kemi - implementation of a drop() alternative

- it doesn't stop the embedded interpreter, but it can trigger the
  drop() effects (e.g., dropping a branch)

4 years agotm: implemented the execution of branch_route callback via kemi
Daniel-Constantin Mierla [Wed, 13 Apr 2016 22:05:30 +0000 (00:05 +0200)]
tm: implemented the execution of branch_route callback via kemi

4 years agocore: typedef'ed the action context structure
Daniel-Constantin Mierla [Wed, 13 Apr 2016 22:05:04 +0000 (00:05 +0200)]
core: typedef'ed the action context structure

4 years agotm: implementation of alternative failure_route callback execution via kemi
Daniel-Constantin Mierla [Wed, 13 Apr 2016 21:32:31 +0000 (23:32 +0200)]
tm: implementation of alternative failure_route callback execution via kemi

4 years agoapp_lua: extend the kemi engine to handle the routing block types
Daniel-Constantin Mierla [Wed, 13 Apr 2016 21:30:38 +0000 (23:30 +0200)]
app_lua: extend the kemi engine to handle the routing block types

4 years agotm: export several functions to kemi
Daniel-Constantin Mierla [Wed, 13 Apr 2016 20:43:32 +0000 (22:43 +0200)]
tm: export several functions to kemi

4 years agoapp_lua: reset the values for api parameters
Daniel-Constantin Mierla [Wed, 13 Apr 2016 20:43:06 +0000 (22:43 +0200)]
app_lua: reset the values for api parameters

4 years agomodules/ims_dialog: change logging ERR to DBG
jaybeepee [Thu, 14 Apr 2016 10:32:11 +0000 (12:32 +0200)]
modules/ims_dialog: change logging ERR to DBG

4 years agomodules/ims_registrar_scscf: reset t pointer if tx not found - avoid crash
jaybeepee [Thu, 14 Apr 2016 10:31:07 +0000 (12:31 +0200)]
modules/ims_registrar_scscf: reset t pointer if tx not found - avoid crash

4 years agotm Add improved documentation for t_replicate
Olle E. Johansson [Thu, 14 Apr 2016 08:07:53 +0000 (10:07 +0200)]
tm Add improved documentation for t_replicate

4 years agoimc Minor updates to documentation
Olle E. Johansson [Wed, 13 Apr 2016 18:47:02 +0000 (20:47 +0200)]
imc Minor updates to documentation

4 years agoimc Remove SVN ID's and history
Olle E. Johansson [Wed, 13 Apr 2016 18:36:31 +0000 (20:36 +0200)]
imc Remove SVN ID's and history

4 years agoapp_lua: implemented execution of kemi api functions with 3 params
Daniel-Constantin Mierla [Wed, 13 Apr 2016 14:36:45 +0000 (16:36 +0200)]
app_lua: implemented execution of kemi api functions with 3 params

4 years agocore: kemi - added the index for callback names
Daniel-Constantin Mierla [Wed, 13 Apr 2016 14:19:39 +0000 (16:19 +0200)]
core: kemi - added the index for callback names

- will keep the mapping between the embedded api callabcks and
  transaction events

4 years agotm: shifted back indentation with one tab
Daniel-Constantin Mierla [Wed, 13 Apr 2016 10:44:14 +0000 (12:44 +0200)]
tm: shifted back indentation with one tab

4 years agocore: kemi - commented relevant defines and structure members
Daniel-Constantin Mierla [Tue, 12 Apr 2016 13:15:04 +0000 (15:15 +0200)]
core: kemi - commented relevant defines and structure members

4 years agoerlang: fix compile warning unused but set variable
Seudin Kasumovic [Tue, 12 Apr 2016 22:34:41 +0000 (00:34 +0200)]
erlang: fix compile warning unused but set variable

- get rid of this variable

4 years agoerlang: fix register server process with the local name server epmd
Seudin Kasumovic [Tue, 12 Apr 2016 22:15:56 +0000 (00:15 +0200)]
erlang: fix register server process with the local name server epmd

- use correct alive name when number of C nodes greater then 1
- fix error check on register server process

4 years agoMerge pull request #565 from kamailio/sd_journal_send_xavp
Camille Oudot [Tue, 12 Apr 2016 12:55:55 +0000 (14:55 +0200)]
Merge pull request #565 from kamailio/sd_journal_send_xavp

new function in log_systemd module to log structured events

4 years agoapp_lua: option to silently try to run a lua function
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:43:52 +0000 (14:43 +0200)]
app_lua: option to silently try to run a lua function

- if lua function not found, do not write error message
- some routing blocks are optional (e.g., reply_route{}) and their
  equivalent may not be defined

4 years agocore: kemi - skip "native" and "default" config engines names
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:18:19 +0000 (14:18 +0200)]
core: kemi - skip "native" and "default" config engines names

- reserved for the existing kamailio.cfg interpreter

4 years agoapp_lua: implemented alternative config file interpreting engine
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:16:44 +0000 (14:16 +0200)]
app_lua: implemented alternative config file interpreting engine

- can be used to execute routing logic for SIP requests and responses by
  using next statement in kamailio.cfg:

  cfgengine="lua"

4 years agocore: ability to run alternative request_route and reply_route handlers
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:14:15 +0000 (14:14 +0200)]
core: ability to run alternative request_route and reply_route handlers

- they can be offered by the embedded interpreters
- at this moment app_lua can execute functions from the script loaded
  with param 'load':
  - instead of request_route it executes ksr_request_route()
  - instead of reply_route it executes ksr_reply_route()

4 years agocore: cfgengine - new global parameter/statement
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:10:28 +0000 (14:10 +0200)]
core: cfgengine - new global parameter/statement

- set the config interpreter engine, can be used like:

  cfgengine="name"
  cfgengine "name"

If name is "native" or "default", it expects to have in native config
interpreter for routing logic.

The name can be the identifier of an embedded language interpreter, such
as "lua" which is registered by the app_lua module:

  cfgengine "lua"

4 years agocore: receive.c coherent indentation
Daniel-Constantin Mierla [Tue, 12 Apr 2016 11:48:22 +0000 (13:48 +0200)]
core: receive.c coherent indentation

4 years agolog_systemd: refresh README 565/head
Camille Oudot [Mon, 11 Apr 2016 09:34:53 +0000 (11:34 +0200)]
log_systemd: refresh README

4 years agolog_systemd: new function `sd_journal_send_xavp`
Camille Oudot [Thu, 7 Apr 2016 16:45:10 +0000 (18:45 +0200)]
log_systemd: new function `sd_journal_send_xavp`

creates a structured log event in journald

4 years agocore: foundation for config interpreter engine via kemi
Daniel-Constantin Mierla [Tue, 12 Apr 2016 10:21:56 +0000 (12:21 +0200)]
core: foundation for config interpreter engine via kemi

- to allow execution of a config file written in an embedded language

4 years agosl: export embedded api functions via mod_register()
Daniel-Constantin Mierla [Tue, 12 Apr 2016 06:19:03 +0000 (08:19 +0200)]
sl: export embedded api functions via mod_register()

4 years agoapp_lua: register the functions exported by modules for kemi
Daniel-Constantin Mierla [Tue, 12 Apr 2016 06:18:24 +0000 (08:18 +0200)]
app_lua: register the functions exported by modules for kemi

4 years agocore: kemi - index embedded api functions by module
Daniel-Constantin Mierla [Tue, 12 Apr 2016 06:17:34 +0000 (08:17 +0200)]
core: kemi - index embedded api functions by module

4 years agodialog: fix $dlg(from_bindaddr) getter
Camille Oudot [Mon, 11 Apr 2016 16:53:05 +0000 (18:53 +0200)]
dialog: fix $dlg(from_bindaddr) getter

4 years agoapp_lua: use kamailio embeded interface to export KSR object
Daniel-Constantin Mierla [Mon, 11 Apr 2016 16:01:44 +0000 (18:01 +0200)]
app_lua: use kamailio embeded interface to export KSR object

- KSR is an hash table exported to Lua to host functions from Kamailio
  core and modules
- now dbg(txt), err(txt) and info(txt) were exported
- in a lua script, can be used like:

KSR.info("message from lua\n");

4 years agocore: added generic interface for kamailio embedded api
Daniel-Constantin Mierla [Mon, 11 Apr 2016 16:00:46 +0000 (18:00 +0200)]
core: added generic interface for kamailio embedded api

4 years agodialog: fix $dlg(from_bindaddr) name parsing
Camille Oudot [Mon, 11 Apr 2016 15:02:03 +0000 (17:02 +0200)]
dialog: fix $dlg(from_bindaddr) name parsing

4 years agoMakefile.rules: added target tags as alias for target TAGS
Daniel-Constantin Mierla [Mon, 11 Apr 2016 10:57:31 +0000 (12:57 +0200)]
Makefile.rules: added target tags as alias for target TAGS

4 years agoapp_lua: cleanup of indentation
Daniel-Constantin Mierla [Mon, 11 Apr 2016 10:53:22 +0000 (12:53 +0200)]
app_lua: cleanup of indentation

4 years agohtable Minor typo fixup
Olle E. Johansson [Fri, 8 Apr 2016 13:20:28 +0000 (15:20 +0200)]
htable Minor typo fixup

4 years agoMakefile.defs: re-enable mem join define
Daniel-Constantin Mierla [Fri, 8 Apr 2016 13:10:55 +0000 (15:10 +0200)]
Makefile.defs: re-enable mem join define

- lost when introduced the option to select the memory manager by
  command line parameter -x

4 years agortpengine: Update doku for 'unidirectional' flag
Stefan Mititelu [Fri, 8 Apr 2016 10:48:17 +0000 (13:48 +0300)]
rtpengine: Update doku for 'unidirectional' flag

Added new 'unidirectional' flag in Sipwise rtpengine.

4 years agocore: new global parameter log_prefix_mode
Daniel-Constantin Mierla [Thu, 7 Apr 2016 07:39:44 +0000 (09:39 +0200)]
core: new global parameter log_prefix_mode

- if set to 0 (default), then log_prefix is evaluated when the sip
  message is received and then reused (recommended if the log_prefix has
  only variables that have same value for same message). This is the
  current behaviour of log_prefix evaluation.
- if set to 1, then the log prefix is evaluated before/after each config
  action (needs to be set when the log_prefix has variables that are
  different based on the context of config execution, e.g., $cfg(line))

4 years agodialog: rested dialog keeplive failure counters on good reply
Daniel-Constantin Mierla [Wed, 6 Apr 2016 17:56:39 +0000 (19:56 +0200)]
dialog: rested dialog keeplive failure counters on good reply

4 years agocore: common check for ifa->ifa_addr in add_intefaces
Daniel-Constantin Mierla [Wed, 6 Apr 2016 17:22:58 +0000 (19:22 +0200)]
core: common check for ifa->ifa_addr in add_intefaces

- if no ip address associated with the network interface, it is not
  useful anyhow

4 years agocore: check if ifa_addr field is set while trying to skip AF_PACKET interfaces
Daniel-Constantin Mierla [Wed, 6 Apr 2016 16:55:57 +0000 (18:55 +0200)]
core: check if ifa_addr field is set while trying to skip AF_PACKET interfaces

- reported by Juha Heinanen