mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Fixed a missing #include in the synopsis.
Fixed some wrong prototypes. Fixed a misspelled function name. The owner of this file should add a copyright and an Id.
This commit is contained in:
parent
bb6d5d9147
commit
442a25bd7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32561
@ -9,6 +9,7 @@ of IP packets, intended for masquerading and
|
||||
network address translation (NAT).
|
||||
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <netinet/in.h>
|
||||
.Fd #include <alias.h>
|
||||
|
||||
@ -166,8 +167,8 @@ It is mandatory that this function be called
|
||||
prior to any packet handling.
|
||||
.Ss 2.4 PacketAliasSetMode()
|
||||
|
||||
.Ft void
|
||||
.Fn PacketAliasSetMode "int mode" "int mask"
|
||||
.Ft unsigned int
|
||||
.Fn PacketAliasSetMode "unsigned int mode" "unsigned int mask"
|
||||
|
||||
This function sets or clears mode bits
|
||||
according to the value of
|
||||
@ -418,7 +419,7 @@ data type.
|
||||
.Ss 4.2 PacketAliasRedirectAddr()
|
||||
|
||||
.Ft struct alias_link *
|
||||
.Fo PacketAliasRedirectAddress
|
||||
.Fo PacketAliasRedirectAddr
|
||||
.Fa "struct in_addr local_addr"
|
||||
.Fa "struct in_addr alias_addr"
|
||||
.Fc
|
||||
@ -592,7 +593,7 @@ is called to change the default target address.
|
||||
.Ss 6.3 PacketAliasInternetChecksum()
|
||||
|
||||
.Ft u_short
|
||||
.Fn PacketAliasInternetChecksum "char *buffer" "int nbytes"
|
||||
.Fn PacketAliasInternetChecksum "u_short *buffer" "int nbytes"
|
||||
|
||||
This is a utility function that does not seem
|
||||
to be available elswhere and is included as a
|
||||
|
@ -9,6 +9,7 @@ of IP packets, intended for masquerading and
|
||||
network address translation (NAT).
|
||||
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <netinet/in.h>
|
||||
.Fd #include <alias.h>
|
||||
|
||||
@ -166,8 +167,8 @@ It is mandatory that this function be called
|
||||
prior to any packet handling.
|
||||
.Ss 2.4 PacketAliasSetMode()
|
||||
|
||||
.Ft void
|
||||
.Fn PacketAliasSetMode "int mode" "int mask"
|
||||
.Ft unsigned int
|
||||
.Fn PacketAliasSetMode "unsigned int mode" "unsigned int mask"
|
||||
|
||||
This function sets or clears mode bits
|
||||
according to the value of
|
||||
@ -418,7 +419,7 @@ data type.
|
||||
.Ss 4.2 PacketAliasRedirectAddr()
|
||||
|
||||
.Ft struct alias_link *
|
||||
.Fo PacketAliasRedirectAddress
|
||||
.Fo PacketAliasRedirectAddr
|
||||
.Fa "struct in_addr local_addr"
|
||||
.Fa "struct in_addr alias_addr"
|
||||
.Fc
|
||||
@ -592,7 +593,7 @@ is called to change the default target address.
|
||||
.Ss 6.3 PacketAliasInternetChecksum()
|
||||
|
||||
.Ft u_short
|
||||
.Fn PacketAliasInternetChecksum "char *buffer" "int nbytes"
|
||||
.Fn PacketAliasInternetChecksum "u_short *buffer" "int nbytes"
|
||||
|
||||
This is a utility function that does not seem
|
||||
to be available elswhere and is included as a
|
||||
|
Loading…
Reference in New Issue
Block a user