Log Statement; Match Statement - Cisco GEM318P User Manual

Host drivers for linux
Table of Contents

Advertisement

Chapter 5
Sockets Direct Protocol

Log Statement

This section describes the log statement. The log directive allows the user to specify which debug and
error messages are sent and where they are sent. The log statement format is as
log [destination stderr | syslog | file filename] [min-level 1-9]
Command
destination
stderr
syslog
file filename
min-level
The file destination must be relative to /tmp. This is to prevent non-superuser accounts from having the
ability to create arbitrary files on the system. Any path components of the filename are stripped.
The following example shows how to get the full verbosity printed into the /tmp/libsdp.log file:
log min-level 1 destination file libsdp.log
The following example shows how to get the full verbosity printed into the /STDERR:
log min-level 1 destination stderr

Match Statement

This section describes the match statement. The match directive enables the user to specify when libsdp
replaces AF_INET/SOCK_STREAM sockets with AF_SDP/SOCK_STREAM sockets. Each match
directive specifies a group for which all expressions must evaluate as true (logical and).
The four expressions are as follows:
destination ip_port
listen ip_port
shared ip_port
program program_name
The syntax description for the match statement is as follows:
destination
listen
OL-12309-01
Description
Defines the destination of the log messages.
Forwards messages to the STDERR.
Sends messages to the syslog service.
Writes messages to the file/tmp/filename.
Defines the verbosity of the log as follows:
9—Errors are printed.
3—Protocol-matching messages.
2—Socket-creation messages.
1—Function calls and return values.
This expression enables the user to match a client-connect request and
convert the TCP socket to an SDP socket. The rule is applied during the
connect system call.
This expression enables the user to match a server-bind request and convert
the TCP socket to an SDP socket. The rule is applied during the bind system
call.
Cisco SFS InfiniBand Host Drivers User Guide for Linux
Converting Sockets-Based Application
follows:
5-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

St373307lcSfs infiniband

Table of Contents