• Cyrill Gorcunov's avatar
    test: Update unix sockets · 37782e6e
    Cyrill Gorcunov authored
    To include dgram bound && connected sockets, for example
    
    CR_FD_UNIXSK: /home/cyrill/crtools/unixsk-2813.img
    ----------------------------------------
    fd    3 type  1 state  1 namelen    0 backlog    0 id  19505 peer  19506
    fd    4 type  1 state  1 namelen    0 backlog    0 id  19506 peer  19505
    fd    5 type  2 state  7 namelen    0 backlog    0 id  19507 peer      0
    fd    6 type  2 state  7 namelen   18 backlog   18 id  19508 peer      0 --> test-socket-bound
    fd    7 type  2 state  7 namelen    0 backlog    0 id  19509 peer  19510
    fd    8 type  2 state  7 namelen   17 backlog   17 id  19510 peer      0 --> test-socket-conn
    fd    9 type  2 state  7 namelen   23 backlog   23 id  19511 peer  19511 --> test-socket-bound-conn
    ----------------------------------------
    
    The last one is bound and connected.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    37782e6e
test-unixsocket.c 3.73 KB