private flags collided with multicast and link flags
[unix-history] / usr / src / sbin / routed / af.c
index e0f7d6c..6816bc1 100644 (file)
@@ -2,21 +2,11 @@
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.
  *
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted
- * provided that the above copyright notice and this paragraph are
- * duplicated in all such forms and that any documentation,
- * advertising materials, and other materials related to such
- * distribution and use acknowledge that the software was developed
- * by the University of California, Berkeley.  The name of the
- * University may not be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ * %sccs.include.redist.c%
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)af.c       5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)af.c       5.11 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "defs.h"
 #endif /* not lint */
 
 #include "defs.h"
@@ -109,7 +99,8 @@ inet_output(s, flags, sin, size)
                sin->sin_port = sp->s_port;
        if (sin->sin_len == 0)
                sin->sin_len = sizeof (*sin);
                sin->sin_port = sp->s_port;
        if (sin->sin_len == 0)
                sin->sin_len = sizeof (*sin);
-       if (sendto(s, packet, size, flags, sin, sizeof (*sin)) < 0)
+       if (sendto(s, packet, size, flags,
+           (struct sockaddr *)sin, sizeof (*sin)) < 0)
                perror("sendto");
 }
 
                perror("sendto");
 }