Deleted Added
full compact
name6.c (145770) name6.c (145786)
1/* $KAME: name6.c,v 1.25 2000/06/26 16:44:40 itojun Exp $ */
2
3/*
4 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 74 unchanged lines hidden (view full) ---

83 * --Copyright--
84 */
85
86/*
87 * Atsushi Onoe <onoe@sm.sony.co.jp>
88 */
89
90#include <sys/cdefs.h>
1/* $KAME: name6.c,v 1.25 2000/06/26 16:44:40 itojun Exp $ */
2
3/*
4 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 74 unchanged lines hidden (view full) ---

83 * --Copyright--
84 */
85
86/*
87 * Atsushi Onoe <onoe@sm.sony.co.jp>
88 */
89
90#include <sys/cdefs.h>
91__FBSDID("$FreeBSD: head/lib/libc/net/name6.c 145770 2005-05-01 12:37:12Z ume $");
91__FBSDID("$FreeBSD: head/lib/libc/net/name6.c 145786 2005-05-02 04:43:32Z ume $");
92
93#include "namespace.h"
94#ifdef ICMPNL
95#include "reentrant.h"
96#endif
97#include <sys/param.h>
98#include <sys/socket.h>
99#include <sys/time.h>

--- 849 unchanged lines hidden (view full) ---

949}
950
951static void
952set_source(aio, ph)
953 struct hp_order *aio;
954 struct policyhead *ph;
955{
956 struct sockaddr_storage ss = aio->aio_un.aiou_ss;
92
93#include "namespace.h"
94#ifdef ICMPNL
95#include "reentrant.h"
96#endif
97#include <sys/param.h>
98#include <sys/socket.h>
99#include <sys/time.h>

--- 849 unchanged lines hidden (view full) ---

949}
950
951static void
952set_source(aio, ph)
953 struct hp_order *aio;
954 struct policyhead *ph;
955{
956 struct sockaddr_storage ss = aio->aio_un.aiou_ss;
957 int s, srclen;
957 socklen_t srclen;
958 int s;
958
959 /* set unspec ("no source is available"), just in case */
960 aio->aio_srcsa.sa_family = AF_UNSPEC;
961 aio->aio_srcscope = -1;
962
963 switch(ss.ss_family) {
964 case AF_INET:
965 ((struct sockaddr_in *)&ss)->sin_port = htons(1);

--- 1125 unchanged lines hidden ---
959
960 /* set unspec ("no source is available"), just in case */
961 aio->aio_srcsa.sa_family = AF_UNSPEC;
962 aio->aio_srcscope = -1;
963
964 switch(ss.ss_family) {
965 case AF_INET:
966 ((struct sockaddr_in *)&ss)->sin_port = htons(1);

--- 1125 unchanged lines hidden ---