.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Net::Libdnet 3pm" .TH Net::Libdnet 3pm "2011-11-26" "perl v5.14.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Net::Libdnet \- binding for Dug Song's libdnet .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 4 \& # \& # This will just import every functions and constants \& # \& use Net::Libdnet; \& \& # \& # Network interface manipulation \& # \& # !!! ADVICE: you should use Net::Libdnet::Intf instead \& # \& use Net::Libdnet qw(:intf); \& my $intf = dnet_intf_open(); \& \& my $eth = dnet_intf_get($intf, { intf_name => \*(Aqeth0\*(Aq }); \& print "IP: ".$eth\->{intf_addr}."\en"; \& print "MAC: ".$eth\->{intf_link_addr}."\en"; \& \& my $dst = dnet_intf_get_dst($intf, \*(Aq192.168.0.10\*(Aq); \& print "Name: ".$dst\->{intf_name}."\en"; \& print "IP: ".$dst\->{intf_addr}."\en"; \& print "MAC: ".$dst\->{intf_link_addr}."\en"; \& \& my $src = dnet_intf_get_src($intf, \*(Aq192.168.0.1\*(Aq); \& print "Name: ".$src\->{intf_name}."\en"; \& print "IP: ".$src\->{intf_addr}."\en"; \& print "MAC: ".$src\->{intf_link_addr}."\en"; \& \& dnet_intf_close($intf); \& \& # \& # Arp cache manipulation \& # \& # !!! ADVICE: you should use Net::Libdnet::Arp instead \& # \& use Net::Libdnet qw(:arp); \& my $arp = dnet_arp_open(); \& \& my $entry = dnet_arp_get($arp, {arp_pa => \*(Aq10.0.0.1\*(Aq}); \& print "MAC: ".$entry\->{arp_ha}."\en"; \& \& dnet_arp_add ($arp, \& {arp_ha => \*(Aq00:11:22:33:44:55\*(Aq, arp_pa => \*(Aq10.0.0.10\*(Aq}); \& dnet_arp_delete($arp, \& {arp_ha => \*(Aq00:11:22:33:44:55\*(Aq, arp_pa => \*(Aq10.0.0.10\*(Aq}); \& dnet_arp_close($arp); \& \& # \& # Route table manipulation \& # \& # !!! ADVICE: you should use Net::Libdnet::Route instead \& # \& use Net::Libdnet qw(:route); \& my $route = dnet_route_open(); \& dnet_route_add ($route, \& {route_gw => \*(Aq10.0.0.1\*(Aq, route_dst => \*(Aq192.168.0.1\*(Aq}); \& dnet_route_delete($route, \& {route_gw => \*(Aq10.0.0.1\*(Aq, route_dst => \*(Aq192.168.0.1\*(Aq}); \& \& my $get = dnet_route_get($route, {route_dst => \*(Aq192.168.0.10\*(Aq}); \& print "GW: ".$get\->{route_gw}."\en"; \& \& dnet_route_close($route); \& \& # \& # Firewall rules manipulation \& # \& # !!! ADVICE: you should use Net::Libdnet::Fw instead \& # \& use Net::Libdnet qw(:fw :consts); \& my $fw = dnet_fw_open(); \& # This is quite complex. This rule blocks TCP as input to 10.0.0.1 \& # You should really use Net::Libdnet::Fw instead. \& dnet_fw_add ($fw, \& {fw_op => FW_DIR_IN, fw_proto => 6, fw_dst => \*(Aq10.0.0.1\*(Aq}); \& dnet_fw_delete($fw, \& {fw_op => FW_DIR_IN, fw_proto => 6, fw_dst => \*(Aq10.0.0.1\*(Aq}); \& dnet_fw_close($fw); \& \& # \& # Send at IP level \& # \& # !!! ADVICE: you should use Net::Libdnet::Ip instead \& # \& use Net::Libdnet qw(:ip); \& my $ip = dnet_ip_open(); \& my $raw = "\ex47\ex47\ex47\ex47"; \& dnet_ip_send($ip, $raw, length($raw)); \& dnet_ip_close($ip); \& \& # \& # Send at Ethernet level \& # \& # !!! ADVICE: you should use Net::Libdnet::Eth instead \& # \& use Net::Libdnet qw(:eth); \& my $eth = dnet_eth_open(\*(Aqeth0\*(Aq); \& dnet_eth_send($eth, $raw, length($raw)); \& dnet_eth_close($eth); \& \& # \& # Traffic interception \& # \& # !!! ADVICE: you should use Net::Libdnet::Tun instead \& # \& use Net::Libdnet qw(:tun); \& my $tun = dnet_tun_open(\*(Aq10.0.0.10\*(Aq, \*(Aq192.168.0.10\*(Aq, 1500); \& my $buf = dnet_tun_recv($tun, 1500); \& # Do stuff with $buf \& dnet_tun_send($tun, $buf, length($buf)); \& dnet_tun_close($tun); \& \& # \& # hash refs in dnet format \& # \& my $intf = { \& intf_alias_num => 1, \& intf_mtu => 1500, \& intf_len => 112, \& intf_type => 6, \& intf_name => \*(Aqeth0\*(Aq, \& intf_dst_addr => undef, \& intf_link_addr => \*(Aq00:11:22:33:44:55\*(Aq, \& intf_flags => 49, \& intf_addr => \*(Aq10.100.0.10/24\*(Aq, \& intf_alias_addrs => [ \*(Aqfe80::211:2ff:fe33:4455/64\*(Aq ] \& }; \& my $arp = { \& arp_pa => \*(Aq10.100.0.1\*(Aq, \& arp_ha => \*(Aq11:22:33:44:55:66\*(Aq \& }; \& my $route = { \& route_gw => \*(Aq10.100.0.1\*(Aq, \& route_dst => \*(Aq0.0.0.0/0\*(Aq \& }; \& my $fw = { \& fw_dir => 2, \& fw_sport => [ 0, 0 ], \& fw_dport => [ 0, 0 ], \& fw_src => \*(Aq0.0.0.0/0\*(Aq, \& fw_dst => \*(Aq0.0.0.0/0\*(Aq, \& fw_proto => 6, \& fw_device => \*(Aqeth0\*(Aq, \& fw_op => 2 \& }; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Net::Libdnet provides a simplified, portable interface to several low-level networking routines, including network address manipulation, kernel arp cache and route table lookup and manipulation, network firewalling, network interface lookup and manipulation, network traffic interception via tunnel interfaces, and raw \s-1IP\s0 packet and Ethernet frame transmission. It is intended to complement the functionality provided by libpcap. .PP All the original and obsolete functions return \fIundef\fR and print a warning message to the standard error when a problem occurs. The obsolete functions are: \fBaddr_cmp\fR, \fBaddr_bcast\fR, \fBaddr_net\fR, \fBarp_add\fR, \fBarp_delete\fR, \fBarp_get\fR, \fBintf_get\fR, \fBintf_get_src\fR, \fBintf_get_dst\fR, \fBroute_add\fR, \fBroute_delete\fR, \fBroute_get\fR. .PP These obsolete functions will continue to work, to keep backward compatibility, but should not be used anymore. The new APIs should be preferred. There are two new APIs, one is the low-level one, matching libdnet functions, and the other one is a high-level \s-1API\s0, matching a more Perl object oriented programming. This latest one is highly preferred. .PP Net::Libdnet module implements the low-level \s-1API\s0. The high-level \s-1API\s0 is accessible by using the following modules: \fBNet::Libdnet::Intf\fR, \fBNet::Libdnet::Route\fR, \fBNet::Libdnet::Fw\fR, \fBNet::Libdnet::Arp\fR, \fBNet::Libdnet::Eth\fR, \fBNet::Libdnet::Ip\fR and \fBNet::Libdnet::Tun\fR. .SH "WHAT IS IMPLEMENTED" .IX Header "WHAT IS IMPLEMENTED" .IP "\fBNetwork addressing\fR" 4 .IX Item "Network addressing" Nothing as of now. .IP "\fBAddress Resolution Protocol\fR" 4 .IX Item "Address Resolution Protocol" All functions: arp_open, arp_add, arp_delete, arp_get, arp_loop, arp_close. .IP "\fBBinary buffers\fR" 4 .IX Item "Binary buffers" Nothing as of now. .IP "\fBEthernet\fR" 4 .IX Item "Ethernet" All functions: eth_open, eth_get, eth_set, eth_send, eth_close. .IP "\fBFirewalling\fR" 4 .IX Item "Firewalling" All functions: fw_open, fw_add, fw_delete, fw_loop, fw_close. .IP "\fBNetwork interface\fR" 4 .IX Item "Network interface" All functions: intf_open, intf_get_set, intf_get_dst, intf_set, intf_loop, intf_close. .IP "\fBInternet Protocol\fR" 4 .IX Item "Internet Protocol" All functions: ip_open, ip_checksum, ip_send, ip_close. .Sp Except: ip_add_option. .IP "\fBInternet Protocol Version 6\fR" 4 .IX Item "Internet Protocol Version 6" Nothing as of now. .IP "\fBRandom number generation\fR" 4 .IX Item "Random number generation" Nothing as of now. .IP "\fBRouting\fR" 4 .IX Item "Routing" All functions: route_open, route_add, route_delete, route_get, route_loop, route_close. .IP "\fBTunnel interface\fR" 4 .IX Item "Tunnel interface" All functions: tun_open, tun_fileno, tun_name, tun_send, tun_recv, tun_close. .SH "SUBROUTINES" .IX Header "SUBROUTINES" .IP "\fBdnet_intf_open\fR ()" 4 .IX Item "dnet_intf_open ()" Opens an interface handle. Returns a handle on success, undef on error. .IP "\fBdnet_intf_get\fR (scalar, hashref)" 4 .IX Item "dnet_intf_get (scalar, hashref)" Takes an intf handle, and a hash ref in dnet format as parameters. Returns a hash in dnet format on success, undef on error. .IP "\fBdnet_intf_get_src\fR (scalar, scalar)" 4 .IX Item "dnet_intf_get_src (scalar, scalar)" Takes an intf handle, and an \s-1IP\s0 address as parameters. Returns a hash in dnet format on success, undef on error. .IP "\fBdnet_intf_get_dst\fR (scalar, scalar)" 4 .IX Item "dnet_intf_get_dst (scalar, scalar)" Takes an intf handle, and an \s-1IP\s0 address as parameters. Returns a hash in dnet format on success, undef on error. .IP "\fBdnet_intf_set\fR (scalar, scalar)" 4 .IX Item "dnet_intf_set (scalar, scalar)" Takes an intf handle, and a hash ref in dnet format as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_intf_loop\fR (scalar, subref, scalarref)" 4 .IX Item "dnet_intf_loop (scalar, subref, scalarref)" Takes an intf handle, a subref, and a scalar ref as parameters. Returns 1 on success, undef on error. The subref will be called with an intf hash ref in dnet format, and the scalar ref as parameters. .IP "\fBdnet_intf_close\fR (scalar)" 4 .IX Item "dnet_intf_close (scalar)" Takes an intf handle as parameter. Returns the handle on success, undef on error. .IP "\fBdnet_route_open\fR ()" 4 .IX Item "dnet_route_open ()" Opens a route handle. Returns a handle on success, undef on error. .IP "\fBdnet_route_add\fR (scalar, hashref)" 4 .IX Item "dnet_route_add (scalar, hashref)" Takes a route handle, and a hash ref in dnet format as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_route_delete\fR (scalar, hashref)" 4 .IX Item "dnet_route_delete (scalar, hashref)" Takes a route handle, and a hash ref in dnet format as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_route_get\fR (scalar, hashref)" 4 .IX Item "dnet_route_get (scalar, hashref)" Takes a route handle, and a hash ref in dnet format as parameters. Returns a hash ref in dnet format on success, undef on error. .IP "\fBdnet_route_loop\fR (scalar, subref, scalarref)" 4 .IX Item "dnet_route_loop (scalar, subref, scalarref)" Takes a route handle, a subref, and a scalar ref as parameters. Returns 1 on success, undef on error. The subref will be called with a route hash ref in dnet format, and the scalar ref as parameters. .IP "\fBdnet_route_close\fR (scalar)" 4 .IX Item "dnet_route_close (scalar)" Takes a route handle as parameter. Returns the handle on success, undef on error. .IP "\fBdnet_arp_open\fR ()" 4 .IX Item "dnet_arp_open ()" Opens an arp handle. Returns a handle on success, undef on error. .IP "\fBdnet_arp_add\fR (scalar, hashref)" 4 .IX Item "dnet_arp_add (scalar, hashref)" Takes an arp handle, and a hash ref in dnet format as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_arp_delete\fR (scalar, hashref)" 4 .IX Item "dnet_arp_delete (scalar, hashref)" Takes an arp handle, and a hash ref in dnet format as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_arp_get\fR (scalar, hashref)" 4 .IX Item "dnet_arp_get (scalar, hashref)" Takes an arp handle, and a hash ref in dnet format as parameters. Returns a hash ref in dnet format on success, undef on error. .IP "\fBdnet_arp_loop\fR (scalar, subref, scalarref)" 4 .IX Item "dnet_arp_loop (scalar, subref, scalarref)" Takes an arp handle, a subref, and a scalar ref as parameters. Returns 1 on success, undef on error. The subref will be called with an arp hash ref in dnet format, and the scalar ref as parameters. .IP "\fBdnet_arp_close\fR (scalar)" 4 .IX Item "dnet_arp_close (scalar)" Takes an arp handle as parameter. Returns the handle on success, undef on error. .IP "\fBdnet_fw_open\fR ()" 4 .IX Item "dnet_fw_open ()" Opens a fw handle. Returns a handle on success, undef on error. .IP "\fBdnet_fw_add\fR (scalar, hashref)" 4 .IX Item "dnet_fw_add (scalar, hashref)" Takes a fw handle, and a hash ref in dnet format as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_fw_delete\fR (scalar, hashref)" 4 .IX Item "dnet_fw_delete (scalar, hashref)" Takes a fw handle, and a hash ref in dnet format as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_fw_loop\fR (scalar, subref, scalarref)" 4 .IX Item "dnet_fw_loop (scalar, subref, scalarref)" Takes a fw handle, a subref, and a scalar ref as parameters. Returns 1 on success, undef on error. The subref will be called with a fw hash ref in dnet format, and the scalar ref as parameters. .IP "\fBdnet_fw_close\fR (scalar)" 4 .IX Item "dnet_fw_close (scalar)" Takes a fw handle as parameter. Returns the handle on success, undef on error. .IP "\fBdnet_tun_open\fR (scalar, scalar, scalar)" 4 .IX Item "dnet_tun_open (scalar, scalar, scalar)" Creates a tunnel between src and dst \s-1IP\s0 addresses. Captured packets will have specified size. First argument is the source \s-1IP\s0 address, second the destination \s-1IP\s0 address, and the third is the cpature size. Returns a handle on success, undef on error. .IP "\fBdnet_tun_fileno\fR (scalar)" 4 .IX Item "dnet_tun_fileno (scalar)" Takes a tun handle as parameter. Returns the file number on success, undef on error. .IP "\fBdnet_tun_name\fR (scalar)" 4 .IX Item "dnet_tun_name (scalar)" Takes a tun handle as parameter. Returns the interface name on success, undef on error. .IP "\fBdnet_tun_send\fR (scalar, scalar, scalar)" 4 .IX Item "dnet_tun_send (scalar, scalar, scalar)" Takes a tun handle, the raw data to send, and its size as parameters. Returns the number of bytes sent on success, undef on error. .IP "\fBdnet_tun_recv\fR (scalar, scalar)" 4 .IX Item "dnet_tun_recv (scalar, scalar)" Takes a tun handle, and the maximum size to read as parameters. Returns the read buffer on success, undef on error. .IP "\fBdnet_tun_close\fR (scalar)" 4 .IX Item "dnet_tun_close (scalar)" Takes a tun handle as parameter. Returns the handle on success, undef on error. .IP "\fBdnet_eth_open\fR (scalar)" 4 .IX Item "dnet_eth_open (scalar)" Opens an eth handle. Takes an interface name as parameter. Returns a handle on success, undef on error. .IP "\fBdnet_eth_get\fR (scalar)" 4 .IX Item "dnet_eth_get (scalar)" Takes an eth handle as parameter. Returns the hardware address of currently opened eth handle on success, undef on error. .IP "\fBdnet_eth_set\fR (scalar, scalar)" 4 .IX Item "dnet_eth_set (scalar, scalar)" Takes an eth handle, and the hardware address to set as parameters. Returns 1 on success, undef on error. .IP "\fBdnet_eth_send\fR (scalar, scalar, scalar)" 4 .IX Item "dnet_eth_send (scalar, scalar, scalar)" Takes an eth handle, the raw data to send, and its size as parameters. Returns the number of bytes sent on success, undef on error. .IP "\fBdnet_eth_close\fR (scalar)" 4 .IX Item "dnet_eth_close (scalar)" Takes an eth handle as parameter. Returns the handle on success, undef on error. .IP "\fBdnet_ip_open\fR ()" 4 .IX Item "dnet_ip_open ()" Opens an ip handle. Returns a handle on success, undef on error. .IP "\fBdnet_ip_checksum\fR (scalar, scalar)" 4 .IX Item "dnet_ip_checksum (scalar, scalar)" Takes a raw IPv4 frame as the first parameter, and its size as a second parameter. It then updates the frame with the good checksum. Returns nothing. .IP "\fBdnet_ip_send\fR (scalar, scalar, scalar)" 4 .IX Item "dnet_ip_send (scalar, scalar, scalar)" Takes an ip handle, the raw data to send, and its size as parameters. Returns the number of bytes sent on success, undef on error. .IP "\fBdnet_ip_close\fR (scalar)" 4 .IX Item "dnet_ip_close (scalar)" Takes an ip handle as parameter. Returns the handle on success, undef on error. .SH "OBSOLETE FUNCTIONS" .IX Header "OBSOLETE FUNCTIONS" They should not be used anymore. You have been warned. .IP "\fBaddr_bcast\fR" 4 .IX Item "addr_bcast" .PD 0 .IP "\fBaddr_cmp\fR" 4 .IX Item "addr_cmp" .IP "\fBaddr_net\fR" 4 .IX Item "addr_net" .IP "\fBarp_add\fR" 4 .IX Item "arp_add" .IP "\fBarp_delete\fR" 4 .IX Item "arp_delete" .IP "\fBarp_get\fR" 4 .IX Item "arp_get" .IP "\fBintf_get\fR" 4 .IX Item "intf_get" .IP "\fBintf_get_dst\fR" 4 .IX Item "intf_get_dst" .IP "\fBintf_get_src\fR" 4 .IX Item "intf_get_src" .IP "\fBroute_add\fR" 4 .IX Item "route_add" .IP "\fBroute_delete\fR" 4 .IX Item "route_delete" .IP "\fBroute_get\fR" 4 .IX Item "route_get" .PD .SH "CONSTANTS" .IX Header "CONSTANTS" .IP "\fB\s-1DNET_ADDR_TYPE_NONE\s0\fR" 4 .IX Item "DNET_ADDR_TYPE_NONE" .PD 0 .IP "\fB\s-1DNET_ADDR_TYPE_ETH\s0\fR" 4 .IX Item "DNET_ADDR_TYPE_ETH" .IP "\fB\s-1DNET_ADDR_TYPE_IP\s0\fR" 4 .IX Item "DNET_ADDR_TYPE_IP" .IP "\fB\s-1DNET_ADDR_TYPE_IP6\s0\fR" 4 .IX Item "DNET_ADDR_TYPE_IP6" .IP "\fB\s-1DNET_FW_OP_ALLOW\s0\fR" 4 .IX Item "DNET_FW_OP_ALLOW" .IP "\fB\s-1DNET_FW_OP_BLOCK\s0\fR" 4 .IX Item "DNET_FW_OP_BLOCK" .IP "\fB\s-1DNET_FW_DIR_IN\s0\fR" 4 .IX Item "DNET_FW_DIR_IN" .IP "\fB\s-1DNET_FW_DIR_OUT\s0\fR" 4 .IX Item "DNET_FW_DIR_OUT" .IP "\fB\s-1DNET_INTF_TYPE_OTHER\s0\fR" 4 .IX Item "DNET_INTF_TYPE_OTHER" .IP "\fB\s-1DNET_INTF_TYPE_ETH\s0\fR" 4 .IX Item "DNET_INTF_TYPE_ETH" .IP "\fB\s-1DNET_INTF_TYPE_LOOPBACK\s0\fR" 4 .IX Item "DNET_INTF_TYPE_LOOPBACK" .IP "\fB\s-1DNET_INTF_TYPE_TUN\s0\fR" 4 .IX Item "DNET_INTF_TYPE_TUN" .IP "\fB\s-1DNET_INTF_FLAG_UP\s0\fR" 4 .IX Item "DNET_INTF_FLAG_UP" .IP "\fB\s-1DNET_INTF_FLAG_LOOPBACK\s0\fR" 4 .IX Item "DNET_INTF_FLAG_LOOPBACK" .IP "\fB\s-1DNET_INTF_FLAG_POINTOPOINT\s0\fR" 4 .IX Item "DNET_INTF_FLAG_POINTOPOINT" .IP "\fB\s-1DNET_INTF_FLAG_NOARP\s0\fR" 4 .IX Item "DNET_INTF_FLAG_NOARP" .IP "\fB\s-1DNET_INTF_FLAG_BROADCAST\s0\fR" 4 .IX Item "DNET_INTF_FLAG_BROADCAST" .IP "\fB\s-1DNET_INTF_FLAG_MULTICAST\s0\fR" 4 .IX Item "DNET_INTF_FLAG_MULTICAST" .PD .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" You may distribute this module under the terms of the \s-1BSD\s0 license. See \s-1LICENSE\s0 file in the source distribution archive. .PP Copyright (c) 2004, Vlad Manilici .PP Copyright (c) 2008\-2011, Patrice Auffret .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIdnet\fR\|(3)