ipsockopt.c (71498f308b2324dbd94e94fd8c4ae41bf4bd663b) | ipsockopt.c (34f620f1d0cfa67f5987452ac3fdd8c113b6b099) |
---|---|
1/*- 2 * Copyright (c) 2004 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 149 unchanged lines hidden (view full) --- 158 /* 159 * Getting the right amount back is important. 160 */ 161 if (len != sizeof(new_options)) 162 errx(-1, "test_ip_options(%s): getsockopt() after set " 163 "returned %d bytes of data", socktypename, len); 164 165 /* | 1/*- 2 * Copyright (c) 2004 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 149 unchanged lines hidden (view full) --- 158 /* 159 * Getting the right amount back is important. 160 */ 161 if (len != sizeof(new_options)) 162 errx(-1, "test_ip_options(%s): getsockopt() after set " 163 "returned %d bytes of data", socktypename, len); 164 165 /* |
166 * One posible failure mode is that the call succeeds but neglects to | 166 * One possible failure mode is that the call succeeds but neglects to |
167 * copy out the data. 168 */ 169 if (test_options[0] == TEST_MAGIC) 170 errx(-1, "test_ip_options(%s): getsockopt() after set didn't " 171 "return data", socktypename); 172 173 /* 174 * Make sure we get back what we wrote on. --- 769 unchanged lines hidden --- | 167 * copy out the data. 168 */ 169 if (test_options[0] == TEST_MAGIC) 170 errx(-1, "test_ip_options(%s): getsockopt() after set didn't " 171 "return data", socktypename); 172 173 /* 174 * Make sure we get back what we wrote on. --- 769 unchanged lines hidden --- |