Compound Module BSDHost

File: src/tcpipmodel/BSDHost.ned

Represents a host with a BSD network stack.

appl: FileTransferAppl bsdstack: BSDStack

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

BSDHost BSDStack FileTransferAppl

Contains the following modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

BSDStack

Encapsulates the BSD TCP/IP stack.

FileTransferAppl

Application layer; demonstrates how the socket interface can be used to talk to BSDStack.

Gates:

Name Direction Description
out [ ] output
in [ ] input

Unassigned submodule parameters:

Name Type Description
appl.dest string

specifies connections and traffic (see above)

bsdstack.route string
bsdstack.ip string
bsdstack.bsd_tcprexmtthresh string
bsdstack.bsd_log_in_vain string
bsdstack.bsd_blackhole string
bsdstack.bsd_tcp_delack_enabled string
bsdstack.bsd_drop_synfin string
bsdstack.bsd_tcp_do_rfc3042 string
bsdstack.bsd_tcp_do_rfc3390 string
bsdstack.bsd_path_mtu_discovery string
bsdstack.bsd_tcp_do_rfc1323 string
bsdstack.bsd_tcp_do_rfc1644 string
bsdstack.bsd_ss_fltsz string
bsdstack.bsd_ss_fltsz_local string
bsdstack.bsd_tcp_do_newreno string
bsdstack.bsd_ipforwarding string
bsdstack.bsd_ipsendredirects string
bsdstack.startup numeric
bsdstack.showtraffic numeric
bsdstack.drop_packet_on_biterror bool

Source code:

module BSDHost
    gates:
        out: out[];
        in: in[];
    submodules:
        appl: FileTransferAppl;
            display: "p=95,68,row;i=block/ftp";
        bsdstack: BSDStack;
            gatesizes:
                out[sizeof(out)],
                in[sizeof(in)];
            display: "p=95,156;i=block/layer";
    connections nocheck:
        appl.out --> bsdstack.from_app;
        appl.in <-- bsdstack.to_app;

        for i=0..sizeof(out)-1 do
            in[i] --> bsdstack.in[i];
            out[i] <-- bsdstack.out[i];
        endfor;
endmodule