raw_ip.c (e30177e024f908601b4242d6de6450986af95044) | raw_ip.c (bc95ac80b254d741e702436a9b66bdb2cb15978d) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. 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 --- 245 unchanged lines hidden (view full) --- 254 switch (sopt->sopt_dir) { 255 case SOPT_GET: 256 switch (sopt->sopt_name) { 257 case IP_HDRINCL: 258 optval = inp->inp_flags & INP_HDRINCL; 259 error = sooptcopyout(sopt, &optval, sizeof optval); 260 break; 261 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. 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 --- 245 unchanged lines hidden (view full) --- 254 switch (sopt->sopt_dir) { 255 case SOPT_GET: 256 switch (sopt->sopt_name) { 257 case IP_HDRINCL: 258 optval = inp->inp_flags & INP_HDRINCL; 259 error = sooptcopyout(sopt, &optval, sizeof optval); 260 break; 261 |
262 case IP_FW_ADD: |
|
262 case IP_FW_GET: 263 if (ip_fw_ctl_ptr == 0) 264 error = ENOPROTOOPT; 265 else 266 error = ip_fw_ctl_ptr(sopt); 267 break; 268 269#ifdef DUMMYNET --- 392 unchanged lines hidden --- | 263 case IP_FW_GET: 264 if (ip_fw_ctl_ptr == 0) 265 error = ENOPROTOOPT; 266 else 267 error = ip_fw_ctl_ptr(sopt); 268 break; 269 270#ifdef DUMMYNET --- 392 unchanged lines hidden --- |