Show
Ignore:
Timestamp:
03/16/10 02:48:40 (2 years ago)
Author:
D.J. Capelis <dev@…>
Parents:
2e3212ee6039755ad0071edde541e432086c0216
Children:
6235648b3ca2df5a61e411548a29f45b2b3f27df
git-committer:
D.J. Capelis <dev@capelis.dj> / 2010-03-16T02:48:40Z-0700
Message:

Cleanup s/_TYPE/_SERVICE/ and implement LIST command, HELP now complaint
with RFC 1078

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • config.c

    r50d3946 ra29e2e4  
    22 
    33struct service help; 
     4struct service list; 
    45struct service multiplex; 
    56struct service ssl; 
     
    2627{ 
    2728    help.name = "HELP\0"; 
    28     help.service_type = HELP_TYPE; 
    29     help.next = &multiplex; 
     29    help.service_type = HELP_SERVICE; 
     30    help.next = &list; 
     31    list.name = "LIST\0"; 
     32    list.service_type = LIST_SERVICE; 
     33    list.next = &multiplex; 
    3034    multiplex.name = "MULTIPLEX\0"; 
    31     multiplex.service_type = MULTIPLEX_TYPE; 
     35    multiplex.service_type = MULTIPLEX_SERVICE; 
    3236    multiplex.next = &ssl; 
    3337    ssl.name = "SSL\0"; 
    34     ssl.service_type = SSL_TYPE; 
     38    ssl.service_type = SSL_SERVICE; 
    3539    ssl.next = &auth; 
    3640    auth.name = "AUTH\0"; 
    37     auth.service_type = AUTH_TYPE; 
     41    auth.service_type = AUTH_SERVICE; 
    3842    auth.next = &host; 
    3943    host.name = "HOST\0"; 
    40     host.service_type = HOST_TYPE; 
     44    host.service_type = HOST_SERVICE; 
    4145    host.next = &shell; 
    4246    shell.name = "SHELL\0"; 
    43     shell.service_type = CUSTOM_TYPE; 
     47    shell.service_type = CUSTOM_SERVICE; 
    4448    inet_pton(AF_INET6, "::ffff:127.0.0.1", &(shellsocket.sin6_addr)); 
    4549    shellsocket.sin6_family=AF_INET6; 
     
    4953    shell.next = &echo; 
    5054    echo.name = "ECHO\0"; 
    51     echo.service_type = CUSTOM_TYPE; 
     55    echo.service_type = CUSTOM_SERVICE; 
    5256    inet_pton(AF_INET6, "::ffff:127.0.0.1", &(shellsocket2.sin6_addr)); 
    5357    shellsocket2.sin6_family=AF_INET6; 
     
    5761    echo.next = &hello; 
    5862    hello.name = "HELLO\0"; 
    59     hello.service_type = CUSTOM_TYPE; 
     63    hello.service_type = CUSTOM_SERVICE; 
    6064    inet_pton(AF_INET6, "::ffff:127.0.0.1", &(s_hello.sin6_addr)); 
    6165    s_hello.sin6_family=AF_INET6; 
     
    6569    hello.next = &web; 
    6670    rot13.name = "ROT13\0"; 
    67     rot13.service_type = CUSTOM_TYPE; 
     71    rot13.service_type = CUSTOM_SERVICE; 
    6872    inet_pton(AF_INET6, "::ffff:127.0.0.1", &(s_rot13.sin6_addr)); 
    6973    s_rot13.sin6_family=AF_INET6; 
     
    7377    rot13.next = &web; 
    7478    web.name = "WEB\0"; 
    75     web.service_type = CUSTOM_TYPE; 
     79    web.service_type = CUSTOM_SERVICE; 
    7680    inet_pton(AF_INET6, "::ffff:127.0.0.1", &(s_web.sin6_addr)); 
    7781    s_web.sin6_family=AF_INET6; 
     
    8185    web.next = &web2; 
    8286    web2.name = "WEB\0"; 
    83     web2.service_type = CUSTOM_TYPE; 
     87    web2.service_type = CUSTOM_SERVICE; 
    8488    inet_pton(AF_INET6, "::ffff:127.0.0.1", &(s_web2.sin6_addr)); 
    8589    s_web2.sin6_family=AF_INET6;