mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
- Moved NULL definition into private include file.
- Minor spelling fixes.
This commit is contained in:
parent
44b20bdb13
commit
79eef4b611
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59046
|
@ -14,10 +14,6 @@
|
||||||
#ifndef _ALIAS_H_
|
#ifndef _ALIAS_H_
|
||||||
#define _ALIAS_H_
|
#define _ALIAS_H_
|
||||||
|
|
||||||
#ifndef NULL
|
|
||||||
#define NULL 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Alias link representative (incomplete struct) */
|
/* Alias link representative (incomplete struct) */
|
||||||
struct alias_link;
|
struct alias_link;
|
||||||
|
|
||||||
|
@ -92,7 +88,7 @@ struct alias_link;
|
||||||
|
|
||||||
|
|
||||||
/********************** Mode flags ********************/
|
/********************** Mode flags ********************/
|
||||||
/* Set these flags using SetPacketAliasMode() */
|
/* Set these flags using PacketAliasSetMode() */
|
||||||
|
|
||||||
/* If PKT_ALIAS_LOG is set, a message will be printed to
|
/* If PKT_ALIAS_LOG is set, a message will be printed to
|
||||||
/var/log/alias.log every time a link is created or deleted. This
|
/var/log/alias.log every time a link is created or deleted. This
|
||||||
|
@ -105,7 +101,7 @@ struct alias_link;
|
||||||
#define PKT_ALIAS_DENY_INCOMING 0x02
|
#define PKT_ALIAS_DENY_INCOMING 0x02
|
||||||
|
|
||||||
/* If PKT_ALIAS_SAME_PORTS is set, packets will be attempted sent from
|
/* If PKT_ALIAS_SAME_PORTS is set, packets will be attempted sent from
|
||||||
the same port as they originated on. This allows eg rsh to work
|
the same port as they originated on. This allows e.g. rsh to work
|
||||||
*99% of the time*, but _not_ 100%. (It will be slightly flakey
|
*99% of the time*, but _not_ 100%. (It will be slightly flakey
|
||||||
instead of not working at all.) This mode bit is set by
|
instead of not working at all.) This mode bit is set by
|
||||||
PacketAliasInit(), so it is a default mode of operation. */
|
PacketAliasInit(), so it is a default mode of operation. */
|
||||||
|
@ -120,7 +116,7 @@ struct alias_link;
|
||||||
mode of operation.*/
|
mode of operation.*/
|
||||||
#define PKT_ALIAS_USE_SOCKETS 0x08
|
#define PKT_ALIAS_USE_SOCKETS 0x08
|
||||||
|
|
||||||
/* If PKT_ALIAS_UNREGISTERED_ONLY is set, then only packets with with
|
/* If PKT_ALIAS_UNREGISTERED_ONLY is set, then only packets with
|
||||||
unregistered source addresses will be aliased (along with those
|
unregistered source addresses will be aliased (along with those
|
||||||
of the ppp host maching itself. Private addresses are those
|
of the ppp host maching itself. Private addresses are those
|
||||||
in the following ranges:
|
in the following ranges:
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
#ifndef ALIAS_LOCAL_H
|
#ifndef ALIAS_LOCAL_H
|
||||||
#define ALIAS_LOCAL_H
|
#define ALIAS_LOCAL_H
|
||||||
|
|
||||||
|
#ifndef NULL
|
||||||
|
#define NULL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Macros
|
Macros
|
||||||
|
|
|
@ -14,10 +14,6 @@
|
||||||
#ifndef _ALIAS_H_
|
#ifndef _ALIAS_H_
|
||||||
#define _ALIAS_H_
|
#define _ALIAS_H_
|
||||||
|
|
||||||
#ifndef NULL
|
|
||||||
#define NULL 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Alias link representative (incomplete struct) */
|
/* Alias link representative (incomplete struct) */
|
||||||
struct alias_link;
|
struct alias_link;
|
||||||
|
|
||||||
|
@ -92,7 +88,7 @@ struct alias_link;
|
||||||
|
|
||||||
|
|
||||||
/********************** Mode flags ********************/
|
/********************** Mode flags ********************/
|
||||||
/* Set these flags using SetPacketAliasMode() */
|
/* Set these flags using PacketAliasSetMode() */
|
||||||
|
|
||||||
/* If PKT_ALIAS_LOG is set, a message will be printed to
|
/* If PKT_ALIAS_LOG is set, a message will be printed to
|
||||||
/var/log/alias.log every time a link is created or deleted. This
|
/var/log/alias.log every time a link is created or deleted. This
|
||||||
|
@ -105,7 +101,7 @@ struct alias_link;
|
||||||
#define PKT_ALIAS_DENY_INCOMING 0x02
|
#define PKT_ALIAS_DENY_INCOMING 0x02
|
||||||
|
|
||||||
/* If PKT_ALIAS_SAME_PORTS is set, packets will be attempted sent from
|
/* If PKT_ALIAS_SAME_PORTS is set, packets will be attempted sent from
|
||||||
the same port as they originated on. This allows eg rsh to work
|
the same port as they originated on. This allows e.g. rsh to work
|
||||||
*99% of the time*, but _not_ 100%. (It will be slightly flakey
|
*99% of the time*, but _not_ 100%. (It will be slightly flakey
|
||||||
instead of not working at all.) This mode bit is set by
|
instead of not working at all.) This mode bit is set by
|
||||||
PacketAliasInit(), so it is a default mode of operation. */
|
PacketAliasInit(), so it is a default mode of operation. */
|
||||||
|
@ -120,7 +116,7 @@ struct alias_link;
|
||||||
mode of operation.*/
|
mode of operation.*/
|
||||||
#define PKT_ALIAS_USE_SOCKETS 0x08
|
#define PKT_ALIAS_USE_SOCKETS 0x08
|
||||||
|
|
||||||
/* If PKT_ALIAS_UNREGISTERED_ONLY is set, then only packets with with
|
/* If PKT_ALIAS_UNREGISTERED_ONLY is set, then only packets with
|
||||||
unregistered source addresses will be aliased (along with those
|
unregistered source addresses will be aliased (along with those
|
||||||
of the ppp host maching itself. Private addresses are those
|
of the ppp host maching itself. Private addresses are those
|
||||||
in the following ranges:
|
in the following ranges:
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
#ifndef ALIAS_LOCAL_H
|
#ifndef ALIAS_LOCAL_H
|
||||||
#define ALIAS_LOCAL_H
|
#define ALIAS_LOCAL_H
|
||||||
|
|
||||||
|
#ifndef NULL
|
||||||
|
#define NULL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Macros
|
Macros
|
||||||
|
|
Loading…
Reference in a new issue