PERFORCE change 112251 for review

Robert Watson rwatson at FreeBSD.org
Thu Dec 28 14:41:33 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=112251

Change 112251 by rwatson at rwatson_peppercorn on 2006/12/28 22:13:08

	Update comments on byte order and IP tokens + token API.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#59 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#59 (text+ko) ====

@@ -30,7 +30,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#58 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#59 $
  */
 
 #include <sys/types.h>
@@ -419,6 +419,8 @@
 /*
  * token ID                1 byte
  * ip header		   20 bytes
+ *
+ * The IP header should be submitted in network byte order.
  */
 token_t *
 au_to_ip(struct ip *ip)
@@ -431,9 +433,6 @@
 		return (NULL);
 
 	ADD_U_CHAR(dptr, AUT_IP);
-	/*
-	 * XXXRW: Any byte order work needed on the IP header before writing?
-	 */
 	ADD_MEM(dptr, ip, sizeof(struct ip));
 
 	return (t);


More information about the trustedbsd-cvs mailing list