OSDN Git Service

*** empty log message ***
authorkoinec <>
Tue, 3 Nov 2009 06:15:26 +0000 (06:15 +0000)
committerkoinec <>
Tue, 3 Nov 2009 06:15:26 +0000 (06:15 +0000)
deamon/drd64_debugd_send_cmd_bootinfo.c [new file with mode: 0644]
deamon/drd64_marshald_msg_bootinfo.c [new file with mode: 0644]
include/drd64_conf.h

diff --git a/deamon/drd64_debugd_send_cmd_bootinfo.c b/deamon/drd64_debugd_send_cmd_bootinfo.c
new file mode 100644 (file)
index 0000000..75bd2bc
--- /dev/null
@@ -0,0 +1,88 @@
+/*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
+
+                         D r . D e a m o n  6 4
+                        for INTEL64(R), AMD64(R)
+       
+   Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
+
+/* File Info -----------------------------------------------------------
+File: drd64_.c
+Function: 
+Comment: 
+----------------------------------------------------------------------*/
+
+#include"drd64_debugd.h"
+
+
+int
+       Drd64_Debugd_Send_Cmd_BootInfo(
+               int             i_request_fd )
+{
+       int                                                     i_err;
+       int                                                     i_wlen;
+       int                                                     i_socket_temp;
+       Drd64_PacketHeader                      *p_phead;
+
+       /* Phase 1 : Init & Set Packet Data ----------*/
+
+       p_phead = (Drd64_PacketHeader *)gp_sendbuffer;
+       memset( gp_sendbuffer, 0x00, ( sizeof( Drd64_PacketHeader ) ));
+
+       p_phead->w_header               = DRD64_PACKET_HEADER;
+       p_phead->i_connect_id   = DRD64_CONNECTID_DIRECT;
+       p_phead->dw_command             = DRD64_COMMAND_DEBUGD_BOOTINFO;
+       p_phead->w_packettype   = DRD64_PACKETTYPE_INFO;
+       p_phead->i_datalen              = 0;
+       p_phead->i_resume_recvstatus_id = i_request_fd;
+       p_phead->i_result               = 0x00;
+       p_phead->i_error                = 0x00;
+
+       /* Phase 2 : Create Local-Marshald Socket ------*/
+       i_socket_temp   =
+               Drd64_Server_Socket_InitSocket_Local_Client(
+                                               DRD64_SOCKET_LOCAL_NAME_MARSHALD ); 
+       if( 0 > i_socket_temp ) {
+               return 0x01;
+       }
+
+       /* Phase 3 : Send Packet to Local Marshald -----*/
+       i_wlen  = send( i_socket_temp, (void *)p_phead,
+                                                               DRD64_PacketSize(p_phead), 0x00 );
+       if( i_wlen != DRD64_PacketSize(p_phead) )       {
+               return 0x01; 
+       } 
+
+       /* Phase 4 : Close Socket to Local Marshald ----*/
+       close( i_socket_temp );
+
+       puts(" Send Debugd Boot Info. ");
+
+       return 0x00;
+}
+
+
+
+/* EOF of drd64_.c ----------------------------------- */
diff --git a/deamon/drd64_marshald_msg_bootinfo.c b/deamon/drd64_marshald_msg_bootinfo.c
new file mode 100644 (file)
index 0000000..de1de63
--- /dev/null
@@ -0,0 +1,56 @@
+/*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
+
+                         D r . D e a m o n  6 4
+                        for INTEL64(R), AMD64(R)
+       
+   Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
+
+/* File Info -----------------------------------------------------------
+File: drd64_.c
+Function: 
+Comment: 
+----------------------------------------------------------------------*/
+
+#include"drd64_marshald.h"
+
+
+int
+       Drd64_Marshald_Msg_DebugdBootInfo(
+               int                                                     i_fds,
+               Drd64_PacketHeader                      *p_phead,
+               Drd64_PacketData_Connect        *p_connect )
+{
+       int             i_result;
+
+       /* NO Proc. */
+       
+       /* NO Answer Packet */
+       
+       return DRD64_MARSHALD_DISPATCH_RESULT_RESTART;
+}
+
+
+/* EOF of drd64_.c ----------------------------------- */
index 0f20e81..8ac3794 100644 (file)
@@ -40,6 +40,11 @@ Comment:
 #define        DRD64_SOCKET_LOCAL_NAME_MARSHALD        "/tmp/tmpmarshald.socket"
 #define        DRD64_SOCKET_NETWORK_PORT                       8664
 
+#define DRD64_LOG_FACILITY_MARSHALD            LOG_LOCAL3
+#define        DRD64_LOG_LEVEL_MARSHALD                DRD64_LOG_LEVEL_DEBUG
+#define DRD64_LOG_FACILITY_DEBUGD              LOG_LOCAL3
+#define        DRD64_LOG_LEVEL_DEBUGD                  DRD64_LOG_LEVEL_DEBUG
+
 #endif /* DRD64_HEADER_CONF */
 
 /* EOF of drd64_.h ----------------------------------- */