net: Print data in hex format

To match format used in debug output.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
format: Use @%li for object positions

- @%li for object positions
- obj_pos_of where possible
- @%-10li for object formatted positions
- tune up parse_sections printing

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
files: Show fd pos in debug print

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
test: Update list

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
obj: Add read_obj_cont_until helper

Some structures are really big one but still we
need to read some part of them. Thus add read_obj_cont_until
helper which would read data up until some member.
Note the member itself is not read but used as
a bound label to calculate offset.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: Show more detailed debug output

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: unix -- Rework unix sockets

- Use object id instead of inode numbers, we only
  need this entry to bind sockets together so lets
  choose simplie approach
- Handler external unix sockets
- Read auxiliary positions inside sockets record, we
  will need them in future
- Fix lookup for incoming connections on unix sockets

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
test: sockets00 now works

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Update TODO

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: Move all socket related code to a separate file

Otherwise generic net code become unreadable.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
sockets: Convert socket filter

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
test: Add inprogress section

These are the tests i'm handling now

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
sockets: unix -- Fix permissions conversion

It still has some fixmies, since path may be not present.
Need to revisit once finish with dgram unix sockets.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: unix -- Fix unix names

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
tests: Mark sockets_dgram as working

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
tests: Drop static/sockets00 from in-progress section

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
sockets: Temporary disable unix sockets premissions

Need to revisit and fix since current results are
quite strange.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
sockets: unix -- Add conversion of read queue

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
tests: Update

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
socket: Add a comment about uid/gid on unix paths

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>